|
Cytoscape 2.8.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.biojava.utils.AbstractChangeable cytoscape.data.ontology.OntologyTerm
public class OntologyTerm
Simple in-memory implementation of an ontology term based on BioJava's
interface.
This implementation uses CyNetwork and CyAttributes as its actual data storage. A term is equal to a CyNode and the node can have attributes like other regular nodes in CyNetwork. Synonyms, description, etc are stored in CyAttributes.
Nested Class Summary | |
---|---|
static class |
OntologyTerm.SynonymType
|
Nested classes/interfaces inherited from interface org.biojava.ontology.OntologyTerm |
---|
org.biojava.ontology.OntologyTerm.Impl |
Nested classes/interfaces inherited from interface org.biojava.bio.Annotatable |
---|
org.biojava.bio.Annotatable.AnnotationForwarder |
Field Summary | |
---|---|
protected static String |
SYNONYM
|
Fields inherited from interface org.biojava.ontology.Term |
---|
ONTOLOGY |
Fields inherited from interface org.biojava.bio.Annotatable |
---|
ANNOTATION |
Constructor Summary | |
---|---|
OntologyTerm(String name,
String ontologyName,
String description)
Constructor. |
Method Summary | |
---|---|
void |
addSynonym(Object synonym)
In this implementation, key is the synonym name, and value is the synonym type. |
void |
addSynonym(Object synonym,
OntologyTerm.SynonymType type)
In this implementation, key is the synonym name, and value is the synonym type. |
org.biojava.bio.Annotation |
getAnnotation()
Always return empty annotation object. |
String |
getDescription()
Return a human-readable description of this term, or the empty string if none is available. |
String |
getName()
Return name (ID) of this term. |
org.biojava.ontology.Ontology |
getOntology()
Get ontology object which contains this term. |
Object[] |
getSynonyms()
Return sysnonym attributes for this term. |
void |
removeSynonym(Object synonym)
Remove a synonym for this term. |
Methods inherited from class org.biojava.utils.AbstractChangeable |
---|
addChangeListener, addChangeListener, generateChangeSupport, getChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.biojava.utils.Changeable |
---|
addChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListener |
Field Detail |
---|
protected static final String SYNONYM
Constructor Detail |
---|
public OntologyTerm(String name, String ontologyName, String description)
name
- ID of this term. SHOULD NOT BE NULL.ontologyName
- description
- Method Detail |
---|
public String getName()
getName
in interface org.biojava.ontology.Term
public org.biojava.ontology.Ontology getOntology()
getOntology
in interface org.biojava.ontology.OntologyTerm
getOntology
in interface org.biojava.ontology.Term
public void addSynonym(Object synonym)
addSynonym
in interface org.biojava.ontology.Term
public void addSynonym(Object synonym, OntologyTerm.SynonymType type)
public String getDescription()
getDescription
in interface org.biojava.ontology.Term
public Object[] getSynonyms()
getSynonyms
in interface org.biojava.ontology.Term
public void removeSynonym(Object synonym)
removeSynonym
in interface org.biojava.ontology.Term
public org.biojava.bio.Annotation getAnnotation()
getAnnotation
in interface org.biojava.bio.Annotatable
|
Cytoscape 2.8.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |