org.exolab.adaptx.xslt.util
Class Configuration

java.lang.Object
  extended by org.exolab.adaptx.xslt.util.Configuration

public class Configuration
extends java.lang.Object

A simple configuration class for the XSLT processor

Version:
$Revision: 4775 $ $Date: 2004-09-28 15:36:05 -0400 (Tue, 28 Sep 2004) $
Author:
Keith Visco

Field Summary
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
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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.