com.sun.msv.verifier.psvi
Class TypeDetector
java.lang.Object
com.sun.msv.verifier.AbstractVerifier
com.sun.msv.verifier.Verifier
com.sun.msv.verifier.psvi.TypeDetector
- All Implemented Interfaces:
- org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, IDContextProvider, IVerifier, org.relaxng.datatype.ValidationContext, org.iso_relax.verifier.VerifierHandler
- public class TypeDetector
- extends Verifier
assign types to the incoming SAX2 events and reports them to
the application handler through TypedContentHandler.
This class "augment" infoset by adding type information. The application can
receive augmented infoset by implementing TypedContentHandler.
- Author:
- Kohsuke KAWAGUCHI
Methods inherited from class com.sun.msv.verifier.AbstractVerifier |
endPrefixMapping, getBaseUri, getLocator, isNotation, isUnparsedEntity, notationDecl, onID, processingInstruction, resolveNamespacePrefix, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.xml.sax.ContentHandler |
endPrefixMapping, processingInstruction, setDocumentLocator, skippedEntity, startPrefixMapping |
TypeDetector
public TypeDetector(DocumentDeclaration documentDecl,
org.xml.sax.ErrorHandler errorHandler)
TypeDetector
public TypeDetector(DocumentDeclaration documentDecl,
TypedContentHandler handler,
org.xml.sax.ErrorHandler errorHandler)
characters
public void characters(char[] buf,
int start,
int len)
throws org.xml.sax.SAXException
- Specified by:
characters
in interface org.xml.sax.ContentHandler
- Overrides:
characters
in class Verifier
- Throws:
org.xml.sax.SAXException
endDocument
public void endDocument()
throws org.xml.sax.SAXException
- Specified by:
endDocument
in interface org.xml.sax.ContentHandler
- Overrides:
endDocument
in class Verifier
- Throws:
org.xml.sax.SAXException
endElement
public void endElement(java.lang.String namespaceUri,
java.lang.String localName,
java.lang.String qName)
throws org.xml.sax.SAXException
- Specified by:
endElement
in interface org.xml.sax.ContentHandler
- Overrides:
endElement
in class Verifier
- Throws:
org.xml.sax.SAXException
ignorableWhitespace
public void ignorableWhitespace(char[] buf,
int start,
int len)
throws org.xml.sax.SAXException
- Specified by:
ignorableWhitespace
in interface org.xml.sax.ContentHandler
- Overrides:
ignorableWhitespace
in class Verifier
- Throws:
org.xml.sax.SAXException
setContentHandler
public void setContentHandler(TypedContentHandler handler)
- sets the TypedContentHandler which will received the type-augmented
infoset.
startDocument
public void startDocument()
throws org.xml.sax.SAXException
- Specified by:
startDocument
in interface org.xml.sax.ContentHandler
- Overrides:
startDocument
in class Verifier
- Throws:
org.xml.sax.SAXException
startElement
public void startElement(java.lang.String namespaceUri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
throws org.xml.sax.SAXException
- Specified by:
startElement
in interface org.xml.sax.ContentHandler
- Overrides:
startElement
in class Verifier
- Throws:
org.xml.sax.SAXException
Copyright © 2001-2003 Sun Microsystems, Inc. Documenation generated April 26 2005.