Class XMLConfigHelper

java.lang.Object
com.stream_pi.util.xmlconfighelper.XMLConfigHelper

public class XMLConfigHelper extends Object
  • Constructor Details

    • XMLConfigHelper

      public XMLConfigHelper()
  • Method Details

    • getStringProperty

      public static String getStringProperty​(Element parentElement, String propertyName) throws Exception
      Throws:
      Exception
    • getIntProperty

      public static int getIntProperty​(Element parentElement, String propertyName) throws Exception
      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

      public static void save​(Document document, File file) throws Exception
      Throws:
      Exception
    • getStringProperty

      public static String getStringProperty​(Element parentElement, String propertyName, String ifNotPresent, boolean printStackTrace)
    • getStringProperty

      public static String getStringProperty​(Element parentElement, String propertyName, String ifNotPresent, boolean printStackTrace, boolean createNewIfDoesntExist, Document document, File file)
    • removeChilds

      public static void removeChilds​(Node node)
    • getIntProperty

      public static int getIntProperty​(Element parentElement, String propertyName, int ifNotPresent, boolean printStackTrace)
    • getIntProperty

      public static int getIntProperty​(Element parentElement, String propertyName, int ifNotPresent, boolean printStackTrace, boolean createNewIfDoesntExist, Document document, File file)
    • getDoubleProperty

      public static double getDoubleProperty​(Element parentElement, String propertyName, double ifNotPresent)
    • getDoubleProperty

      public static double getDoubleProperty​(Element parentElement, String propertyName, double ifNotPresent, boolean printStackTrace)
    • getDoubleProperty

      public static double getDoubleProperty​(Element parentElement, String propertyName, double ifNotPresent, boolean printStackTrace, boolean createNewIfDoesntExist, Document document, File file)
    • getStringProperty

      public static String getStringProperty​(Element parentElement, String propertyName, String ifNotPresent)
    • getBooleanProperty

      public static boolean getBooleanProperty​(Element parentElement, String propertyName, boolean ifNotPresent, boolean printStackTrace)
    • getBooleanProperty

      public static boolean getBooleanProperty​(Element parentElement, String propertyName, boolean ifNotPresent, boolean printStackTrace, boolean createNewIfDoesntExist, Document document, File file)
    • getBooleanProperty

      public static boolean getBooleanProperty​(Element parentElement, String propertyName, boolean ifNotPresent)
    • doesElementExist

      public static boolean doesElementExist​(Element parent, String nameOfElement)
    • doesElementExist

      public static boolean doesElementExist​(Document document, String nameOfElement)