Class ConfigBase
- java.lang.Object
-
- de.julielab.costosys.configuration.ConfigBase
-
- Direct Known Subclasses:
DBConfig,FieldConfig
public abstract class ConfigBase extends Object
-
-
Constructor Summary
Constructors Constructor Description ConfigBase()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StringgetActiveConfig(byte[] data, String activePath)Used to determine which of the elements in the configuration file is set as active.protected StringstringFromXpath(com.ximpleware.AutoPilot ap, String xpath)Used to get an element by its relative xpath.
-
-
-
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 fileactivePath- - xpath to the element which defines the active configuration- Returns:
- - the name of the active configuration
- Throws:
IOExceptioncom.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 autopilotxpath- - xpath to the element which shall be returned- Returns:
- - String representation of the element
- Throws:
com.ximpleware.XPathParseException
-
-