public class JahiaDocumentBuilderFactory extends Object
| Constructor and Description |
|---|
JahiaDocumentBuilderFactory() |
| 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 DocumentBuilderFactory |
newInstance()
Creates a new instance of a
DocumentBuilderFactory using the currently configured parameters. |
void |
setExpandEntityReferences(boolean expandEntityRef)
Specifies that the parser produced by this code will expand entity reference nodes.
|
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 static DocumentBuilderFactory newInstance() throws ParserConfigurationException
DocumentBuilderFactory using the currently configured parameters.DocumentBuilderFactoryParserConfigurationException - if a DocumentBuilderFactory cannot be created which satisfies the configuration requested.public void setExpandEntityReferences(boolean expandEntityRef)
false.expandEntityRef - true if the parser produced will expand entity reference nodes; false otherwise.protected 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.