| org.apache.xerces.framework.XMLDocumentHandler
All known Subclasses: org.apache.xerces.parsers.DOMParser, org.apache.xerces.framework.XMLParser, org.apache.xerces.parsers.SAXParser,
XMLDocumentHandler | public interface XMLDocumentHandler (Code) | | XMLValidator defines the interface that XMLDocumentScanner and XML
EntityHandler have with an object that serves as a pluggable validator.
This abstraction allows validators for XML grammar languages to be
plugged in and queried for validity checks as the scanner processes
a document.
The document scanner and entity handler need to ask the validator object
for this information because the validator object is responsible for reading
the grammar specification file (which contains markup declarations and entity
declarations)
version: $Id: XMLDocumentHandler.java,v 1.4 2000/05/26 18:59:02 andyc Exp $ |
Inner Class :public interface DTDHandler | |
Method Summary | |
public void | characters(int data) callback for characters (string pool form). | public void | characters(char ch, int start, int length) callback for characters. | public void | comment(int comment) callback for comment. | public void | endCDATA() callback for end of CDATA section. | public void | endDocument() callback for the end of document. | public void | endElement(QName element) callback for end of element. | public void | endEntityReference(int entityName, int entityType, int entityContext) callback for end of entity reference. | public void | endNamespaceDeclScope(int prefix) callback for the end a namespace declaration scope. | public void | ignorableWhitespace(int data) callback for ignorable whitespace. | public void | ignorableWhitespace(char ch, int start, int length) callback for ignorable whitespace. | public void | processingInstruction(int target, int data) callback for processing instruction. | public void | startCDATA() callback for start of CDATA section. | public void | startDocument() Callback for start of document
If the there is no version info, encoding info, or standalone info,
the corresponding argument will be set to -1. | public void | startElement(QName element, XMLAttrList attrList, int attrListHandle) callback for the start of element.
Parameters: elementType - element handle for the element being scanned Parameters: attrList - attrList containing the attributes of the element Parameters: attrListHandle - handle into attrList. | public void | startEntityReference(int entityName, int entityType, int entityContext) callback for start of entity reference. | public void | startNamespaceDeclScope(int prefix, int uri) callback for the start of a namespace declaration scope. | public void | textDecl(int version, int encoding) Signal the Text declaration of an external entity. | public void | xmlDecl(int version, int encoding, int standalone) |
characters | public void characters(int data) throws Exception(Code) | | callback for characters (string pool form).
Parameters: data - string pool index of the characters that were scanned exception: java.lang.Exception - |
characters | public void characters(char ch, int start, int length) throws Exception(Code) | | callback for characters.
Parameters: ch - character array containing the characters that were scanned Parameters: start - offset in ch where scanned characters begin Parameters: length - length of scanned characters in ch exception: java.lang.Exception - |
comment | public void comment(int comment) throws Exception(Code) | | callback for comment.
Parameters: comment - string pool index of the comment text exception: java.lang.Exception - |
endElement | public void endElement(QName element) throws Exception(Code) | | callback for end of element.
Parameters: elementType - element handle for the element being scanned exception: java.lang.Exception - |
endNamespaceDeclScope | public void endNamespaceDeclScope(int prefix) throws Exception(Code) | | callback for the end a namespace declaration scope.
Parameters: prefix - string pool index of the namespace prefix being declared exception: java.lang.Exception - |
ignorableWhitespace | public void ignorableWhitespace(int data) throws Exception(Code) | | callback for ignorable whitespace.
Parameters: data - string pool index of ignorable whitespace exception: java.lang.Exception - |
ignorableWhitespace | public void ignorableWhitespace(char ch, int start, int length) throws Exception(Code) | | callback for ignorable whitespace.
Parameters: ch - character array containing the whitespace that was scanned Parameters: start - offset in ch where scanned whitespace begins Parameters: length - length of scanned whitespace in ch exception: java.lang.Exception - |
processingInstruction | public void processingInstruction(int target, int data) throws Exception(Code) | | callback for processing instruction.
Parameters: target - string pool index of the PI target Parameters: data - string pool index of the PI data exception: java.lang.Exception - |
startCDATA | public void startCDATA() throws Exception(Code) | | callback for start of CDATA section.
this callback marks the start of a CDATA section
exception: java.lang.Exception - |
startDocument | public void startDocument() throws Exception(Code) | | Callback for start of document
If the there is no version info, encoding info, or standalone info,
the corresponding argument will be set to -1.
exception: java.lang.Exception - |
startElement | public void startElement(QName element, XMLAttrList attrList, int attrListHandle) throws Exception(Code) | | callback for the start of element.
Parameters: elementType - element handle for the element being scanned Parameters: attrList - attrList containing the attributes of the element Parameters: attrListHandle - handle into attrList. Allows attributes to be retreived. exception: java.lang.Exception - |
startNamespaceDeclScope | public void startNamespaceDeclScope(int prefix, int uri) throws Exception(Code) | | callback for the start of a namespace declaration scope.
Parameters: prefix - string pool index of the namespace prefix being declared Parameters: uri - string pool index of the namespace uri begin bound java.lang.Exception |
xmlDecl | public void xmlDecl(int version, int encoding, int standalone) throws Exception(Code) | | Signal the XML declaration of a document
Parameters: version - the handle in the string pool for the version number Parameters: encoding - the handle in the string pool for the encoding Parameters: standalong - the handle in the string pool for the standalone value exception: java.lang.Exception - |
|
|