jInfer

cz.cuni.mff.ksi.jinfer.xsdimportsax
Class SAXHandler

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by cz.cuni.mff.ksi.jinfer.xsdimportsax.SAXHandler
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler

public class SAXHandler
extends DefaultHandler

SAX handler for importing XSD schemas, overrides methods from DefaultHandler.


Constructor Summary
SAXHandler()
          Default constructor, sets preferred log level.
 
Method Summary
 void endDocument()
           
 void endElement(String uri, String localName, String qName)
           
 List<Element> getRules()
          Returns rules extracted from the schema.
 void startElement(String uri, String localName, String qName, Attributes attributes)
           
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SAXHandler

public SAXHandler()
Default constructor, sets preferred log level.

Method Detail

getRules

public List<Element> getRules()
                       throws InterruptedException
Returns rules extracted from the schema.

Returns:
Rules extracted from the schema.
Throws:
InterruptedException

startElement

public void startElement(String uri,
                         String localName,
                         String qName,
                         Attributes attributes)
                  throws SAXException,
                         XSDException
Specified by:
startElement in interface ContentHandler
Overrides:
startElement in class DefaultHandler
Throws:
SAXException
XSDException

endElement

public void endElement(String uri,
                       String localName,
                       String qName)
                throws SAXException,
                       XSDException
Specified by:
endElement in interface ContentHandler
Overrides:
endElement in class DefaultHandler
Throws:
SAXException
XSDException

endDocument

public void endDocument()
                 throws SAXException
Specified by:
endDocument in interface ContentHandler
Overrides:
endDocument in class DefaultHandler
Throws:
SAXException

jInfer

Generated on Fri Dec 9 00:01:25 CET 2011