Package com.sun.msv.verifier.jaxp
Class DocumentBuilderFactoryImpl
java.lang.Object
javax.xml.parsers.DocumentBuilderFactory
com.sun.msv.verifier.jaxp.DocumentBuilderFactoryImpl
DocumentBuilderFactory implementation that supports validation.
This class uses another DocumentBuilderFactory implementation and adds the validation capability to it.
- Author:
- Kohsuke KAWAGUCHI
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance by using the default DocumentBuilderFactory implementation as the underlying parser.Creates a new instance by specifying the underlying SAXParserFactory implementation.DocumentBuilderFactoryImpl
(DocumentBuilderFactory _factory, org.iso_relax.verifier.Schema _schema) -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute
(String name) boolean
getFeature
(String name) boolean
boolean
boolean
boolean
boolean
boolean
void
setAttribute
(String name, Object value) void
setCoalescing
(boolean newVal) void
setExpandEntityReference
(boolean newVal) void
setFeature
(String name, boolean value) void
setIgnoringComments
(boolean newVal) void
setIgnoringElementContentWhitespace
(boolean newVal) void
setNamespaceAware
(boolean newVal) void
setValidating
(boolean newVal) Methods inherited from class javax.xml.parsers.DocumentBuilderFactory
getSchema, isExpandEntityReferences, isXIncludeAware, newDefaultInstance, newDefaultNSInstance, newInstance, newInstance, newNSInstance, newNSInstance, setExpandEntityReferences, setSchema, setXIncludeAware
-
Constructor Details
-
DocumentBuilderFactoryImpl
public DocumentBuilderFactoryImpl()Creates a new instance by using the default DocumentBuilderFactory implementation as the underlying parser. This constructor does not set any schema. -
DocumentBuilderFactoryImpl
Creates a new instance by specifying the underlying SAXParserFactory implementation. This constructor does not set any schema. -
DocumentBuilderFactoryImpl
public DocumentBuilderFactoryImpl(DocumentBuilderFactory _factory, org.iso_relax.verifier.Schema _schema)
-
-
Method Details
-
getAttribute
- Specified by:
getAttribute
in classDocumentBuilderFactory
-
setAttribute
- Specified by:
setAttribute
in classDocumentBuilderFactory
-
isCoalescing
public boolean isCoalescing()- Overrides:
isCoalescing
in classDocumentBuilderFactory
-
isExpandEntityReference
public boolean isExpandEntityReference() -
isIgnoringComments
public boolean isIgnoringComments()- Overrides:
isIgnoringComments
in classDocumentBuilderFactory
-
isIgnoringElementContentWhitespace
public boolean isIgnoringElementContentWhitespace()- Overrides:
isIgnoringElementContentWhitespace
in classDocumentBuilderFactory
-
isNamespaceAware
public boolean isNamespaceAware()- Overrides:
isNamespaceAware
in classDocumentBuilderFactory
-
isValidating
public boolean isValidating()- Overrides:
isValidating
in classDocumentBuilderFactory
-
newDocumentBuilder
- Specified by:
newDocumentBuilder
in classDocumentBuilderFactory
- Throws:
ParserConfigurationException
-
setCoalescing
public void setCoalescing(boolean newVal) - Overrides:
setCoalescing
in classDocumentBuilderFactory
-
setExpandEntityReference
public void setExpandEntityReference(boolean newVal) -
setIgnoringComments
public void setIgnoringComments(boolean newVal) - Overrides:
setIgnoringComments
in classDocumentBuilderFactory
-
setIgnoringElementContentWhitespace
public void setIgnoringElementContentWhitespace(boolean newVal) - Overrides:
setIgnoringElementContentWhitespace
in classDocumentBuilderFactory
-
setNamespaceAware
public void setNamespaceAware(boolean newVal) - Overrides:
setNamespaceAware
in classDocumentBuilderFactory
-
setValidating
public void setValidating(boolean newVal) - Overrides:
setValidating
in classDocumentBuilderFactory
-
getFeature
- Specified by:
getFeature
in classDocumentBuilderFactory
-
setFeature
- Specified by:
setFeature
in classDocumentBuilderFactory
-