public static class Term.Impl extends AbstractTerm implements Term, java.io.Serializable
Annotatable.AnnotationForwarderdescriptionANNOTATION| Constructor and Description |
|---|
Impl(Ontology ontology,
java.lang.String name) |
Impl(Ontology ontology,
java.lang.String name,
java.lang.String description) |
Impl(Ontology ontology,
java.lang.String name,
java.lang.String description,
java.lang.Object[] synonyms) |
| Modifier and Type | Method and Description |
|---|---|
void |
addSynonym(java.lang.Object synonym)
Add a synonym for this term.
|
boolean |
equals(java.lang.Object obj) |
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 |
hashCode() |
void |
removeSynonym(java.lang.Object synonym)
Remove a synonym for this term.
|
void |
setAnnotation(Annotation annotation) |
void |
setSynonyms(java.util.Set synonyms) |
java.lang.String |
toString() |
getChangeSupport, setDescriptionaddChangeListener, addChangeListener, generateChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListenerclone, finalize, getClass, notify, notifyAll, wait, wait, waitsetDescriptionaddChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListenerpublic Impl(Ontology ontology, java.lang.String name)
public Impl(Ontology ontology, java.lang.String name, java.lang.String description)
public Impl(Ontology ontology, java.lang.String name, java.lang.String description, java.lang.Object[] synonyms)
public void addSynonym(java.lang.Object synonym)
TermaddSynonym in interface Termsynonym - the synonympublic void removeSynonym(java.lang.Object synonym)
TermremoveSynonym in interface Termpublic java.lang.Object[] getSynonyms()
TermgetSynonyms in interface Termpublic java.lang.String getName()
Termpublic void setAnnotation(Annotation annotation)
public void setSynonyms(java.util.Set synonyms)
public java.lang.String getDescription()
TermgetDescription in interface Termpublic Ontology getOntology()
TermgetOntology in interface Termpublic java.lang.String toString()
toString in class java.lang.Objectpublic Annotation getAnnotation()
AnnotatablegetAnnotation in interface Annotatablepublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object