Class XMLResourceDescriptor
java.lang.Object
org.apache.batik.util.XMLResourceDescriptor
This class describes the XML resources needed to use the various batik
modules.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CSS parser class name key.protected static StringThe class name of the CSS parser to use.protected static PropertiesThe resource bundlestatic final StringThe resources file namestatic final StringThe XML parser class name key.protected static StringThe class name of the XML parser to use. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringReturns the class name of the CSS parser to use.protected static Propertiesstatic StringReturns 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 Details
-
XML_PARSER_CLASS_NAME_KEY
-
CSS_PARSER_CLASS_NAME_KEY
-
RESOURCES
-
parserProps
The resource bundle -
xmlParserClassName
The class name of the XML parser to use. -
cssParserClassName
The class name of the CSS parser to use.
-
-
Constructor Details
-
XMLResourceDescriptor
public XMLResourceDescriptor()
-
-
Method Details
-
getParserProps
-
getXMLParserClassName
Returns the class name of the XML parser to use.This method first checks if any XML parser has been specified using the
setXMLParserClassNamemethod. If any, this method will return the value of the property 'org.xml.sax.driver' specified in theresources/XMLResourceDescriptor.propertiesresource file. -
setXMLParserClassName
Sets the class name of the XML parser to use.- Parameters:
xmlParserClassName- the classname of the XML parser
-
getCSSParserClassName
Returns the class name of the CSS parser to use.This method first checks if any CSS parser has been specified using the
setCSSParserClassNamemethod. If any, this method will return the value of the property 'org.w3c.css.sac.driver' specified in theresources/XMLResourceDescriptor.propertiesresource file. -
setCSSParserClassName
Sets the class name of the CSS parser to use.- Parameters:
cssParserClassName- the classname of the CSS parser
-