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