|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcds.simbad.Identifier
Manages an identifier
Field Summary | |
private Catalog |
cat
|
private static CatalogTable |
catTable
|
private IdentDebugData |
debugData
|
private int |
fcat
|
private java.lang.String |
forcedCatName
|
private boolean |
hasUnderscores
|
private java.lang.String |
identifier
|
private int |
pos
|
private java.util.Vector |
vecElementBin
|
Constructor Summary | |
Identifier()
Empty constructor |
|
Identifier(java.lang.String id)
Constructor. |
|
Identifier(java.lang.String id,
boolean isNormalized)
Constructor. |
|
Identifier(java.lang.String id,
boolean isNormalized,
IdentDebugData debugData)
|
Method Summary | |
boolean |
equals(java.lang.Object o)
MOD-BB 21-01-04 Ajout de cette methode. |
byte[] |
getBin()
Retourne l'identificateur sous forme binaire |
Catalog |
getCat()
Get the catalogue object |
java.lang.String |
getCatname()
Get the catalogue name |
java.lang.String |
getIdent()
Gets the identifier |
int |
getPos()
Gets the position of the identifier |
private java.lang.String |
normalize(Catalog cat,
java.lang.String idfields)
Identifier normalization method |
static java.lang.String |
ReplaceCatName(java.lang.String id,
java.lang.String old_cat,
java.lang.String new_cat)
Methode static! |
static void |
setCatalogTable()
Loads the catalogue description table |
void |
setIdent(java.lang.String ident,
boolean isNormalized)
Sets a new identifier for this object |
void |
setPos(int pos)
Sets the position of the identifier in the identifier list of a given astronomical object |
java.lang.String |
toString()
Returns the identifier string |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static CatalogTable catTable
private java.lang.String identifier
private int fcat
private int pos
private Catalog cat
private java.lang.String forcedCatName
private java.util.Vector vecElementBin
private IdentDebugData debugData
private boolean hasUnderscores
Constructor Detail |
public Identifier()
public Identifier(java.lang.String id) throws IdentifierException
id
- normalized identifier to set to this object.
IdentifierException
public Identifier(java.lang.String id, boolean isNormalized) throws IdentifierException
id
- identifier to set to this object. It can be not normalized, but
must be 'trimmed'.isNormalized
- true if the identifier is already normalized, false
if the normalization process should occur
IdentifierException
public Identifier(java.lang.String id, boolean isNormalized, IdentDebugData debugData) throws IdentifierException
Method Detail |
public static void setCatalogTable()
public Catalog getCat()
public void setIdent(java.lang.String ident, boolean isNormalized) throws IdentifierException
ident
- an identifier string. it should have been 'trim()ed'.
It should also be already normalized if isNormalized is trueisNormalized
- if false, the identifier will be normalized by this method
IdentifierException
private java.lang.String normalize(Catalog cat, java.lang.String idfields)
cat
- Catalog object of the identifier to normalizeidfields
- string containing the fields
public byte[] getBin()
public java.lang.String getCatname()
public java.lang.String getIdent()
public int getPos()
public java.lang.String toString()
public static java.lang.String ReplaceCatName(java.lang.String id, java.lang.String old_cat, java.lang.String new_cat)
id
- identifierold_cat
- current calaog namenew_cat
- new catalog name
public void setPos(int pos)
pos
- position de l'identificateurpublic 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 |