public class DocumentBuilderFactoryImpl
extends javax.xml.parsers.DocumentBuilderFactory
This class uses another DocumentBuilderFactory implementation and adds the validation capability to it.
| Modifier and Type | Field and Description |
|---|---|
private javax.xml.parsers.DocumentBuilderFactory |
core
Wrapped DocumentBuilderFactory that does everything else.
|
private org.iso_relax.verifier.VerifierFactory |
jarvFactory
JARV VerifierFactory implementation, which will be used to parse schemas.
|
private org.iso_relax.verifier.Schema |
schema
The validation will be performed against this schema object.
|
| Constructor and Description |
|---|
DocumentBuilderFactoryImpl()
Creates a new instance by using the default DocumentBuilderFactory implementation
as the underlying parser.
|
DocumentBuilderFactoryImpl(javax.xml.parsers.DocumentBuilderFactory _factory)
Creates a new instance by specifying the underlying SAXParserFactory
implementation.
|
DocumentBuilderFactoryImpl(javax.xml.parsers.DocumentBuilderFactory _factory,
org.iso_relax.verifier.Schema _schema) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getAttribute(java.lang.String name) |
boolean |
getFeature(java.lang.String name) |
boolean |
isCoalescing() |
boolean |
isExpandEntityReference() |
boolean |
isIgnoringComments() |
boolean |
isIgnoringElementContentWhitespace() |
boolean |
isNamespaceAware() |
boolean |
isValidating() |
javax.xml.parsers.DocumentBuilder |
newDocumentBuilder() |
void |
setAttribute(java.lang.String name,
java.lang.Object value) |
void |
setCoalescing(boolean newVal) |
void |
setExpandEntityReference(boolean newVal) |
void |
setFeature(java.lang.String name,
boolean value) |
void |
setIgnoringComments(boolean newVal) |
void |
setIgnoringElementContentWhitespace(boolean newVal) |
void |
setNamespaceAware(boolean newVal) |
void |
setValidating(boolean newVal) |
private final javax.xml.parsers.DocumentBuilderFactory core
private final org.iso_relax.verifier.VerifierFactory jarvFactory
private org.iso_relax.verifier.Schema schema
public DocumentBuilderFactoryImpl()
public DocumentBuilderFactoryImpl(javax.xml.parsers.DocumentBuilderFactory _factory)
public DocumentBuilderFactoryImpl(javax.xml.parsers.DocumentBuilderFactory _factory,
org.iso_relax.verifier.Schema _schema)
public java.lang.Object getAttribute(java.lang.String name)
getAttribute in class javax.xml.parsers.DocumentBuilderFactorypublic void setAttribute(java.lang.String name,
java.lang.Object value)
setAttribute in class javax.xml.parsers.DocumentBuilderFactorypublic boolean isCoalescing()
isCoalescing in class javax.xml.parsers.DocumentBuilderFactorypublic boolean isExpandEntityReference()
public boolean isIgnoringComments()
isIgnoringComments in class javax.xml.parsers.DocumentBuilderFactorypublic boolean isIgnoringElementContentWhitespace()
isIgnoringElementContentWhitespace in class javax.xml.parsers.DocumentBuilderFactorypublic boolean isNamespaceAware()
isNamespaceAware in class javax.xml.parsers.DocumentBuilderFactorypublic boolean isValidating()
isValidating in class javax.xml.parsers.DocumentBuilderFactorypublic javax.xml.parsers.DocumentBuilder newDocumentBuilder()
throws javax.xml.parsers.ParserConfigurationException
newDocumentBuilder in class javax.xml.parsers.DocumentBuilderFactoryjavax.xml.parsers.ParserConfigurationExceptionpublic void setCoalescing(boolean newVal)
setCoalescing in class javax.xml.parsers.DocumentBuilderFactorypublic void setExpandEntityReference(boolean newVal)
public void setIgnoringComments(boolean newVal)
setIgnoringComments in class javax.xml.parsers.DocumentBuilderFactorypublic void setIgnoringElementContentWhitespace(boolean newVal)
setIgnoringElementContentWhitespace in class javax.xml.parsers.DocumentBuilderFactorypublic void setNamespaceAware(boolean newVal)
setNamespaceAware in class javax.xml.parsers.DocumentBuilderFactorypublic void setValidating(boolean newVal)
setValidating in class javax.xml.parsers.DocumentBuilderFactorypublic boolean getFeature(java.lang.String name)
getFeature in class javax.xml.parsers.DocumentBuilderFactorypublic void setFeature(java.lang.String name,
boolean value)
setFeature in class javax.xml.parsers.DocumentBuilderFactory