ABLE, Version 1.1b

com.ibm.able.beans.rules
Class AbleXmlParser

java.lang.Object
  |
  +--org.xml.sax.helpers.DefaultHandler
        |
        +--com.ibm.able.beans.rules.AbleXmlParser

public class AbleXmlParser
extends org.xml.sax.helpers.DefaultHandler

This class will read an XML document written according to the AbleRuleSet.dtd, and instantiate an AbleRuleSet object.

Version:
$Revision: 1.2 $, $Date: 2000/07/25 14:51:12 $

Constructor Summary
AbleXmlParser()
           
 
Method Summary
 void endElement(java.lang.String theUri, java.lang.String theLocalName, java.lang.String theRawName)
           
 void error(org.xml.sax.SAXParseException theSAXParseException)
           
 void fatalError(org.xml.sax.SAXParseException theSAXParseException)
           
 void instantiateFrom(org.xml.sax.InputSource theRuleSetSource, AbleRuleSet theRuleSet, AbleParTrace theTracer, boolean theStopOnParExceptionFlag)
           
 void instantiateFrom(java.lang.String theRuleSetDocument, AbleRuleSet theRuleSet, AbleParTrace theTracer, boolean theStopOnParExceptionFlag)
           
 boolean isStopOnParException()
           
 boolean isTraceActive()
           
static void main(java.lang.String[] args)
           
 void runTests(java.lang.String theRuleSetDocument)
          This method is for testing only, and is called by main() when this class is exercised from the command line.
 void setDocumentLocator(org.xml.sax.Locator theLocator)
           
 void setStopOnParException(boolean theStopOnParExceptionFlag)
           
 void setTraceActive(boolean theTraceValue)
           
 void startElement(java.lang.String theUri, java.lang.String theLocalName, java.lang.String theRawName, org.xml.sax.Attributes theAttributes)
           
 void warning(org.xml.sax.SAXParseException theSAXParseException)
           
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbleXmlParser

public AbleXmlParser()
Method Detail

setDocumentLocator

public void setDocumentLocator(org.xml.sax.Locator theLocator)
Overrides:
setDocumentLocator in class org.xml.sax.helpers.DefaultHandler

startElement

public void startElement(java.lang.String theUri,
                         java.lang.String theLocalName,
                         java.lang.String theRawName,
                         org.xml.sax.Attributes theAttributes)
                  throws org.xml.sax.SAXException
Overrides:
startElement in class org.xml.sax.helpers.DefaultHandler

endElement

public void endElement(java.lang.String theUri,
                       java.lang.String theLocalName,
                       java.lang.String theRawName)
                throws org.xml.sax.SAXException
Overrides:
endElement in class org.xml.sax.helpers.DefaultHandler

error

public void error(org.xml.sax.SAXParseException theSAXParseException)
Overrides:
error in class org.xml.sax.helpers.DefaultHandler

fatalError

public void fatalError(org.xml.sax.SAXParseException theSAXParseException)
                throws org.xml.sax.SAXException
Overrides:
fatalError in class org.xml.sax.helpers.DefaultHandler

warning

public void warning(org.xml.sax.SAXParseException theSAXParseException)
Overrides:
warning in class org.xml.sax.helpers.DefaultHandler

instantiateFrom

public void instantiateFrom(java.lang.String theRuleSetDocument,
                            AbleRuleSet theRuleSet,
                            AbleParTrace theTracer,
                            boolean theStopOnParExceptionFlag)
                     throws java.lang.ClassNotFoundException,
                            java.lang.IllegalAccessException,
                            java.lang.InstantiationException,
                            org.xml.sax.SAXException,
                            java.io.IOException

instantiateFrom

public void instantiateFrom(org.xml.sax.InputSource theRuleSetSource,
                            AbleRuleSet theRuleSet,
                            AbleParTrace theTracer,
                            boolean theStopOnParExceptionFlag)
                     throws java.lang.ClassNotFoundException,
                            java.lang.IllegalAccessException,
                            java.lang.InstantiationException,
                            org.xml.sax.SAXException,
                            java.io.IOException

setTraceActive

public void setTraceActive(boolean theTraceValue)

isTraceActive

public boolean isTraceActive()

setStopOnParException

public void setStopOnParException(boolean theStopOnParExceptionFlag)

isStopOnParException

public boolean isStopOnParException()

main

public static void main(java.lang.String[] args)

runTests

public void runTests(java.lang.String theRuleSetDocument)
This method is for testing only, and is called by main() when this class is exercised from the command line. This method should not be called by anything else.

ABLE, Version 1.1b

ABLE: Produced by Joe, Don, and Jeff who say, 'Thanks for your support.'