com.pushtotest.testmaker.resources
Class XMLProperties

java.lang.Object
  extended by com.pushtotest.testmaker.resources.XMLProperties

public class XMLProperties
extends java.lang.Object


Constructor Summary
XMLProperties()
           
 
Method Summary
static java.util.List get()
           
static org.jdom.Element getChildElement(java.lang.String elementName)
          Return an element within the TestMaker.properties file that is a child to the element
static int getValue(org.jdom.Element el, java.lang.String attributeName, int defaultval)
          Finds the int value in a named attribute of a given Element or returns the default value
static java.lang.String getValue(org.jdom.Element el, java.lang.String attributeName, java.lang.String defaultval)
          Finds the int value in a named attribute of a given Element or returns the default value
static void save()
          Save the properties back to a file.
static void setValue(org.jdom.Element el, java.lang.String attributeName, java.lang.String val)
          Save a String value named attribute of a given Element
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLProperties

public XMLProperties()
Method Detail

getChildElement

public static org.jdom.Element getChildElement(java.lang.String elementName)
Return an element within the TestMaker.properties file that is a child to the element

Parameters:
elementName - The name of the child element.

get

public static java.util.List get()

save

public static void save()
                 throws java.io.IOException
Save the properties back to a file.

Throws:
java.io.IOException

getValue

public static int getValue(org.jdom.Element el,
                           java.lang.String attributeName,
                           int defaultval)
Finds the int value in a named attribute of a given Element or returns the default value


getValue

public static java.lang.String getValue(org.jdom.Element el,
                                        java.lang.String attributeName,
                                        java.lang.String defaultval)
Finds the int value in a named attribute of a given Element or returns the default value


setValue

public static void setValue(org.jdom.Element el,
                            java.lang.String attributeName,
                            java.lang.String val)
Save a String value named attribute of a given Element