java.lang.Object
com.stream_pi.util.xmlconfighelper.XMLConfigHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleandoesElementExist(Document document, String nameOfElement)static booleandoesElementExist(Element parent, String nameOfElement)static booleangetBooleanProperty(Element parentElement, String propertyName)static booleangetBooleanProperty(Element parentElement, String propertyName, boolean ifNotPresent)static booleangetBooleanProperty(Element parentElement, String propertyName, boolean ifNotPresent, boolean printStackTrace)static booleangetBooleanProperty(Element parentElement, String propertyName, boolean ifNotPresent, boolean printStackTrace, boolean createNewIfDoesntExist, Document document, File file)static doublegetDoubleProperty(Element parentElement, String propertyName)static doublegetDoubleProperty(Element parentElement, String propertyName, double ifNotPresent)static doublegetDoubleProperty(Element parentElement, String propertyName, double ifNotPresent, boolean printStackTrace)static doublegetDoubleProperty(Element parentElement, String propertyName, double ifNotPresent, boolean printStackTrace, boolean createNewIfDoesntExist, Document document, File file)static intgetIntProperty(Element parentElement, String propertyName)static intgetIntProperty(Element parentElement, String propertyName, int ifNotPresent, boolean printStackTrace)static intgetIntProperty(Element parentElement, String propertyName, int ifNotPresent, boolean printStackTrace, boolean createNewIfDoesntExist, Document document, File file)static StringgetProperty(Element parentElement, String propertyName, boolean createNewIfDoesntExist, Document document, File file)static StringgetStringProperty(Element parentElement, String propertyName)static StringgetStringProperty(Element parentElement, String propertyName, String ifNotPresent)static StringgetStringProperty(Element parentElement, String propertyName, String ifNotPresent, boolean printStackTrace)static StringgetStringProperty(Element parentElement, String propertyName, String ifNotPresent, boolean printStackTrace, boolean createNewIfDoesntExist, Document document, File file)static voidremoveChilds(Node node)static void
-
Constructor Details
-
XMLConfigHelper
public XMLConfigHelper()
-
-
Method Details
-
getStringProperty
public static String getStringProperty(Element parentElement, String propertyName) throws Exception- Throws:
Exception
-
getIntProperty
- Throws:
Exception
-
getDoubleProperty
public static double getDoubleProperty(Element parentElement, String propertyName) throws Exception- Throws:
Exception
-
getBooleanProperty
public static boolean getBooleanProperty(Element parentElement, String propertyName) throws Exception- Throws:
Exception
-
getProperty
public static String getProperty(Element parentElement, String propertyName, boolean createNewIfDoesntExist, Document document, File file) throws Exception- Throws:
Exception
-
save
- Throws:
Exception
-
getStringProperty
-
getStringProperty
-
removeChilds
-
getIntProperty
-
getIntProperty
-
getDoubleProperty
-
getDoubleProperty
-
getDoubleProperty
-
getStringProperty
-
getBooleanProperty
-
getBooleanProperty
-
getBooleanProperty
-
doesElementExist
-
doesElementExist
-