com.icl.saxon.om
public class DocumentBuilderFactoryImpl extends DocumentBuilderFactory
Constructor Summary | |
---|---|
DocumentBuilderFactoryImpl() |
Method Summary | |
---|---|
Object | getAttribute(String name) |
boolean | getFeature(String name) Get the state of the named feature. Feature names are fully qualified java.net.URIs. |
DocumentBuilder | newDocumentBuilder() |
void | setAttribute(String name, Object value) |
void | setFeature(String name, boolean value) Set a feature for this |
Get the state of the named feature.
Feature names are fully qualified java.net.URIs. Implementations may define their own features. An javax.xml.parsers.ParserConfigurationException is thrown if thisDocumentBuilderFactory
or the
DocumentBuilder
s it creates cannot support the feature.
It is possible for an DocumentBuilderFactory
to expose a feature value but be unable to change its state.
Parameters: name Feature name.
Returns: State of the named feature.
Throws: javax.xml.parsers.ParserConfigurationException
if this
The Saxon implementation always throws this exception.DocumentBuilderFactory
or the DocumentBuilder
s it creates cannot support this feature.
Set a feature for this DocumentBuilderFactory
and DocumentBuilder
s created by this factory.
DocumentBuilderFactory
or the
DocumentBuilder
s it creates cannot support the feature.
It is possible for an DocumentBuilderFactory
to expose a feature value but be unable to change its state.
All implementations are required to support the javax.xml.XMLConstants#FEATURE_SECURE_PROCESSING feature.
When the feature is:
true
: the implementation will limit XML processing to conform to implementation limits.
Examples include enity expansion limits and XML Schema constructs that would consume large amounts of resources.
If XML processing is limited for security reasons, it will be reported via a call to the registered
org.xml.sax.ErrorHandler#fatalError(org.xml.sax.SAXParseException exception).
See javax.xml.parsers.DocumentBuilder#setErrorHandler(org.xml.sax.ErrorHandler errorHandler).
false
: the implementation will processing XML according to the XML specifications without
regard to possible implementation limits.
The Saxon implementation does not support the secure processing feature.
Parameters: name Feature name. value Is feature state true
or false
.
Throws: javax.xml.parsers.ParserConfigurationException
if this DocumentBuilderFactory
or the DocumentBuilder
s
it creates cannot support this feature. NullPointerException If the name
parameter is null.