Package org.forester.phylogeny.data
Class PropertiesMap
java.lang.Object
org.forester.phylogeny.data.PropertiesMap
- All Implemented Interfaces:
PhylogenyData
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProperty(Property property) asText()copy()Creates a new PhylogenyData object with identical values as this PhylogenyData.Property[]getPropertiesWithGivenReferencePrefix(String ref_prefix) getProperty(String ref) String[]Returns all property refs of this PhylogenyNode as String array.booleanisEqual(PhylogenyData data) Compares this PhylogenyData to PhylogenyData data.booleanremovePropertiesWithGivenReferencePrefix(String ref_prefix) removeProperty(String ref) intsize()toNHX()voidtoPhyloXML(Writer writer, int level, String indentation) Writes a phyloXML representation of this phylogeny data.toString()
-
Constructor Details
-
PropertiesMap
public PropertiesMap()
-
-
Method Details
-
size
public int size() -
addProperty
- Throws:
IllegalArgumentException
-
asSimpleText
- Specified by:
asSimpleTextin interfacePhylogenyData
-
asText
- Specified by:
asTextin interfacePhylogenyData
-
copy
Description copied from interface:PhylogenyDataCreates a new PhylogenyData object with identical values as this PhylogenyData. This ~should~ return a deep copy, but not there yet.- Specified by:
copyin interfacePhylogenyData- Returns:
- a ~deep~ copy of this PhylogenyData
-
getProperties
-
getPropertiesArray
-
getPropertiesWithGivenReferencePrefix
public List<Property> getPropertiesWithGivenReferencePrefix(String ref_prefix) throws IllegalArgumentException - Throws:
IllegalArgumentException
-
getProperty
- Throws:
IllegalArgumentException
-
getPropertyRefs
Returns all property refs of this PhylogenyNode as String array. -
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
-
refExists
-
removeProperty
- Throws:
IllegalArgumentException
-
removePropertiesWithGivenReferencePrefix
public List<String> removePropertiesWithGivenReferencePrefix(String ref_prefix) throws IllegalArgumentException - Throws:
IllegalArgumentException
-
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
-