All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface com.kvisco.xml.parser.DOMPackage

public interface DOMPackage
This class is the basic interface the different DOM Packages need to implement for XSL:P support.


Method Index

 o createDocument()
Creates a DOM Document for this DOMPackage
 o readDocument(Reader, String, PrintWriter)
Reads an XML Document from the given Reader.
 o setDocumentType(Document, String)
Sets the DocumentType for the given Document.
 o setValidation(boolean)
Sets whether or not to Validate the Document

Methods

 o createDocument
 public abstract Document createDocument()
Creates a DOM Document for this DOMPackage

Returns:
the new Document
 o readDocument
 public abstract Document readDocument(Reader reader,
                                       String filename,
                                       PrintWriter errorWriter)
Reads an XML Document from the given Reader.

Parameters:
reader - the Reader for reading the XML stream
filename - the filename used for reporting errors
errorWriter - the PrintWriter to write all errors to
 o setDocumentType
 public abstract void setDocumentType(Document document,
                                      String systemId)
Sets the DocumentType for the given Document. The Document must be a Document supported by this DOMPackage

 o setValidation
 public abstract void setValidation(boolean validate)
Sets whether or not to Validate the Document

Parameters:
validate - a boolean indicating whether or not to validate the Document

All Packages  Class Hierarchy  This Package  Previous  Next  Index