org.biojava.ontology
public static class Term.Impl extends AbstractTerm implements Term, Serializable
Annotatable.AnnotationForwarderdescriptionANNOTATION| Constructor and Description |
|---|
Term.Impl(Ontology ontology,
String name) |
Term.Impl(Ontology ontology,
String name,
String description) |
Term.Impl(Ontology ontology,
String name,
String description,
Object[] synonyms) |
| Modifier and Type | Method and Description |
|---|---|
void |
addSynonym(Object synonym)
Add a synonym for this term.
|
boolean |
equals(Object obj) |
Annotation |
getAnnotation()
Should return the associated annotation object.
|
String |
getDescription()
Return a human-readable description of this term, or the empty string if
none is available.
|
String |
getName()
Return the name of this term.
|
Ontology |
getOntology()
Return the ontology in which this term exists.
|
Object[] |
getSynonyms()
Return the synonyms for this term.
|
int |
hashCode() |
void |
removeSynonym(Object synonym)
Remove a synonym for this term.
|
void |
setAnnotation(Annotation annotation) |
void |
setSynonyms(Set synonyms) |
String |
toString() |
getChangeSupport, setDescriptionaddChangeListener, addChangeListener, generateChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListenerclone, finalize, getClass, notify, notifyAll, wait, wait, waitsetDescriptionaddChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListenerpublic void addSynonym(Object synonym)
TermaddSynonym in interface Termsynonym - the synonympublic void removeSynonym(Object synonym)
TermremoveSynonym in interface Termpublic Object[] getSynonyms()
TermgetSynonyms in interface Termpublic String getName()
Termpublic void setAnnotation(Annotation annotation)
public void setSynonyms(Set synonyms)
public String getDescription()
TermgetDescription in interface Termpublic Ontology getOntology()
TermgetOntology in interface Termpublic Annotation getAnnotation()
AnnotatablegetAnnotation in interface Annotatable