Class ConfigBase

    • Constructor Detail

      • ConfigBase

        public ConfigBase()
    • Method Detail

      • getActiveConfig

        public static String getActiveConfig​(byte[] data,
                                             String activePath)
                                      throws com.ximpleware.VTDException
        Used to determine which of the elements in the configuration file is set as active.
        Parameters:
        data - - the configuration file
        activePath - - xpath to the element which defines the active configuration
        Returns:
        - the name of the active configuration
        Throws:
        IOException
        com.ximpleware.VTDException
      • stringFromXpath

        protected String stringFromXpath​(com.ximpleware.AutoPilot ap,
                                         String xpath)
                                  throws com.ximpleware.XPathParseException
        Used to get an element by its relative xpath.
        Parameters:
        ap - - a vtd autopilot
        xpath - - xpath to the element which shall be returned
        Returns:
        - String representation of the element
        Throws:
        com.ximpleware.XPathParseException