Package org.exolab.adaptx.xslt.util
Class Configuration
- java.lang.Object
-
- org.exolab.adaptx.xslt.util.Configuration
-
public class Configuration extends java.lang.ObjectA 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
Fields Modifier and Type Field Description static java.lang.StringDEFAULT_PARSERThe default DOM parserstatic java.lang.StringDEFAULT_PARSER_NAMEstatic java.lang.StringDOM_PARSERThe DOMParser property namestatic java.lang.StringJAXP_PARSERThe JAXP parser flagstatic java.lang.StringPROPERTIES_FILEThe Name of the properties filestatic java.lang.StringSAX_PARSERThe SAX parser property namestatic booleanuseJAXPA flag to indicate that JAXP should be used
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DOMParsergetDOMParser()Returns the DOMParser specified in the properties file, or the one set via a call to #setDOMParser.static java.lang.StringgetProperty(java.lang.String name)Returns the property value associated with the given namestatic org.xml.sax.ParsergetSAXParser()Returns the SAX Parser specified in the properties file.static org.xml.sax.XMLReadergetXMLReader()Returns the configured XMLReaderstatic voidsetDOMParser(DOMParser domParser)Sets the DOMParser to return when a call to getDOMParser is made.static voidsetProperty(java.lang.String property, java.lang.String value)Sets the property value associated with the given String.
-
-
-
Field Detail
-
DEFAULT_PARSER
public static final java.lang.String DEFAULT_PARSER
The default DOM parser- See Also:
- Constant Field Values
-
DEFAULT_PARSER_NAME
public static final java.lang.String DEFAULT_PARSER_NAME
- See Also:
- Constant Field Values
-
DOM_PARSER
public static final java.lang.String DOM_PARSER
The DOMParser property name- See Also:
- Constant Field Values
-
SAX_PARSER
public static final java.lang.String SAX_PARSER
The SAX parser property name- See Also:
- Constant Field Values
-
JAXP_PARSER
public static final java.lang.String JAXP_PARSER
The JAXP parser flag- See Also:
- Constant Field Values
-
useJAXP
public static final boolean useJAXP
A flag to indicate that JAXP should be used- See Also:
- Constant Field Values
-
PROPERTIES_FILE
public static final java.lang.String PROPERTIES_FILE
The Name of the properties file- See Also:
- Constant Field Values
-
-
Method Detail
-
getDOMParser
public static DOMParser 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
public static java.lang.String getProperty(java.lang.String name)
Returns the property value associated with the given name- Returns:
- the property with the given name, or null if no property was found.
-
getSAXParser
public static org.xml.sax.Parser 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
public static org.xml.sax.XMLReader getXMLReader()
Returns the configured XMLReader- Returns:
- an instance of the configured XMLReader
-
setDOMParser
public static void setDOMParser(DOMParser domParser)
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
public static void setProperty(java.lang.String property, java.lang.String value)Sets the property value associated with the given String.
-
-