public class Term extends java.lang.Object implements java.lang.Cloneable, java.lang.Comparable<Term>, java.io.Serializable
org.biojava.nbio.ontology.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.org.biojava.nbio.ontology.Term
,
Serialized FormModifier and Type | Field and Description |
---|---|
private java.lang.String |
def
The base properties of this
Term . |
private java.lang.String |
id
The base properties of this
Term . |
private java.lang.String |
name
The base properties of this
Term . |
private static long |
serialVersionUID
Generated serial version identifier.
|
private org.biojava.nbio.ontology.Term |
term
The underlying BioJava
Term . |
Constructor and Description |
---|
Term(org.biojava.nbio.ontology.Term term)
Creates a new Term instance.
|
Modifier and Type | Method and 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.
|
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() |
private static final long serialVersionUID
private java.lang.String id
Term
.private java.lang.String name
Term
.private java.lang.String def
Term
.private org.biojava.nbio.ontology.Term term
Term
.public Term(org.biojava.nbio.ontology.Term term)
term
- a org.biojava.nbio.ontology.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 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