public class PropertiesMap extends Object implements PhylogenyData
| Constructor and Description |
|---|
PropertiesMap() |
| Modifier and Type | Method and Description |
|---|---|
void |
addProperty(Property property) |
StringBuffer |
asSimpleText() |
StringBuffer |
asText() |
PhylogenyData |
copy()
Creates a new PhylogenyData object with identical values as this
PhylogenyData.
|
SortedMap<String,Property> |
getProperties() |
Property[] |
getPropertiesArray() |
List<Property> |
getPropertiesWithGivenReferencePrefix(String ref_prefix) |
Property |
getProperty(String ref) |
String[] |
getPropertyRefs()
Returns all property refs of this PhylogenyNode as String array.
|
boolean |
isEqual(PhylogenyData data)
Compares this PhylogenyData to PhylogenyData data.
|
boolean |
refExists(String ref) |
List<String> |
removePropertiesWithGivenReferencePrefix(String ref_prefix) |
Property |
removeProperty(String ref) |
int |
size() |
StringBuffer |
toNHX() |
void |
toPhyloXML(Writer writer,
int level,
String indentation)
Writes a phyloXML representation of this phylogeny data.
|
String |
toString() |
public int size()
public void addProperty(Property property) throws IllegalArgumentException
IllegalArgumentExceptionpublic StringBuffer asSimpleText()
asSimpleText in interface PhylogenyDatapublic StringBuffer asText()
asText in interface PhylogenyDatapublic PhylogenyData copy()
PhylogenyDatacopy in interface PhylogenyDatapublic Property[] getPropertiesArray()
public List<Property> getPropertiesWithGivenReferencePrefix(String ref_prefix) throws IllegalArgumentException
IllegalArgumentExceptionpublic Property getProperty(String ref) throws IllegalArgumentException
IllegalArgumentExceptionpublic String[] getPropertyRefs()
public boolean isEqual(PhylogenyData data)
PhylogenyDataisEqual in interface PhylogenyDatapublic boolean refExists(String ref)
public Property removeProperty(String ref) throws IllegalArgumentException
IllegalArgumentExceptionpublic List<String> removePropertiesWithGivenReferencePrefix(String ref_prefix) throws IllegalArgumentException
IllegalArgumentExceptionpublic StringBuffer toNHX()
toNHX in interface PhylogenyDatapublic void toPhyloXML(Writer writer, int level, String indentation) throws IOException
PhylogenyDatatoPhyloXML in interface PhylogenyDataIOExceptionCopyright © 2016. All rights reserved.