com.thaiopensource.validate.auto
Class AutoSchemaReceiver.Handler

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by 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


Field Summary
private  Locator locator
           
private  Vector prefixMappings
           
private  SchemaFuture sf
           
private  XMLReader xr
           
 
Constructor Summary
private AutoSchemaReceiver.Handler(XMLReader xr)
           
 
Method Summary
 Schema getSchema()
           
 void setDocumentLocator(Locator locator)
           
 void startElement(String uri, String localName, String qName, Attributes attributes)
           
 void startPrefixMapping(String prefix, String uri)
           
 RuntimeException unwrapException(RuntimeException e)
           
 
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
 

Field Detail

xr

private final XMLReader xr

sf

private SchemaFuture sf

locator

private Locator locator

prefixMappings

private final Vector prefixMappings
Constructor Detail

AutoSchemaReceiver.Handler

private AutoSchemaReceiver.Handler(XMLReader xr)
Method Detail

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