de.spieleck.config
Class Config
java.lang.Object
|
+--de.spieleck.config.Config
- public class Config
- extends java.lang.Object
Parser and builder for the "easy" XML based configuration classes.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INCLUDEELEM
public static final java.lang.String INCLUDEELEM
PARAMELEM
public static final java.lang.String PARAMELEM
THISATTR
public static final java.lang.String THISATTR
NAME_ATTR
public static final java.lang.String NAME_ATTR
VALUE_ATTR
public static final java.lang.String VALUE_ATTR
TEXTSEPARATOR
public static final char TEXTSEPARATOR
SETUPEXTENSION
public static final java.lang.String SETUPEXTENSION
INC_HREF
public static final java.lang.String INC_HREF
INC_PATH
public static final java.lang.String INC_PATH
INC_LIST
public static final java.lang.String INC_LIST
INC_DIR
public static final java.lang.String INC_DIR
INC_EXCL
public static final java.lang.String INC_EXCL
INC_SEP
public static final java.lang.String INC_SEP
listeners
protected static java.util.List listeners
defaultConfig
protected static ConfigFileNode defaultConfig
spf
protected static javax.xml.parsers.SAXParserFactory spf
- Hold a SaxParserFactory to instantiate parsers only
parse
public static ConfigFileNode parse(org.xml.sax.InputSource is)
throws java.io.IOException,
org.xml.sax.SAXException
- Parse setup tree from an InputSource
parse
public static ConfigFileNode parse(org.xml.sax.InputSource is,
ConfigParamMap pm)
throws java.io.IOException,
org.xml.sax.SAXException
newSAXParser
protected static javax.xml.parsers.SAXParser newSAXParser()
throws org.xml.sax.SAXException,
javax.xml.parsers.ParserConfigurationException
- obtain a new parser
setConfig
public static ConfigNode setConfig(ConfigFileNode setup)
getConfig
public static ConfigNode getConfig()
addListener
public static void addListener(ConfigListener listener)
- We supply a preliminary api to inform listeners about a
change in configuration.
removeListener
public static void removeListener(ConfigListener listener)
handleChange
protected static void handleChange(ConfigNode s)