public class Property extends Object implements PhylogenyData
| Modifier and Type | Class and Description |
|---|---|
static class |
Property.AppliesTo |
| Constructor and Description |
|---|
Property(String ref,
String value,
String unit,
String datatype,
Property.AppliesTo applies_to) |
Property(String ref,
String value,
String unit,
String datatype,
Property.AppliesTo applies_to,
String id_ref) |
| Modifier and Type | Method and Description |
|---|---|
StringBuffer |
asSimpleText() |
StringBuffer |
asText() |
PhylogenyData |
copy()
Creates a new PhylogenyData object with identical values as this
PhylogenyData.
|
static Property |
createFromNhxString(String nhx) |
Property.AppliesTo |
getAppliesTo() |
String |
getDataType() |
String |
getIdRef() |
String |
getRef() |
String |
getUnit() |
String |
getValue() |
boolean |
isEqual(PhylogenyData data)
Compares this PhylogenyData to PhylogenyData data.
|
void |
setValue(String value) |
StringBuffer |
toNHX() |
void |
toPhyloXML(Writer writer,
int level,
String indentation)
Writes a phyloXML representation of this phylogeny data.
|
String |
toString() |
public Property(String ref, String value, String unit, String datatype, Property.AppliesTo applies_to)
public StringBuffer asSimpleText()
asSimpleText in interface PhylogenyDatapublic StringBuffer asText()
asText in interface PhylogenyDatapublic PhylogenyData copy()
PhylogenyDatacopy in interface PhylogenyDatapublic Property.AppliesTo getAppliesTo()
public String getDataType()
public String getIdRef()
public String getRef()
public String getUnit()
public String getValue()
public boolean isEqual(PhylogenyData data)
PhylogenyDataisEqual in interface PhylogenyDatapublic void setValue(String value)
public StringBuffer toNHX()
toNHX in interface PhylogenyDatapublic void toPhyloXML(Writer writer, int level, String indentation) throws IOException
PhylogenyDatatoPhyloXML in interface PhylogenyDataIOExceptionpublic static Property createFromNhxString(String nhx) throws IllegalArgumentException
IllegalArgumentExceptionCopyright © 2016. All rights reserved.