Package org.exolab.adaptx.xml.parser
Class JAXPDOMParser
- java.lang.Object
-
- org.exolab.adaptx.xml.parser.JAXPDOMParser
-
- All Implemented Interfaces:
DOMParser
public class JAXPDOMParser extends java.lang.Object implements DOMParser
Creates a generic JAXP DOM Parser- Version:
- $Revision: 3824 $ $Date: 2003-09-06 11:15:16 +0200 (Sat, 06 Sep 2003) $
- Author:
- Keith Visco
-
-
Constructor Summary
Constructors Constructor Description JAXPDOMParser()
Creates a new instance of the JAXPDOMParser wrapper
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DOMParser
copyInstance()
Creates a new copy of this DOMParser initialized with the same properties as this DOMParser.org.w3c.dom.Document
createDocument()
Creates a DOM Documentorg.w3c.dom.Document
readDocument(URILocation location, ErrorObserver observer)
Reads an XML Document from the given Readervoid
setDocumentType(org.w3c.dom.Document document, java.lang.String systemId)
Sets the DocumentType for the given documentvoid
setValidation(boolean validate)
Sets whether or not to Validate the Document
-
-
-
Method Detail
-
copyInstance
public DOMParser copyInstance()
Creates a new copy of this DOMParser initialized with the same properties as this DOMParser.- Specified by:
copyInstance
in interfaceDOMParser
- Returns:
- the new DOMParser instance
-
setDocumentType
public void setDocumentType(org.w3c.dom.Document document, java.lang.String systemId)
Sets the DocumentType for the given document- Specified by:
setDocumentType
in interfaceDOMParser
- Parameters:
document
- the Document to set the document type insystemId
- the systemId for the document type
-
setValidation
public void setValidation(boolean validate)
Sets whether or not to Validate the Document- Specified by:
setValidation
in interfaceDOMParser
- Parameters:
validate
- a boolean indicating whether or not to validate the Document
-
createDocument
public org.w3c.dom.Document createDocument()
Creates a DOM Document- Specified by:
createDocument
in interfaceDOMParser
- Returns:
- the new Document
-
readDocument
public org.w3c.dom.Document readDocument(URILocation location, ErrorObserver observer)
Reads an XML Document from the given Reader- Specified by:
readDocument
in interfaceDOMParser
- Parameters:
reader
- the Reader for reading the XML streamfilename
-observer
- the ErrorObserver for notification of errors
-
-