public static class Term.Impl extends AbstractTerm implements Term, java.io.Serializable
Annotatable.AnnotationForwarder
description
ANNOTATION
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, setDescription
addChangeListener, addChangeListener, generateChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListener
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
setDescription
addChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListener
public 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)
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 java.lang.String getName()
Term
public void setAnnotation(Annotation annotation)
public void setSynonyms(java.util.Set synonyms)
public java.lang.String getDescription()
Term
getDescription
in interface Term
public Ontology getOntology()
Term
getOntology
in interface Term
public java.lang.String toString()
toString
in class java.lang.Object
public Annotation getAnnotation()
Annotatable
getAnnotation
in interface Annotatable
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object