|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcds.simbad.Journal
A journal object contains all data linked to a astronomical journal. These data are are taken from the "journals" Parameters set.
Field Summary | |
private java.lang.String |
abbrev
|
private java.lang.String |
fullName
|
private java.lang.String |
genericName
|
static java.lang.String |
JOURNAL_TYPES
|
private boolean |
sectNumber
|
private java.lang.String |
shortName
|
private java.lang.String |
type
|
private boolean |
vol5
|
private java.util.HashMap |
volumes
|
private java.lang.String |
wenzelName
|
private java.util.HashMap |
yearRanges
|
Constructor Summary | |
Journal(java.lang.String abbreviation)
Constructor with the (quite) mandatory items |
Method Summary | |
void |
addSubTitle(int volume,
java.lang.String shortname,
java.lang.String fullname)
Add a subTitle definition to journals having a generic name, for which the real name depends on the volume. |
void |
addYearRanges(int year,
int low,
int high)
Adds the year range for each volume This information is taken from a file whose name is the limjnl directory |
boolean |
checkRange(int year,
int volume)
Check a volume number for a particular year |
boolean |
equals(java.lang.Object o)
MOD-BB 21-01-04 Ajout de cette methode. |
boolean |
existYearRanges()
Checks if the journal has volume range values |
java.lang.String |
getAbbreviation()
Get the journal abbreviation, as used in bibcodes |
java.lang.String |
getName(char namecode)
Gets one of the names of the journal. |
java.lang.String |
getSubTitleFullName(int volume)
Get the full name of a subTitle |
java.lang.String |
getSubTitleShortName(int volume)
Get the short name of a subTitle |
java.lang.String |
getType()
|
int |
getYearFromVolume(int vol)
Returns the year corresponding to a volume number |
boolean |
isSectionNumber()
returns whether the page number is in the format section - number |
boolean |
isVolume5()
returns whether the volume number can be on 5 digits |
void |
setFormat(java.lang.String fmt)
Sets peculiarities of the bibcode format Currently, two peciliarities are recognized: volume:vvvvv : volume number on 5 digits page:sssnn : page number replaced by section, number in section (involves the M char, which becomes numerical) |
void |
setName(char namecode,
java.lang.String name)
Sets one of the names of the journal. |
void |
setType(java.lang.String type)
Sets a document type. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String JOURNAL_TYPES
private java.lang.String abbrev
private java.lang.String shortName
private java.lang.String fullName
private java.lang.String wenzelName
private java.lang.String type
private java.lang.String genericName
private java.util.HashMap volumes
private boolean vol5
private boolean sectNumber
private java.util.HashMap yearRanges
Constructor Detail |
public Journal(java.lang.String abbreviation)
abbreviation
- journal abbreviation, used in the bibcode (max: 5 chars)Method Detail |
public java.lang.String getAbbreviation()
public void setName(char namecode, java.lang.String name)
namecode
- character code defining the name:name
- corresponding name of the journalpublic java.lang.String getName(char namecode)
namecode
- character code defining the name:public void setType(java.lang.String type)
The possible values are:
B = Book
R = Report
T = Thesis
C = Catalogue
S = ?
U = ?
type
- type character. If the character is incorrect, it is not setpublic java.lang.String getType()
public void setFormat(java.lang.String fmt)
fmt
- format description string. Several items can be written,
separated by a commapublic boolean isVolume5()
public boolean isSectionNumber()
public void addSubTitle(int volume, java.lang.String shortname, java.lang.String fullname)
volume
- volume number for this issue of the journalshortname
- short name of the issuefullname
- full description of the issuepublic java.lang.String getSubTitleShortName(int volume)
volume
- volume of the searched subtitle
public java.lang.String getSubTitleFullName(int volume)
volume
- volume of the searched subtitle
public void addYearRanges(int year, int low, int high)
year
- publication yearlow
- minimum volume numberhigh
- maximum volume numberpublic boolean existYearRanges()
public boolean checkRange(int year, int volume)
year
- publication yearvolume
- volume number to check
public int getYearFromVolume(int vol)
vol
- volume for which we search the year
public boolean equals(java.lang.Object o)
o
- Objet a comparer.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |