public static final class OntologyTerm.Impl extends Object implements OntologyTerm, Serializable
OntologyTerm.Impl| Constructor and Description |
|---|
Impl(Ontology ontology,
Ontology target) |
Impl(Ontology ontology,
Ontology target,
Object[] synonyms) |
| Modifier and Type | Method and Description |
|---|---|
void |
addSynonym(Object synonym)
Add a synonym for this term.
|
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()
Get the remote ontology referenced by this term
|
Object[] |
getSynonyms()
Return the synonyms for this term.
|
Ontology |
getTargetOntology() |
void |
removeSynonym(Object synonym)
Remove a synonym for this term.
|
void |
setDescription(String description)
set the description of the term;
|
String |
toString() |
public 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 String getDescription()
TermgetDescription in interface Termpublic void setDescription(String description)
TermsetDescription in interface Termpublic Ontology getOntology()
OntologyTermgetOntology in interface OntologyTermgetOntology in interface Termpublic Ontology getTargetOntology()
public Annotation getAnnotation()
AnnotatablegetAnnotation in interface AnnotatableCopyright © 2000–2017 BioJava. All rights reserved.