public class Configuration
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_PARSER
The default DOM parser
|
static java.lang.String |
DEFAULT_PARSER_NAME |
static java.lang.String |
DOM_PARSER
The DOMParser property name
|
static java.lang.String |
JAXP_PARSER
The JAXP parser flag
|
static java.lang.String |
PROPERTIES_FILE
The Name of the properties file
|
static java.lang.String |
SAX_PARSER
The SAX parser property name
|
static boolean |
useJAXP
A flag to indicate that JAXP should be used
|
Modifier and Type | Method and Description |
---|---|
static DOMParser |
getDOMParser()
Returns the DOMParser specified in the properties file,
or the one set via a call to #setDOMParser.
|
static java.lang.String |
getProperty(java.lang.String name)
Returns the property value associated with the given name
|
static org.xml.sax.Parser |
getSAXParser()
Returns the SAX Parser specified in the properties file.
|
static org.xml.sax.XMLReader |
getXMLReader()
Returns the configured XMLReader
|
static void |
setDOMParser(DOMParser domParser)
Sets the DOMParser to return when a call to getDOMParser
is made.
|
static void |
setProperty(java.lang.String property,
java.lang.String value)
Sets the property value associated with the given String.
|
public static final java.lang.String DEFAULT_PARSER
public static final java.lang.String DEFAULT_PARSER_NAME
public static final java.lang.String DOM_PARSER
public static final java.lang.String SAX_PARSER
public static final java.lang.String JAXP_PARSER
public static final boolean useJAXP
public static final java.lang.String PROPERTIES_FILE
public static DOMParser getDOMParser()
public static java.lang.String getProperty(java.lang.String name)
public static org.xml.sax.Parser getSAXParser()
public static org.xml.sax.XMLReader getXMLReader()
public static void setDOMParser(DOMParser domParser)
domParser
- the DOMParser to return when a call
to #getDOMParser is made.public static void setProperty(java.lang.String property, java.lang.String value)