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