cz.cuni.mff.ksi.jinfer.xsdimportsax
Class SAXHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
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. |
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 |
SAXHandler
public SAXHandler()
- Default constructor, sets preferred log level.
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
Generated on Fri Dec 9 00:01:25 CET 2011