Math2mat
Static Public Member Functions

m2m.backend.utils.XMLUtils Class Reference

List of all members.

Static Public Member Functions

static String getTextValue (Element ele, String tagName, String defaultValue)
static boolean getBoolValue (Element ele, String tagName, boolean defaultValue)
static int getIntValue (Element ele, String tagName, int defaultValue)
static float getFloatValue (Element ele, String tagName, float defaultValue)
static double getDoubleValue (Element ele, String tagName, double defaultValue)
static Element createTextElement (Document dom, String tagName, String value)
static Element createIntElement (Document dom, String tagName, int value)
static Element createFloatElement (Document dom, String tagName, float value)
static Element createDoubleElement (Document dom, String tagName, double value)
static Element createBoolElement (Document dom, String tagName, boolean value)

Detailed Description

Author:
ythoma

Definition at line 30 of file XMLUtils.java.


Member Function Documentation

static Element m2m.backend.utils.XMLUtils.createBoolElement ( Document  dom,
String  tagName,
boolean  value 
) [static]

Definition at line 165 of file XMLUtils.java.

static Element m2m.backend.utils.XMLUtils.createDoubleElement ( Document  dom,
String  tagName,
double  value 
) [static]

Definition at line 151 of file XMLUtils.java.

static Element m2m.backend.utils.XMLUtils.createFloatElement ( Document  dom,
String  tagName,
float  value 
) [static]

Definition at line 138 of file XMLUtils.java.

static Element m2m.backend.utils.XMLUtils.createIntElement ( Document  dom,
String  tagName,
int  value 
) [static]

Definition at line 125 of file XMLUtils.java.

static Element m2m.backend.utils.XMLUtils.createTextElement ( Document  dom,
String  tagName,
String  value 
) [static]

Definition at line 110 of file XMLUtils.java.

static boolean m2m.backend.utils.XMLUtils.getBoolValue ( Element  ele,
String  tagName,
boolean  defaultValue 
) [static]

Definition at line 51 of file XMLUtils.java.

static double m2m.backend.utils.XMLUtils.getDoubleValue ( Element  ele,
String  tagName,
double  defaultValue 
) [static]

Calls getTextValue and returns a double value

Definition at line 100 of file XMLUtils.java.

static float m2m.backend.utils.XMLUtils.getFloatValue ( Element  ele,
String  tagName,
float  defaultValue 
) [static]

Calls getTextValue and returns a float value

Definition at line 86 of file XMLUtils.java.

static int m2m.backend.utils.XMLUtils.getIntValue ( Element  ele,
String  tagName,
int  defaultValue 
) [static]

Calls getTextValue and returns a int value

Definition at line 73 of file XMLUtils.java.

static String m2m.backend.utils.XMLUtils.getTextValue ( Element  ele,
String  tagName,
String  defaultValue 
) [static]

I take a xml element and the tag name, look for the tag and get the text content i.e for <employee><name>John</name></employee> xml snippet if the Element points to employee node and tagName is 'name' I will return John

Definition at line 37 of file XMLUtils.java.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations