com.thaiopensource.validate.auto
Class AutoSchemaReceiver.Handler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
com.thaiopensource.validate.auto.AutoSchemaReceiver.Handler
- All Implemented Interfaces:
- SchemaFuture, ContentHandler, DTDHandler, EntityResolver, ErrorHandler
- Enclosing class:
- AutoSchemaReceiver
private class AutoSchemaReceiver.Handler
- extends DefaultHandler
- implements SchemaFuture
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startDocument, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
xr
private final XMLReader xr
sf
private SchemaFuture sf
locator
private Locator locator
prefixMappings
private final Vector prefixMappings
AutoSchemaReceiver.Handler
private AutoSchemaReceiver.Handler(XMLReader xr)
setDocumentLocator
public void setDocumentLocator(Locator locator)
- Specified by:
setDocumentLocator
in interface ContentHandler
- Overrides:
setDocumentLocator
in class DefaultHandler
startPrefixMapping
public void startPrefixMapping(String prefix,
String uri)
- Specified by:
startPrefixMapping
in interface ContentHandler
- Overrides:
startPrefixMapping
in class DefaultHandler
startElement
public void startElement(String uri,
String localName,
String qName,
Attributes attributes)
throws SAXException
- Specified by:
startElement
in interface ContentHandler
- Overrides:
startElement
in class DefaultHandler
- Throws:
SAXException
getSchema
public Schema getSchema()
throws IncorrectSchemaException,
SAXException,
IOException
- Specified by:
getSchema
in interface SchemaFuture
- Throws:
IncorrectSchemaException
SAXException
IOException
unwrapException
public RuntimeException unwrapException(RuntimeException e)
throws SAXException,
IOException,
IncorrectSchemaException
- Specified by:
unwrapException
in interface SchemaFuture
- Throws:
SAXException
IOException
IncorrectSchemaException