public class XMLResourceDescriptor
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CSS_PARSER_CLASS_NAME_KEY
The CSS parser class name key.
|
protected static java.lang.String |
cssParserClassName
The class name of the CSS parser to use.
|
protected static java.util.Properties |
parserProps
The resource bundle
|
static java.lang.String |
RESOURCES
The resources file name
|
static java.lang.String |
XML_PARSER_CLASS_NAME_KEY
The XML parser class name key.
|
protected static java.lang.String |
xmlParserClassName
The class name of the XML parser to use.
|
Constructor and Description |
---|
XMLResourceDescriptor() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getCSSParserClassName()
Returns the class name of the CSS parser to use.
|
protected static java.util.Properties |
getParserProps() |
static java.lang.String |
getXMLParserClassName()
Returns the class name of the XML parser to use.
|
static void |
setCSSParserClassName(java.lang.String cssParserClassName)
Sets the class name of the CSS parser to use.
|
static void |
setXMLParserClassName(java.lang.String xmlParserClassName)
Sets the class name of the XML parser to use.
|
public static final java.lang.String XML_PARSER_CLASS_NAME_KEY
public static final java.lang.String CSS_PARSER_CLASS_NAME_KEY
public static final java.lang.String RESOURCES
protected static java.util.Properties parserProps
protected static java.lang.String xmlParserClassName
protected static java.lang.String cssParserClassName
protected static java.util.Properties getParserProps()
public static java.lang.String getXMLParserClassName()
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.
public static void setXMLParserClassName(java.lang.String xmlParserClassName)
xmlParserClassName
- the classname of the XML parserpublic static java.lang.String getCSSParserClassName()
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.
public static void setCSSParserClassName(java.lang.String cssParserClassName)
cssParserClassName
- the classname of the CSS parserCopyright © 2022 Apache Software Foundation. All Rights Reserved.