public static class Term.Impl extends AbstractTerm implements Term, Serializable
This can be used to implement Ontology.createTerm
,
Serialized Formdescription
Constructor and Description |
---|
Impl(Ontology ontology,
String name) |
Impl(Ontology ontology,
String name,
String description) |
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<Object> synonyms) |
String |
toString() |
setDescription
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
setDescription
public void addSynonym(Object synonym)
Term
addSynonym
in interface Term
synonym
- the synonympublic void removeSynonym(Object synonym)
Term
removeSynonym
in interface Term
public Object[] getSynonyms()
Term
getSynonyms
in interface Term
public String getName()
Term
public void setAnnotation(Annotation annotation)
public void setSynonyms(Set<Object> synonyms)
public String getDescription()
Term
getDescription
in interface Term
public Ontology getOntology()
Term
getOntology
in interface Term
public Annotation getAnnotation()
Annotatable
getAnnotation
in interface Annotatable
Copyright © 2000–2018 BioJava. All rights reserved.