Class DocumentBuilderFactoryImpl
- java.lang.Object
-
- javax.xml.parsers.DocumentBuilderFactory
-
- org.smooks.engine.delivery.sax.ng.org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
-
public class DocumentBuilderFactoryImpl extends DocumentBuilderFactory
- Version:
- $Id$
- Author:
- Rajiv Mordani, Edwin Goei
-
-
Constructor Summary
Constructors Constructor Description DocumentBuilderFactoryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getAttribute(String name)
Allows the user to retrieve specific attributes on the underlying implementation.boolean
getFeature(String name)
Schema
getSchema()
boolean
isXIncludeAware()
DocumentBuilder
newDocumentBuilder()
Creates a new instance of aDocumentBuilder
using the currently configured parameters.void
setAttribute(String name, Object value)
Allows the user to set specific attributes on the underlying implementation.void
setFeature(String name, boolean value)
void
setSchema(Schema grammar)
void
setXIncludeAware(boolean state)
-
Methods inherited from class javax.xml.parsers.DocumentBuilderFactory
isCoalescing, isExpandEntityReferences, isIgnoringComments, isIgnoringElementContentWhitespace, isNamespaceAware, isValidating, newInstance, newInstance, setCoalescing, setExpandEntityReferences, setIgnoringComments, setIgnoringElementContentWhitespace, setNamespaceAware, setValidating
-
-
-
-
Method Detail
-
newDocumentBuilder
public DocumentBuilder newDocumentBuilder() throws ParserConfigurationException
Creates a new instance of aDocumentBuilder
using the currently configured parameters.- Specified by:
newDocumentBuilder
in classDocumentBuilderFactory
- Throws:
ParserConfigurationException
-
setAttribute
public void setAttribute(String name, Object value) throws IllegalArgumentException
Allows the user to set specific attributes on the underlying implementation.- Specified by:
setAttribute
in classDocumentBuilderFactory
- Parameters:
name
- name of attributevalue
- null means to remove attribute- Throws:
IllegalArgumentException
-
getAttribute
public Object getAttribute(String name) throws IllegalArgumentException
Allows the user to retrieve specific attributes on the underlying implementation.- Specified by:
getAttribute
in classDocumentBuilderFactory
- Throws:
IllegalArgumentException
-
getSchema
public Schema getSchema()
- Overrides:
getSchema
in classDocumentBuilderFactory
-
setSchema
public void setSchema(Schema grammar)
- Overrides:
setSchema
in classDocumentBuilderFactory
-
isXIncludeAware
public boolean isXIncludeAware()
- Overrides:
isXIncludeAware
in classDocumentBuilderFactory
-
setXIncludeAware
public void setXIncludeAware(boolean state)
- Overrides:
setXIncludeAware
in classDocumentBuilderFactory
-
getFeature
public boolean getFeature(String name) throws ParserConfigurationException
- Specified by:
getFeature
in classDocumentBuilderFactory
- Throws:
ParserConfigurationException
-
setFeature
public void setFeature(String name, boolean value) throws ParserConfigurationException
- Specified by:
setFeature
in classDocumentBuilderFactory
- Throws:
ParserConfigurationException
-
-