org.exolab.adaptx.xml.parser

Class JAXPDOMParser

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

JAXPDOMParser()
Creates a new instance of the JAXPDOMParser wrapper

Method Summary

DOMParser
copyInstance()
Creates a new copy of this DOMParser initialized with the same properties as this DOMParser.
Document
createDocument()
Creates a DOM Document
Document
readDocument(URILocation location, ErrorObserver observer)
Reads an XML Document from the given Reader
void
setDocumentType(Document document, String systemId)
Sets the DocumentType for the given document
void
setValidation(boolean validate)
Sets whether or not to Validate the Document

Constructor Details

JAXPDOMParser

public JAXPDOMParser()
Creates a new instance of the JAXPDOMParser wrapper

Method Details

copyInstance

public DOMParser copyInstance()
Creates a new copy of this DOMParser initialized with the same properties as this DOMParser.
Specified by:
copyInstance in interface DOMParser
Returns:
the new DOMParser instance

createDocument

public Document createDocument()
Creates a DOM Document
Specified by:
createDocument in interface DOMParser
Returns:
the new Document

readDocument

public Document readDocument(URILocation location,
                             ErrorObserver observer)
Reads an XML Document from the given Reader
Specified by:
readDocument in interface DOMParser
Parameters:
observer - the ErrorObserver for notification of errors

setDocumentType

public void setDocumentType(Document document,
                            String systemId)
Sets the DocumentType for the given document
Specified by:
setDocumentType in interface DOMParser
Parameters:
document - the Document to set the document type in
systemId - the systemId for the document type

setValidation

public void setValidation(boolean validate)
Sets whether or not to Validate the Document
Specified by:
setValidation in interface DOMParser
Parameters:
validate - a boolean indicating whether or not to validate the Document