|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcds.simbad.Bibcode
CETTE CLASSE Bibcode EST A L'ORIGINE UNE COPIE DE LA CLASSE BIBCODE. LES MODIFICATIONS APPORTEES SONT IDENTIFIABLES PAR "MOD-BB" Bibcode management
Stores a bibcode as a String and has several control and normalisation functions
A full bibcode has the following syntax
YYYYJJJJJNNNNMPPPPA
Field Summary | |
private static int |
BIB_FIRST_YEAR
|
private java.lang.String |
bibcode
|
private static int |
BIBCODE_SIZE
|
private static char |
FILL_CHAR
|
private Journal |
jnl
|
private static int |
JNLABBREV_SIZE
|
private static JournalList |
jnlist
|
private static int |
MAX_VOLUME_SIZE
|
private static java.lang.String |
NO_BIBCODE
|
private static char |
NO_BIBCODE_CHAR
|
private static int |
PAGENUMBER_SIZE
|
static java.util.regex.Pattern |
pattern_bibcode
|
static java.lang.String |
regex_bibcode
|
private static int |
VOLUME_SIZE
|
private static int |
YEAR_SIZE
|
Constructor Summary | |
Bibcode()
Empty constructor |
|
Bibcode(Bibcode bibcode)
copy constructor |
|
Bibcode(java.lang.String bibcode)
Constructor. |
|
Bibcode(java.lang.String bibcode,
boolean normalize)
Constructor. |
Method Summary | |
boolean |
equals(java.lang.Object o)
MOD-BB 21-01-04 Ajout de cette methode. |
java.lang.String |
getBibcode()
Returns the bibcode string |
private void |
getJournalList()
Get the journal list or write an error message |
java.lang.String |
getVolume()
Returns the volume number |
java.lang.String |
getYear()
Returns the publication year |
private boolean |
hasNoValue()
Checks if the current bibcode has an actual value (or is ~) |
static boolean |
isBibcode(java.lang.String str)
Checks whether a string may be a bibcode |
Bibcode |
normalize()
Normalizes the current object |
private java.lang.String |
normalize(java.lang.String bibcode)
Normalisation method. returns a 19 char bibcode. |
void |
set(Bibcode bc)
Sets a bibcode from another one |
void |
setBibcode(java.lang.String bibcode)
Positionnement de l'attribut bibcode. |
java.lang.String |
toString()
Returns the bibcode string |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final int BIB_FIRST_YEAR
private static final int BIBCODE_SIZE
private static final int YEAR_SIZE
private static final int JNLABBREV_SIZE
private static final int MAX_VOLUME_SIZE
private static final int VOLUME_SIZE
private static final int PAGENUMBER_SIZE
private static final char FILL_CHAR
private static final java.lang.String NO_BIBCODE
private static final char NO_BIBCODE_CHAR
private java.lang.String bibcode
private Journal jnl
private static JournalList jnlist
public static final java.lang.String regex_bibcode
public static final java.util.regex.Pattern pattern_bibcode
Constructor Detail |
public Bibcode()
public Bibcode(java.lang.String bibcode) throws BibcodeException
bibcode
- a bibcode string. It may be not normalized.
BibcodeException
public Bibcode(java.lang.String bibcode, boolean normalize) throws BibcodeException
bibcode
- the bibcode stringnormalize
- true if the bibcode has to be normalized
BibcodeException
public Bibcode(Bibcode bibcode)
bibcode
- the bibcode stringMethod Detail |
public void set(Bibcode bc)
bc
- Bibcode object to copyprivate void getJournalList()
private final boolean hasNoValue()
private java.lang.String normalize(java.lang.String bibcode) throws BibcodeException
The entered bibcode can be written in many simplified ways. The normalization routine can recognize automatically following situations:
bibcode
- bibcode to normalize
BibcodeException
public Bibcode normalize() throws BibcodeException
BibcodeException
public static boolean isBibcode(java.lang.String str)
str
- a possible bibcode string
public java.lang.String getBibcode()
public void setBibcode(java.lang.String bibcode)
bibcode
- chaine de caractere representant un bibcode normalisepublic java.lang.String getYear()
public java.lang.String getVolume()
public java.lang.String toString()
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 |