| 
 | Cytoscape 2.6.2 (c) 2006,2007 ISB, MSKCC, UCSD | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.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 | 
|---|
| 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, isUnchanging, removeChangeListener, removeChangeListener | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Methods inherited from interface org.biojava.utils.Changeable | 
|---|
| addChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListener | 
| 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.Termpublic org.biojava.ontology.Ontology getOntology()
getOntology in interface org.biojava.ontology.OntologyTermgetOntology in interface org.biojava.ontology.Termpublic 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.Termpublic Object[] getSynonyms()
getSynonyms in interface org.biojava.ontology.Termpublic void removeSynonym(Object synonym)
removeSynonym in interface org.biojava.ontology.Termpublic org.biojava.bio.Annotation getAnnotation()
getAnnotation in interface org.biojava.bio.Annotatable| 
 | www.cytoscape.org | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||