Class Configuration
java.lang.Object
org.exolab.adaptx.xslt.util.Configuration
A simple configuration class for the XSLT processor
- Version:
- $Revision: 4775 $ $Date: 2004-09-28 21:36:05 +0200 (Tue, 28 Sep 2004) $
- Author:
- Keith Visco
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe default DOM parserstatic final Stringstatic final StringThe DOMParser property namestatic final StringThe JAXP parser flagstatic final StringThe Name of the properties filestatic final StringThe SAX parser property namestatic final booleanA flag to indicate that JAXP should be used -
Method Summary
Modifier and TypeMethodDescriptionstatic DOMParserReturns the DOMParser specified in the properties file, or the one set via a call to #setDOMParser.static StringgetProperty(String name) Returns the property value associated with the given namestatic ParserReturns the SAX Parser specified in the properties file.static XMLReaderReturns the configured XMLReaderstatic voidsetDOMParser(DOMParser domParser) Sets the DOMParser to return when a call to getDOMParser is made.static voidsetProperty(String property, String value) Sets the property value associated with the given String.
-
Field Details
-
DEFAULT_PARSER
-
DEFAULT_PARSER_NAME
- See Also:
-
DOM_PARSER
-
SAX_PARSER
-
JAXP_PARSER
-
useJAXP
public static final boolean useJAXPA flag to indicate that JAXP should be used- See Also:
-
PROPERTIES_FILE
-
-
Method Details
-
getDOMParser
Returns the DOMParser specified in the properties file, or the one set via a call to #setDOMParser.- Returns:
- the DOMParser specified in the properties file
-
getProperty
-
getSAXParser
Returns the SAX Parser specified in the properties file. If no SAX parser was specified, the default one will be returned.- Returns:
- the SAX Parser specified in the properties file
-
getXMLReader
Returns the configured XMLReader- Returns:
- an instance of the configured XMLReader
-
setDOMParser
Sets the DOMParser to return when a call to getDOMParser is made.
Note:This is static, so it will be shared with all instances of XSL:P within the same VM. A new instance of the parser will be created for thread safety, but only one type of DOMParser may be used.- Parameters:
domParser- the DOMParser to return when a call to #getDOMParser is made.
-
setProperty
-