Package org.apache.batik.util
Class XMLResourceDescriptor
- java.lang.Object
-
- org.apache.batik.util.XMLResourceDescriptor
-
public class XMLResourceDescriptor extends java.lang.ObjectThis class describes the XML resources needed to use the various batik modules.- Version:
- $Id: XMLResourceDescriptor.java 1808001 2017-09-11 09:51:29Z ssteiner $
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCSS_PARSER_CLASS_NAME_KEYThe CSS parser class name key.protected static java.lang.StringcssParserClassNameThe class name of the CSS parser to use.protected static java.util.PropertiesparserPropsThe resource bundlestatic java.lang.StringRESOURCESThe resources file namestatic java.lang.StringXML_PARSER_CLASS_NAME_KEYThe XML parser class name key.protected static java.lang.StringxmlParserClassNameThe class name of the XML parser to use.
-
Constructor Summary
Constructors Constructor Description XMLResourceDescriptor()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringgetCSSParserClassName()Returns the class name of the CSS parser to use.protected static java.util.PropertiesgetParserProps()static java.lang.StringgetXMLParserClassName()Returns the class name of the XML parser to use.static voidsetCSSParserClassName(java.lang.String cssParserClassName)Sets the class name of the CSS parser to use.static voidsetXMLParserClassName(java.lang.String xmlParserClassName)Sets the class name of the XML parser to use.
-
-
-
Field Detail
-
XML_PARSER_CLASS_NAME_KEY
public static final java.lang.String XML_PARSER_CLASS_NAME_KEY
The XML parser class name key.- See Also:
- Constant Field Values
-
CSS_PARSER_CLASS_NAME_KEY
public static final java.lang.String CSS_PARSER_CLASS_NAME_KEY
The CSS parser class name key.- See Also:
- Constant Field Values
-
RESOURCES
public static final java.lang.String RESOURCES
The resources file name- See Also:
- Constant Field Values
-
parserProps
protected static java.util.Properties parserProps
The resource bundle
-
xmlParserClassName
protected static java.lang.String xmlParserClassName
The class name of the XML parser to use.
-
cssParserClassName
protected static java.lang.String cssParserClassName
The class name of the CSS parser to use.
-
-
Method Detail
-
getParserProps
protected static java.util.Properties getParserProps()
-
getXMLParserClassName
public static java.lang.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
setXMLParserClassNamemethod. If any, this method will return the value of the property 'org.xml.sax.driver' specified in theresources/XMLResourceDescriptor.propertiesresource file.
-
setXMLParserClassName
public static void setXMLParserClassName(java.lang.String xmlParserClassName)
Sets the class name of the XML parser to use.- Parameters:
xmlParserClassName- the classname of the XML parser
-
getCSSParserClassName
public static java.lang.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
setCSSParserClassNamemethod. If any, this method will return the value of the property 'org.w3c.css.sac.driver' specified in theresources/XMLResourceDescriptor.propertiesresource file.
-
setCSSParserClassName
public static void setCSSParserClassName(java.lang.String cssParserClassName)
Sets the class name of the CSS parser to use.- Parameters:
cssParserClassName- the classname of the CSS parser
-
-