Term
, Annotatable
public final class IntegerOntology.IntTerm extends java.lang.Object implements Term
Constructor | Description |
---|---|
IntTerm(int val) |
|
IntTerm(int val,
java.lang.Object[] synonyms) |
Modifier and Type | Method | Description |
---|---|---|
void |
addSynonym(java.lang.Object synonym) |
Add a synonym for this term.
|
Annotation |
getAnnotation() |
Should return the associated annotation object.
|
java.lang.String |
getDescription() |
Return a human-readable description of this term, or the empty string if
none is available.
|
java.lang.String |
getName() |
Return the name of this term.
|
Ontology |
getOntology() |
Return the ontology in which this term exists.
|
java.lang.Object[] |
getSynonyms() |
Return the synonyms for this term.
|
int |
intValue() |
|
void |
removeSynonym(java.lang.Object synonym) |
Remove a synonym for this term.
|
void |
setDescription(java.lang.String description) |
set the description of the term;
|
public IntTerm(int val)
public IntTerm(int val, java.lang.Object[] synonyms)
public void addSynonym(java.lang.Object synonym)
Term
addSynonym
in interface Term
synonym
- the synonympublic void removeSynonym(java.lang.Object synonym)
Term
removeSynonym
in interface Term
public java.lang.Object[] getSynonyms()
Term
getSynonyms
in interface Term
public int intValue()
public java.lang.String getName()
Term
public java.lang.String getDescription()
Term
getDescription
in interface Term
public void setDescription(java.lang.String description)
Term
setDescription
in interface Term
public Ontology getOntology()
Term
getOntology
in interface Term
public Annotation getAnnotation()
Annotatable
getAnnotation
in interface Annotatable