Package org.forester.go
Class BasicGoTerm
java.lang.Object
org.forester.go.BasicGoTerm
- All Implemented Interfaces:
Comparable<GoTerm>,GoTerm,PhylogenyData
-
Constructor Summary
ConstructorsConstructorDescriptionBasicGoTerm(String id, String name, String namespace, boolean is_obsolete) BasicGoTerm(GoId id, String name, GoNameSpace namespace, boolean is_obsolete) -
Method Summary
Modifier and TypeMethodDescriptionasText()intCompares based on GO id.copy()Makes a shallow copy.booleanReturn true if both GO id and namespace are equal.getGoId()getName()inthashCode()Hashcode is based on hashcode of GO id.booleanisEqual(PhylogenyData go_term) Compares this PhylogenyData to PhylogenyData data.booleanvoidsetComment(String comment) voidsetDefinition(String definition) voidsetGoSubsets(List<GoSubset> go_subsets) toNHX()voidtoPhyloXML(Writer writer, int level, String indentation) Writes a phyloXML representation of this phylogeny data.toString()
-
Constructor Details
-
BasicGoTerm
-
BasicGoTerm
-
-
Method Details
-
asSimpleText
- Specified by:
asSimpleTextin interfacePhylogenyData
-
asText
- Specified by:
asTextin interfacePhylogenyData
-
compareTo
Compares based on GO id.- Specified by:
compareToin interfaceComparable<GoTerm>
-
copy
Makes a shallow copy.- Specified by:
copyin interfacePhylogenyData- Returns:
- a ~deep~ copy of this PhylogenyData
-
equals
Return true if both GO id and namespace are equal. -
getAltIds
-
getComment
- Specified by:
getCommentin interfaceGoTerm
-
getDefinition
- Specified by:
getDefinitionin interfaceGoTerm
-
getGoId
-
getGoNameSpace
- Specified by:
getGoNameSpacein interfaceGoTerm
-
getGoRelationships
- Specified by:
getGoRelationshipsin interfaceGoTerm
-
getGoSubsets
- Specified by:
getGoSubsetsin interfaceGoTerm
-
getGoXRefs
- Specified by:
getGoXRefsin interfaceGoTerm
-
getName
-
getSuperGoIds
- Specified by:
getSuperGoIdsin interfaceGoTerm
-
hashCode
public int hashCode()Hashcode is based on hashcode of GO id. -
isEqual
Description copied from interface:PhylogenyDataCompares this PhylogenyData to PhylogenyData data. In general, this should return true if and only if all fiels are exactly identical.- Specified by:
isEqualin interfacePhylogenyData- Returns:
- in general, true if and only if all fiels are exactly identical, false otherwise
-
isObsolete
public boolean isObsolete()- Specified by:
isObsoletein interfaceGoTerm
-
setComment
-
setDefinition
-
setGoSubsets
-
toNHX
- Specified by:
toNHXin interfacePhylogenyData
-
toPhyloXML
Description copied from interface:PhylogenyDataWrites a phyloXML representation of this phylogeny data.- Specified by:
toPhyloXMLin interfacePhylogenyData- Throws:
IOException
-
toString
-