|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.xml.parsers.DocumentBuilderFactory
org.jscience.ml.cml.dom.pmr.PMRDocumentBuilderFactory
public class PMRDocumentBuilderFactory
at present hardcoded to using default
| Constructor Summary | |
|---|---|
PMRDocumentBuilderFactory()
|
|
| Method Summary | |
|---|---|
java.lang.Object |
getAttribute(java.lang.String name)
Allows the user to retrieve specific attributes on the underlying implementation. |
boolean |
getFeature(java.lang.String name)
Get the state of the named feature. |
javax.xml.parsers.DocumentBuilder |
newDocumentBuilder()
Creates a new instance of a DocumentBuilder using the currently configured parameters. |
static javax.xml.parsers.DocumentBuilderFactory |
newInstance()
Obtain a new instance of a DocumentBuilderFactory This static method creates a new factory instance. |
void |
setAttribute(java.lang.String name,
java.lang.Object value)
Allows the user to set specific attributes on the underlying implementation. |
void |
setFeature(java.lang.String name,
boolean value)
Set a feature for this DocumentBuilderFactory and DocumentBuilders created by this factory. |
| Methods inherited from class javax.xml.parsers.DocumentBuilderFactory |
|---|
getSchema, isCoalescing, isExpandEntityReferences, isIgnoringComments, isIgnoringElementContentWhitespace, isNamespaceAware, isValidating, isXIncludeAware, newInstance, setCoalescing, setExpandEntityReferences, setIgnoringComments, setIgnoringElementContentWhitespace, setNamespaceAware, setSchema, setValidating, setXIncludeAware |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PMRDocumentBuilderFactory()
| Method Detail |
|---|
public static javax.xml.parsers.DocumentBuilderFactory newInstance()
throws javax.xml.parsers.FactoryConfigurationError
javax.xml.parsers.FactoryConfigurationError
public javax.xml.parsers.DocumentBuilder newDocumentBuilder()
throws javax.xml.parsers.ParserConfigurationException
newDocumentBuilder in class javax.xml.parsers.DocumentBuilderFactoryjavax.xml.parsers.ParserConfigurationException
public void setAttribute(java.lang.String name,
java.lang.Object value)
throws java.lang.IllegalArgumentException
setAttribute in class javax.xml.parsers.DocumentBuilderFactoryname - The name of the attribute.value - The value of the attribute.
java.lang.IllegalArgumentException - thrown if the underlying
implementation doesn't recognize the attribute.
public java.lang.Object getAttribute(java.lang.String name)
throws java.lang.IllegalArgumentException
getAttribute in class javax.xml.parsers.DocumentBuilderFactoryname - The name of the attribute.
java.lang.IllegalArgumentException - thrown if the underlying
implementation doesn't recognize the attribute.
public void setFeature(java.lang.String name,
boolean value)
throws javax.xml.parsers.ParserConfigurationException
Set a feature for this DocumentBuilderFactory and DocumentBuilders created by this factory.
URIs.
Implementations may define their own features.
An ParserConfigurationException is thrown if this DocumentBuilderFactory or the
DocumentBuilders 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 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(SAXParseExceptionexception).
See DocumentBuilder#setErrorHandler(org.xml.sax.ErrorHandlererrorHandler).
false: the implementation will processing XML according to the XML specifications without
regard to possible implementation limits.
setFeature in class javax.xml.parsers.DocumentBuilderFactoryname - Feature name.value - Is feature state true or false.
javax.xml.parsers.ParserConfigurationException - if this DocumentBuilderFactory or the DocumentBuilders
it creates cannot support this feature.
java.lang.NullPointerException - If the name parameter is null.
public boolean getFeature(java.lang.String name)
throws javax.xml.parsers.ParserConfigurationException
Get the state of the named feature.
Feature names are fully qualifiedURIs.
Implementations may define their own features.
An ParserConfigurationException is thrown if this DocumentBuilderFactory or the
DocumentBuilders it creates cannot support the feature.
It is possible for an DocumentBuilderFactory to expose a feature value but be unable to change its state.
getFeature in class javax.xml.parsers.DocumentBuilderFactoryname - Feature name.
javax.xml.parsers.ParserConfigurationException - if this DocumentBuilderFactory
or the DocumentBuilders it creates cannot support this feature.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||