|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.metaqtl.bio.entity.BioEntity
org.metaqtl.bio.entity.Ontology
public class Ontology
Field Summary |
---|
Fields inherited from class org.metaqtl.bio.entity.BioEntity |
---|
name, parent, properties |
Constructor Summary | |
---|---|
Ontology()
|
Method Summary | |
---|---|
IBioAdapter |
getBioAdapter()
|
java.lang.String |
getFunction()
Returns the function of the ontology |
IBioOntologyTerm |
getRoot()
Returns the root of the ontology tree. |
IBioOntologyTerm |
getTerm(IBioOntologyTerm term)
Returns if exists the term in the ontology which matches the given one. |
IBioOntologyTerm |
getTerm(java.lang.String termName)
This method looks into the ontology if there is a term with the given name and returns it. |
int |
getType()
There are 2 main class of entities. |
void |
setFunction(java.lang.String function)
Set the function of the ontology. |
void |
setRoot(IBioOntologyTerm root)
Sets the root of the ontology. |
void |
setRoot(OntologyTerm root)
|
Methods inherited from class org.metaqtl.bio.entity.BioEntity |
---|
getName, getParent, getProperties, newBioEntity, setName, setProperties |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.metaqtl.bio.IBioEntity |
---|
getName, getParent, getProperties, setName, setProperties |
Constructor Detail |
---|
public Ontology()
Method Detail |
---|
public void setFunction(java.lang.String function)
function
- public java.lang.String getFunction()
IBioOntology
getFunction
in interface IBioOntology
public IBioOntologyTerm getRoot()
IBioOntology
getRoot
in interface IBioOntology
public IBioOntologyTerm getTerm(IBioOntologyTerm term)
IBioOntology
getTerm
in interface IBioOntology
term
- the term to look for in the ontology.
public int getType()
IBioEntity
getType
in interface IBioEntity
getType
in class BioEntity
public IBioAdapter getBioAdapter()
getBioAdapter
in interface IBioAdaptable
public void setRoot(IBioOntologyTerm root)
IBioOntology
setRoot
in interface IBioOntology
root
- the root of the ontologypublic void setRoot(OntologyTerm root)
root
- the root of the ontology.public IBioOntologyTerm getTerm(java.lang.String termName)
IBioOntology
getTerm
in interface IBioOntology
termName
- the name of the term to find.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |