java.io.Serializable
, java.lang.Cloneable
, java.lang.Comparable<Term>
public class Term extends java.lang.Object implements java.lang.Cloneable, java.lang.Comparable<Term>, java.io.Serializable
Term
in BioJava as it provides
specialized methods to obtain the information from the SBO OBO file
directly and under the same name as the keys are given in that file.Term
,
Serialized FormConstructor | Description |
---|---|
Term(org.biojava.nbio.ontology.Term term) |
Creates a new Term instance.
|
Modifier and Type | Method | Description |
---|---|---|
Term |
clone() |
|
int |
compareTo(Term term) |
|
boolean |
equals(java.lang.Object o) |
|
java.util.Set<Term> |
getChildren() |
Returns a set of all the children Term.
|
java.lang.String |
getDefinition() |
Returns the definition of this
Term , which is stored in the
corresponding OBO file under the key def . |
java.lang.String |
getId() |
Returns the SBO identifier of this
Term , for instance:
SBO:0000031 . |
java.lang.String |
getName() |
Returns the name of this
Term , i.e., a very short characterization. |
java.util.Set<Term> |
getParentTerms() |
Returns the parent Terms.
|
org.biojava.nbio.ontology.Synonym[] |
getSynonyms() |
Returns all
Synonym s of this Term . |
org.biojava.nbio.ontology.Term |
getTerm() |
Grants access to the underlying BioJava
org.biojava3.ontology.Term . |
boolean |
isObsolete() |
Checks whether or not this
Term is obsolete. |
static java.lang.String |
printTerm(Term term) |
Returns a String representing a term the same way as in the OBO file.
|
java.lang.String |
toString() |
public Term(org.biojava.nbio.ontology.Term term)
term
- a Term
objectpublic static java.lang.String printTerm(Term term)
term
- the term to printpublic Term clone()
clone
in class java.lang.Object
public int compareTo(Term term)
compareTo
in interface java.lang.Comparable<Term>
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.util.Set<Term> getChildren()
public java.lang.String getDefinition()
Term
, which is stored in the
corresponding OBO file under the key def
.Term
.public java.lang.String getId()
Term
, for instance:
SBO:0000031
.Term
public java.lang.String getName()
Term
, i.e., a very short characterization.Term
public java.util.Set<Term> getParentTerms()
public org.biojava.nbio.ontology.Synonym[] getSynonyms()
Synonym
s of this Term
.Synonym
s of this Term
. Returns
an empty array if no Synonym
s exist for this term,
but never null.public org.biojava.nbio.ontology.Term getTerm()
org.biojava3.ontology.Term
.org.biojava3.ontology.Term
.public boolean isObsolete()
Term
is obsolete.Term
is obsolete.public java.lang.String toString()
toString
in class java.lang.Object