public class BasicGoTerm extends java.lang.Object implements GoTerm
| Constructor and Description |
|---|
BasicGoTerm(GoId id,
java.lang.String name,
GoNameSpace namespace,
boolean is_obsolete) |
BasicGoTerm(java.lang.String id,
java.lang.String name,
java.lang.String namespace,
boolean is_obsolete) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.StringBuffer |
asSimpleText() |
java.lang.StringBuffer |
asText() |
int |
compareTo(GoTerm go_term)
Compares based on GO id.
|
PhylogenyData |
copy()
Makes a shallow copy.
|
boolean |
equals(java.lang.Object o)
Return true if both GO id and namespace are equal.
|
java.util.List<GoId> |
getAltIds() |
java.lang.String |
getComment() |
java.lang.String |
getDefinition() |
GoId |
getGoId() |
GoNameSpace |
getGoNameSpace() |
java.util.List<GoRelationship> |
getGoRelationships() |
java.util.List<GoSubset> |
getGoSubsets() |
java.util.List<GoXRef> |
getGoXRefs() |
java.lang.String |
getName() |
java.util.List<GoId> |
getSuperGoIds() |
int |
hashCode()
Hashcode is based on hashcode of GO id.
|
boolean |
isEqual(PhylogenyData go_term)
Compares this PhylogenyData to PhylogenyData data.
|
boolean |
isObsolete() |
void |
setComment(java.lang.String comment) |
void |
setDefinition(java.lang.String definition) |
void |
setGoSubsets(java.util.List<GoSubset> go_subsets) |
java.lang.StringBuffer |
toNHX() |
void |
toPhyloXML(java.io.Writer writer,
int level,
java.lang.String indentation)
Writes a phyloXML representation of this phylogeny data.
|
java.lang.String |
toString() |
public BasicGoTerm(GoId id, java.lang.String name, GoNameSpace namespace, boolean is_obsolete)
public BasicGoTerm(java.lang.String id,
java.lang.String name,
java.lang.String namespace,
boolean is_obsolete)
public java.lang.StringBuffer asSimpleText()
asSimpleText in interface PhylogenyDatapublic java.lang.StringBuffer asText()
asText in interface PhylogenyDatapublic int compareTo(GoTerm go_term)
compareTo in interface java.lang.Comparable<GoTerm>public PhylogenyData copy()
copy in interface PhylogenyDatapublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic java.lang.String getComment()
getComment in interface GoTermpublic java.lang.String getDefinition()
getDefinition in interface GoTermpublic GoNameSpace getGoNameSpace()
getGoNameSpace in interface GoTermpublic java.util.List<GoRelationship> getGoRelationships()
getGoRelationships in interface GoTermpublic java.util.List<GoSubset> getGoSubsets()
getGoSubsets in interface GoTermpublic java.util.List<GoXRef> getGoXRefs()
getGoXRefs in interface GoTermpublic java.util.List<GoId> getSuperGoIds()
getSuperGoIds in interface GoTermpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean isEqual(PhylogenyData go_term)
PhylogenyDataisEqual in interface PhylogenyDatapublic boolean isObsolete()
isObsolete in interface GoTermpublic void setComment(java.lang.String comment)
public void setDefinition(java.lang.String definition)
public void setGoSubsets(java.util.List<GoSubset> go_subsets)
public java.lang.StringBuffer toNHX()
toNHX in interface PhylogenyDatapublic void toPhyloXML(java.io.Writer writer,
int level,
java.lang.String indentation)
throws java.io.IOException
PhylogenyDatatoPhyloXML in interface PhylogenyDatajava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Object