Package org.forester.phylogeny.data
Class PhylogenyDataUtil
java.lang.Object
org.forester.phylogeny.data.PhylogenyDataUtil
-
Field Summary
Modifier and TypeFieldDescriptionstatic final double
Value of -99.0 is used as default value. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
appendClose
(Writer w, String element_name) static void
appendElement
(Writer w, String element_name, String value) static void
appendElement
(Writer w, String element_name, String value, String indentation) static void
appendElement
(Writer w, String element_name, String value, String attribute_name, String attribute_value) static void
appendElement
(Writer w, String element_name, String value, String attribute_name, String attribute_value, String indentation) static void
appendElement
(Writer w, String element_name, String value, String attribute1_name, String attribute1_value, String attribute2_name, String attribute2_value) static void
appendElement
(Writer w, String element_name, String value, String attribute1_name, String attribute1_value, String attribute2_name, String attribute2_value, String indentation) static void
appendElement
(Writer w, String element_name, String attribute1_name, String attribute1_value, String attribute2_name, String attribute2_value, String attribute3_name, String attribute3_value, String attribute4_name, String attribute4_value, String indentation) static void
appendElement
(Writer w, String element_name, String value, String attribute1_name, String attribute1_value, String attribute2_name, String attribute2_value, String attribute3_name, String attribute3_value, String attribute4_name, String attribute4_value, String attribute5_name, String attribute5_value, String indentation) static void
appendOpen
(Writer w, String element_name) static void
appendOpen
(Writer w, String element_name, String attribute_name, String attribute_value) static void
appendOpen
(Writer w, String element_name, String attribute1_name, String attribute1_value, String attribute2_name, String attribute2_value) static void
appendOpen
(Writer w, String element_name, String attribute1_name, String attribute1_value, String attribute2_name, String attribute2_value, String attribute3_name, String attribute3_value) static void
appendOpen
(Writer w, String element_name, String attribute1_name, String attribute1_value, String attribute2_name, String attribute2_value, String attribute3_name, String attribute3_value, String attribute4_name, String attribute4_value) static void
appendOpen
(Writer w, String element_name, String attribute1_name, String attribute1_value, String attribute2_name, String attribute2_value, String attribute3_name, String attribute3_value, String attribute4_name, String attribute4_value, String attribute5_name, String attribute5_value) static ArrayList<PhylogenyData>
copy
(ArrayList<PhylogenyData> list) Creates a deep copy of ArrayList of PhylogenyData objects.static void
static String
-
Field Details
-
BRANCH_LENGTH_DEFAULT
public static final double BRANCH_LENGTH_DEFAULTValue of -99.0 is used as default value.- See Also:
-
-
Constructor Details
-
PhylogenyDataUtil
public PhylogenyDataUtil()
-
-
Method Details
-
appendClose
- Throws:
IOException
-
appendElement
- Throws:
IOException
-
appendElement
public static void appendElement(Writer w, String element_name, String value, String indentation) throws IOException - Throws:
IOException
-
appendElement
public static void appendElement(Writer w, String element_name, String value, String attribute_name, String attribute_value) throws IOException - Throws:
IOException
-
appendElement
public static void appendElement(Writer w, String element_name, String value, String attribute_name, String attribute_value, String indentation) throws IOException - Throws:
IOException
-
appendElement
public static void appendElement(Writer w, String element_name, String value, String attribute1_name, String attribute1_value, String attribute2_name, String attribute2_value, String indentation) throws IOException - Throws:
IOException
-
appendElement
public static void appendElement(Writer w, String element_name, String value, String attribute1_name, String attribute1_value, String attribute2_name, String attribute2_value) throws IOException - Throws:
IOException
-
appendElement
public static void appendElement(Writer w, String element_name, String attribute1_name, String attribute1_value, String attribute2_name, String attribute2_value, String attribute3_name, String attribute3_value, String attribute4_name, String attribute4_value, String indentation) throws IOException - Throws:
IOException
-
appendElement
public static void appendElement(Writer w, String element_name, String value, String attribute1_name, String attribute1_value, String attribute2_name, String attribute2_value, String attribute3_name, String attribute3_value, String attribute4_name, String attribute4_value, String attribute5_name, String attribute5_value, String indentation) throws IOException - Throws:
IOException
-
appendOpen
- Throws:
IOException
-
appendOpen
public static void appendOpen(Writer w, String element_name, String attribute_name, String attribute_value) throws IOException - Throws:
IOException
-
appendOpen
public static void appendOpen(Writer w, String element_name, String attribute1_name, String attribute1_value, String attribute2_name, String attribute2_value) throws IOException - Throws:
IOException
-
appendOpen
public static void appendOpen(Writer w, String element_name, String attribute1_name, String attribute1_value, String attribute2_name, String attribute2_value, String attribute3_name, String attribute3_value) throws IOException - Throws:
IOException
-
appendOpen
public static void appendOpen(Writer w, String element_name, String attribute1_name, String attribute1_value, String attribute2_name, String attribute2_value, String attribute3_name, String attribute3_value, String attribute4_name, String attribute4_value) throws IOException - Throws:
IOException
-
appendOpen
public static void appendOpen(Writer w, String element_name, String attribute1_name, String attribute1_value, String attribute2_name, String attribute2_value, String attribute3_name, String attribute3_value, String attribute4_name, String attribute4_value, String attribute5_name, String attribute5_value) throws IOException - Throws:
IOException
-
copy
Creates a deep copy of ArrayList of PhylogenyData objects.- Parameters:
list
- an ArrayList of PhylogenyData objects- Returns:
- a deep copy of ArrayList list
-
drawLine
-
replaceIllegalXmlCharacters
-