Package org.forester.phylogeny.data
Class Annotation
java.lang.Object
org.forester.phylogeny.data.Annotation
- All Implemented Interfaces:
Comparable<Annotation>
,MultipleUris
,PhylogenyData
public class Annotation
extends Object
implements PhylogenyData, MultipleUris, Comparable<Annotation>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
asText()
int
copy()
Creates a new PhylogenyData object with identical values as this PhylogenyData.boolean
getDesc()
getRef()
final String
final String
getType()
getUri
(int index) getUris()
boolean
isEqual
(PhylogenyData data) Compares this PhylogenyData to PhylogenyData data.void
setConfidence
(Confidence confidence) void
void
setEvidence
(String evidence) void
setProperties
(PropertiesMap property) void
void
void
toNHX()
void
toPhyloXML
(Writer writer, int level, String indentation) Writes a phyloXML representation of this phylogeny data.toString()
-
Constructor Details
-
Annotation
public Annotation() -
Annotation
-
Annotation
-
-
Method Details
-
addUri
- Specified by:
addUri
in interfaceMultipleUris
-
asSimpleText
- Specified by:
asSimpleText
in interfacePhylogenyData
-
asText
- Specified by:
asText
in interfacePhylogenyData
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Annotation>
-
copy
Description copied from interface:PhylogenyData
Creates a new PhylogenyData object with identical values as this PhylogenyData. This ~should~ return a deep copy, but not there yet.- Specified by:
copy
in interfacePhylogenyData
- Returns:
- a ~deep~ copy of this PhylogenyData
-
equals
-
getConfidence
-
getDesc
-
getEvidence
-
getProperties
-
getRef
-
getRefSource
-
getRefValue
-
getSource
-
getType
-
getUri
- Specified by:
getUri
in interfaceMultipleUris
-
getUris
- Specified by:
getUris
in interfaceMultipleUris
-
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
-
setConfidence
-
setDesc
-
setEvidence
-
setProperties
-
setSource
-
setType
-
setUris
- Specified by:
setUris
in interfaceMultipleUris
-
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
-