|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcds.simbad.ident.CatalogTable
Liste des catalogues avec leurs synonymes
Field Summary | |
private static java.util.HashMap |
catlist
|
private static java.util.ArrayList |
cats
|
private static CatalogTable |
catTable
|
private static boolean |
isFullTable
|
private static int |
MAX_CAT_COUNT
|
Constructor Summary | |
private |
CatalogTable(java.lang.String filename,
boolean full)
Constructor: loads the catalogue table defined by its filename. |
Method Summary | |
void |
addCatalog(java.lang.String name,
Catalog cat)
Add a catalog object to the table |
static CatalogTable |
createCatalogTable(java.lang.String filename)
loads the catalogue table defined by its filename. |
static CatalogTable |
createFullCatalogTable(java.lang.String filename)
loads the full catalogue table defined by its filename. |
Catalog |
getCatalog(java.lang.String name)
returns the catalogue specified by the name ONLY if it is unique |
java.util.ArrayList |
getCatalogList(java.lang.String name)
get all the catalogs having a given name |
static CatalogTable |
getCatalogTable()
Static method for accessing the catalogTable object |
int |
getCount()
Number of catalogue names, including synonyms |
java.util.Iterator |
iterator()
Gets an iterator on the catalog objects. |
java.lang.String |
toRE()
Retourne la liste des expressions regulieres pour chaque catalogue |
java.lang.String |
toString()
|
void |
writeTable(java.lang.String filename)
Write the catalogue description file |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final int MAX_CAT_COUNT
private static CatalogTable catTable
private static java.util.HashMap catlist
private static java.util.ArrayList cats
private static boolean isFullTable
Constructor Detail |
private CatalogTable(java.lang.String filename, boolean full) throws IdentifierDescriptionException
filename
- name of the file containing the catalogue descriptionsfull
- true if all items should be loaded in a catalogFull object
false if only the catalog object is enough for normalisation.
IdentifierDescriptionException
Method Detail |
public static CatalogTable createCatalogTable(java.lang.String filename) throws IdentifierDescriptionException
filename
- name of the file containing the catalogue descriptions
IdentifierDescriptionException
public static CatalogTable createFullCatalogTable(java.lang.String filename) throws IdentifierDescriptionException
filename
- name of the file containing the catalogue descriptions
IdentifierDescriptionException
public java.util.Iterator iterator()
public void addCatalog(java.lang.String name, Catalog cat)
name
- standard name of the catalogue. If the catalogue name is
with brackets, the name without the braquets will also be added.cat
- catalog object to add to the listpublic java.util.ArrayList getCatalogList(java.lang.String name)
name
- catalog name.
public Catalog getCatalog(java.lang.String name)
name
- catalogue name
public int getCount()
public java.lang.String toString()
public java.lang.String toRE()
public static CatalogTable getCatalogTable()
public void writeTable(java.lang.String filename)
filename
- filename for writing the table
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |