|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcds.simbad.ident.Catalog
cds.simbad.ident.CatalogFull
Full Catalog definition. This object adds the catalogue definition entries that are required to update a catalogue definition and write it back to the file, but are not requested for the regular job of identifier normalisation.
| Field Summary | |
private java.lang.String |
comment
|
private java.util.ArrayList |
examples
|
private java.util.ArrayList |
formats
|
private static java.lang.String[] |
NULL_STRING_ARRAY
|
private java.util.ArrayList |
synonyms
|
private java.util.ArrayList |
versions
|
| Fields inherited from class cds.simbad.ident.Catalog |
description, otype, pgmList, reList, size, stdName |
| Constructor Summary | |
CatalogFull(java.lang.String stdName)
|
|
| Method Summary | |
void |
addExample(java.lang.String example)
adds a example. |
void |
addFormat(java.lang.String fmt)
adds a format. |
void |
addPgm(Pgm pgm,
int idx)
Add a programme at a given position |
void |
addSynonym(java.lang.String syn)
adds a synonym. |
void |
addVersion(java.lang.String version)
adds a version definition. |
void |
clearExamples()
clears the list of examples. |
void |
clearFormats()
clears the list of formats. |
void |
clearSynonyms()
clears the list of synonyms. |
void |
clearVersions()
clears the list of versions. |
java.lang.String |
getComment()
returns the comment associated with the catalogue |
java.lang.String[] |
getExamples()
returns a String array with all the examples. |
java.lang.String[] |
getFormats()
returns a String array with all the formats. |
java.lang.String[] |
getSynonyms()
returns a String array with all the synonyms. |
java.lang.String[] |
getVersions()
returns a String array with all the versions. |
void |
movePgm(int idxOrigin,
int idxDest)
Move a programme from one position to another |
void |
removePgm(int idx)
Remove a programme |
void |
replacePgm(Pgm pgm,
int idx)
Replace a programme by a new version |
void |
setComment(java.lang.String comment)
adds a general comment. |
java.lang.String |
toString()
Edits the whole catalogue object in the same format as it was read from the catalogue description file |
| Methods inherited from class cds.simbad.ident.Catalog |
addPgm, equals, getDescription, getName, getOType, getPgm, getPgmList, getSize, setDescription, setName, setOType, setSize, toRE |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private static final java.lang.String[] NULL_STRING_ARRAY
private java.util.ArrayList formats
private java.util.ArrayList examples
private java.util.ArrayList synonyms
private java.util.ArrayList versions
private java.lang.String comment
| Constructor Detail |
public CatalogFull(java.lang.String stdName)
| Method Detail |
public void clearFormats()
clearFormats in class Catalogpublic void addFormat(java.lang.String fmt)
addFormat in class Catalogfmt - formatpublic java.lang.String[] getFormats()
getFormats in class Catalogpublic void clearExamples()
clearExamples in class Catalogpublic void addExample(java.lang.String example)
addExample in class Catalogexample - example to addpublic java.lang.String[] getExamples()
getExamples in class Catalogpublic void clearSynonyms()
clearSynonyms in class Catalogpublic void addSynonym(java.lang.String syn)
addSynonym in class Catalogsyn - synonym to addpublic java.lang.String[] getSynonyms()
getSynonyms in class Catalogpublic void clearVersions()
clearVersions in class Catalogpublic void addVersion(java.lang.String version)
addVersion in class Catalogversion - version to addpublic java.lang.String[] getVersions()
getVersions in class Catalogpublic void setComment(java.lang.String comment)
setComment in class Catalogcomment - comment to addpublic java.lang.String getComment()
getComment in class Catalog
public void addPgm(Pgm pgm,
int idx)
pgm - Programme to addidx - position where to add the programme
public void movePgm(int idxOrigin,
int idxDest)
idxOrigin - initial positionidxDest - final positionpublic void removePgm(int idx)
idx - position in the list of the programme to remove
public void replacePgm(Pgm pgm,
int idx)
pgm - new version of aprogrammeidx - position of the programme to replacepublic java.lang.String toString()
toString in class Catalog
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||