org.apache.batik.util

Class XMLResourceDescriptor

public class XMLResourceDescriptor extends Object

This class describes the XML resources needed to use the various batik modules.
Field Summary
protected static StringcssParserClassName
The class name of the CSS parser to use.
static StringCSS_PARSER_CLASS_NAME_KEY
The CSS parser class name key.
protected static PropertiesparserProps
The resource bundle
static StringRESOURCES
The resources file name
protected static StringxmlParserClassName
The class name of the XML parser to use.
static StringXML_PARSER_CLASS_NAME_KEY
The XML parser class name key.
Method Summary
static StringgetCSSParserClassName()
Returns the class name of the CSS parser to use.
protected static PropertiesgetParserProps()
static StringgetXMLParserClassName()
Returns the class name of the XML parser to use.
static voidsetCSSParserClassName(String cssParserClassName)
Sets the class name of the CSS parser to use.
static voidsetXMLParserClassName(String xmlParserClassName)
Sets the class name of the XML parser to use.

Field Detail

cssParserClassName

protected static String cssParserClassName
The class name of the CSS parser to use.

CSS_PARSER_CLASS_NAME_KEY

public static final String CSS_PARSER_CLASS_NAME_KEY
The CSS parser class name key.

parserProps

protected static Properties parserProps
The resource bundle

RESOURCES

public static final String RESOURCES
The resources file name

xmlParserClassName

protected static String xmlParserClassName
The class name of the XML parser to use.

XML_PARSER_CLASS_NAME_KEY

public static final String XML_PARSER_CLASS_NAME_KEY
The XML parser class name key.

Method Detail

getCSSParserClassName

public static String getCSSParserClassName()
Returns the class name of the CSS parser to use.

This method first checks if any CSS parser has been specified using the setCSSParserClassName method. If any, this method will return the value of the property 'org.w3c.css.sac.driver' specified in the resources/XMLResourceDescriptor.properties resource file.

getParserProps

protected static Properties getParserProps()

getXMLParserClassName

public static String getXMLParserClassName()
Returns the class name of the XML parser to use.

This method first checks if any XML parser has been specified using the setXMLParserClassName method. If any, this method will return the value of the property 'org.xml.sax.driver' specified in the resources/XMLResourceDescriptor.properties resource file.

setCSSParserClassName

public static void setCSSParserClassName(String cssParserClassName)
Sets the class name of the CSS parser to use.

Parameters: cssParserClassName the classname of the CSS parser

setXMLParserClassName

public static void setXMLParserClassName(String xmlParserClassName)
Sets the class name of the XML parser to use.

Parameters: xmlParserClassName the classname of the XML parser

Copyright B) 2008 Apache Software Foundation. All Rights Reserved.