Package org.forester.phylogeny.data
Class PhylogenyDataUtil
java.lang.Object
org.forester.phylogeny.data.PhylogenyDataUtil
- 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final doubleValue of -99.0 is used as default value. - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic voidappendClose(Writer w, String element_name) static voidappendElement(Writer w, String element_name, String value) static voidappendElement(Writer w, String element_name, String value, String indentation) static voidappendElement(Writer w, String element_name, String value, String attribute_name, String attribute_value) static voidappendElement(Writer w, String element_name, String value, String attribute_name, String attribute_value, String indentation) static voidappendElement(Writer w, String element_name, String value, String attribute1_name, String attribute1_value, String attribute2_name, String attribute2_value) static voidappendElement(Writer w, String element_name, String value, String attribute1_name, String attribute1_value, String attribute2_name, String attribute2_value, String indentation) static voidappendElement(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 voidappendElement(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 voidappendOpen(Writer w, String element_name) static voidappendOpen(Writer w, String element_name, String attribute_name, String attribute_value) static voidappendOpen(Writer w, String element_name, String attribute1_name, String attribute1_value, String attribute2_name, String attribute2_value) static voidappendOpen(Writer w, String element_name, String attribute1_name, String attribute1_value, String attribute2_name, String attribute2_value, String attribute3_name, String attribute3_value) static voidappendOpen(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 voidappendOpen(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 voidstatic 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
 
 -