xml
Class XMLReader

java.lang.Object
  extended by xml.XMLReader

public class XMLReader
extends java.lang.Object


Constructor Summary
XMLReader(java.lang.String path)
          New contructor.
 
Method Summary
 double[] convertStringToDoubleArray(java.lang.String string, java.lang.String separator)
          Converts a string into an array of double values.
 int[] convertStringToIntArray(java.lang.String string, java.lang.String separator)
          Converts a string into an array of int values.
 javax.vecmath.Matrix3f convertStringToMatrix3f(java.lang.String string, java.lang.String separator)
          Converts a string into a Matrix3f.
 java.lang.String[] convertStringToStringArray(java.lang.String string, java.lang.String separator)
          Converts a string into an array of strings.
 void readingXML(java.lang.String path, MembranModel membranModel)
          Reads the XML file using the SAXBuilder()
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLReader

public XMLReader(java.lang.String path)
          throws java.io.IOException,
                 org.jdom.JDOMException
New contructor. Executes the readingXML function.

Parameters:
path - Path of the file that should be parsed
Throws:
java.io.IOException
org.jdom.JDOMException
Method Detail

readingXML

public void readingXML(java.lang.String path,
                       MembranModel membranModel)
                throws java.io.IOException,
                       org.jdom.JDOMException
Reads the XML file using the SAXBuilder()

Parameters:
path - Path of the XML file
membranModel - MembranModel object
Throws:
java.io.IOException
org.jdom.JDOMException

convertStringToIntArray

public int[] convertStringToIntArray(java.lang.String string,
                                     java.lang.String separator)
Converts a string into an array of int values.

Parameters:
string - String
separator - Separator of the values in the given string
Returns:
int[]

convertStringToMatrix3f

public javax.vecmath.Matrix3f convertStringToMatrix3f(java.lang.String string,
                                                      java.lang.String separator)
Converts a string into a Matrix3f.

Parameters:
string - String
separator - Separator of the values in the given string
Returns:
Matrix3f

convertStringToDoubleArray

public double[] convertStringToDoubleArray(java.lang.String string,
                                           java.lang.String separator)
Converts a string into an array of double values.

Parameters:
string - String
separator - Separator of the values in the given string
Returns:
double[]

convertStringToStringArray

public java.lang.String[] convertStringToStringArray(java.lang.String string,
                                                     java.lang.String separator)
Converts a string into an array of strings.

Parameters:
string - String
separator - Separator of the values in the given string
Returns:
String[]