This class uses another DocumentBuilder implementation and adds the validation capability to it.
| Modifier and Type | Field and Description |
|---|---|
| private final DocumentBuilder | core
Wrapped DocumentBuilder that does everything else. |
| private final Verifier | verifier
The validation will be performed using this verifier. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public DOMImplementation | getDOMImplementation()
Implements abstract javax. DOMImplementation object.
|
| public boolean | isNamespaceAware()
Implements abstract javax. |
| public boolean | isValidating()
Implements abstract javax. |
| public Document | newDocument()
Implements abstract javax. Document object
to build a DOM tree with.
|
| public Document | parse(InputSource
InputSource containing the content to be parsed. is)Implements abstract javax. Document object.
|
| public Document | parse(File
The file containing the XML to parse. f)Overrides javax. Document object.
|
| public Document | parse(InputStream
InputStream containing the content to be parsed. is)Overrides javax. InputStream as an XML
document and return a new DOM Document object.
|
| public Document | parse(InputStream
InputStream containing the content to be parsed. is, String Provide a base for resolving relative URIs. systemId)Overrides javax. InputStream as an
XML document and return a new DOM Document object.
|
| public Document | parse(String
The location of the content to be parsed. url)Overrides javax. Document object.
|
| public void | setEntityResolver(EntityResolver
The resolver)EntityResolver to be used to resolve entities
present in the XML document to be parsed.Implements abstract javax. EntityResolver to be used to resolve
entities present in the XML document to be parsed.
|
| public void | setErrorHandler(ErrorHandler
The handler)ErrorHandler to be used by the parser.Implements abstract javax. ErrorHandler to be used by the parser.
|
| private Document |
| core | back to summary |
|---|---|
| private final DocumentBuilder core Wrapped DocumentBuilder that does everything else. | |
| verifier | back to summary |
|---|---|
| private final Verifier verifier The validation will be performed using this verifier. | |
| DocumentBuilderImpl | back to summary |
|---|---|
| pack-priv DocumentBuilderImpl(DocumentBuilder _core, Schema _schema) throws ParserConfigurationException | |
| getDOMImplementation | back to summary |
|---|---|
| public DOMImplementation getDOMImplementation() Implements abstract javax. Doc from javax. Obtain an instance of a
| |
| isNamespaceAware | back to summary |
|---|---|
| public boolean isNamespaceAware() Implements abstract javax. Doc from javax. Indicates whether or not this parser is configured to understand namespaces.
| |
| isValidating | back to summary |
|---|---|
| public boolean isValidating() Implements abstract javax. Doc from javax. Indicates whether or not this parser is configured to validate XML documents.
| |
| newDocument | back to summary |
|---|---|
| public Document newDocument() Implements abstract javax. Doc from javax. Obtain a new instance of a DOM
| |
| parse | back to summary |
|---|---|
| public Document parse(InputSource is) throws SAXException, IOException Implements abstract javax. Doc from javax. Parse the content of the given input source as an XML document
and return a new DOM
| |
| parse | back to summary |
|---|---|
| public Document parse(File f) throws SAXException, IOException Overrides javax. Doc from javax. Parse the content of the given file as an XML document
and return a new DOM
| |
| parse | back to summary |
|---|---|
| public Document parse(InputStream is) throws SAXException, IOException Overrides javax. Doc from javax. Parse the content of the given
| |
| parse | back to summary |
|---|---|
| public Document parse(InputStream is, String systemId) throws SAXException, IOException Overrides javax. Doc from javax. Parse the content of the given
| |
| parse | back to summary |
|---|---|
| public Document parse(String url) throws SAXException, IOException Overrides javax. Doc from javax. Parse the content of the given URI as an XML document
and return a new DOM
| |
| setEntityResolver | back to summary |
|---|---|
| public void setEntityResolver(EntityResolver resolver) Implements abstract javax. Doc from javax. Specify the
| |
| setErrorHandler | back to summary |
|---|---|
| public void setErrorHandler(ErrorHandler handler) Implements abstract javax. Doc from javax. Specify the
| |
| verify | back to summary |
|---|---|
| private Document verify(Document dom) throws SAXException, IOException Validates a given DOM and returns it if it is valid. Otherwise throw an exception. | |