public class JahiaSAXParserFactory extends Object
| Constructor and Description |
|---|
JahiaSAXParserFactory()
Initializes an instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,Boolean> |
getFeatures()
Returns a map of XML parser features.
|
protected boolean |
isNamespaceAware()
Indicates whether or not the factory is configured to produce parsers which are namespace aware.
|
protected boolean |
isValidating()
Indicates whether or not the factory is configured to produce parsers which validate the XML content during parse.
|
protected boolean |
isXIncludeAware()
Get state of XInclude processing.
|
static SAXParserFactory |
newInstance()
Creates a new instance of a
SAXParserFactory using the currently configured factory parameters. |
void |
setFeatures(Map<String,Boolean> features)
Sets the features for this parser factory.
|
void |
setNamespaceAware(boolean namespaceAware)
Specifies that the parser produced by this code will provide support for XML namespaces.
|
void |
setValidating(boolean validating)
Specifies that the parser produced by this code will validate documents as they are parsed.
|
void |
setXIncludeAware(boolean isXIncludeAware)
Set state of XInclude processing.
|
public JahiaSAXParserFactory()
public static SAXParserFactory newInstance() throws ParserConfigurationException, SAXException
SAXParserFactory using the currently configured factory parameters.ParserConfigurationException - if a factory cannot be created which satisfies the requested configurationSAXException - for SAX errorsprotected Map<String,Boolean> getFeatures()
protected boolean isNamespaceAware()
protected boolean isValidating()
protected boolean isXIncludeAware()
Get state of XInclude processing.
UnsupportedOperationException - When implementation does not override this method.public void setFeatures(Map<String,Boolean> features)
features - the map of featurespublic void setNamespaceAware(boolean namespaceAware)
falseawareness - true if the parser produced will provide support for XML namespaces; false otherwise.public void setValidating(boolean validating)
false.validating - true if the parser produced will validate documents as they are parsed; false otherwise.public void setXIncludeAware(boolean isXIncludeAware)
Set state of XInclude processing.
If XInclude markup is found in the document instance, should it be processed as specified in XML Inclusions (XInclude) Version 1.0.
XInclude processing defaults to false.
state - Set XInclude processing to true or falseCopyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.