ua.gradsoft.termware.parsers.xml.terms
Class TermSAXContentHandler

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by ua.gradsoft.termware.parsers.xml.terms.TermSAXContentHandler
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler

public class TermSAXContentHandler
extends DefaultHandler

Author:
Ruslan Shevchenko

Field Summary
static int DOMAIN
           
static int IMPORT_RULESET
           
static int RULE_TEXT
           
static int SYSTEM
           
static int SYSTEM_TEXT
           
static int TERMWARE
           
static int TERMWARE_TEXT
           
static int TOP
           
 
Constructor Summary
TermSAXContentHandler(TermWareInstance instance)
          Creates a new instance of TermSAXContentHandler
 
Method Summary
 void characters(char[] ch, int start, int length)
           
 void endDocument()
           
 void endElement(String uri, String localName, String qName)
           
 List getTerms()
           
 void ignorableWhitespace()
           
 void setDocumentLocator(Locator locator)
           
 void startDocument()
           
 void startElement(String uri, String localName, String qName, Attributes attributes)
           
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TOP

public static final int TOP
See Also:
Constant Field Values

TERMWARE

public static final int TERMWARE
See Also:
Constant Field Values

TERMWARE_TEXT

public static final int TERMWARE_TEXT
See Also:
Constant Field Values

DOMAIN

public static final int DOMAIN
See Also:
Constant Field Values

SYSTEM_TEXT

public static final int SYSTEM_TEXT
See Also:
Constant Field Values

SYSTEM

public static final int SYSTEM
See Also:
Constant Field Values

RULE_TEXT

public static final int RULE_TEXT
See Also:
Constant Field Values

IMPORT_RULESET

public static final int IMPORT_RULESET
See Also:
Constant Field Values
Constructor Detail

TermSAXContentHandler

public TermSAXContentHandler(TermWareInstance instance)
Creates a new instance of TermSAXContentHandler

Method Detail

setDocumentLocator

public void setDocumentLocator(Locator locator)
Specified by:
setDocumentLocator in interface ContentHandler
Overrides:
setDocumentLocator in class DefaultHandler

startDocument

public void startDocument()
Specified by:
startDocument in interface ContentHandler
Overrides:
startDocument in class DefaultHandler

endDocument

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

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

endElement

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

characters

public void characters(char[] ch,
                       int start,
                       int length)
Specified by:
characters in interface ContentHandler
Overrides:
characters in class DefaultHandler

ignorableWhitespace

public void ignorableWhitespace()

getTerms

public List getTerms()