avignon
Class AcceptanceTestParser

java.lang.Object
  extended byorg.xml.sax.helpers.DefaultHandler
      extended byavignon.AcceptanceTestParser
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

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

Acts as the DefaultHandler passed to the SAX parser.


Constructor Summary
AcceptanceTestParser(AvignonTestState state)
          Constructor for parsing tests.
 
Method Summary
 void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qualifiedName)
          Called by the SAX parser when an element is closed.
 boolean equals(java.lang.Object value)
          Determines whether two AcceptanceTestParsers are equal or not.
 void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qualifiedName, org.xml.sax.Attributes attributes)
          Finds a tag handler corresponding to the qualifiedName parameter, pushes it onto the parsing stack and then calls its start method.
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AcceptanceTestParser

public AcceptanceTestParser(AvignonTestState state)
Constructor for parsing tests.

Method Detail

equals

public boolean equals(java.lang.Object value)
Determines whether two AcceptanceTestParsers are equal or not. AcceptanceTestParsers are equal if the TEST_STATE they are constructed with is the same object. Mostly used for unit testing.

Parameters:
value - The object to test for equality. Must be an AcceptanceTestParser.
Returns:
True if the parameter is an AcceptanceTestParser that contains the same reference to an AvignonTestState as this instance.
Throws:
java.lang.ClassCastException - Thrown if the parameter is not an AcceptanceTestParser or subclass.

endElement

public void endElement(java.lang.String uri,
                       java.lang.String localName,
                       java.lang.String qualifiedName)
Called by the SAX parser when an element is closed. Causes the end method of the tag handler to be called and the pops the handler from the stack.

Parameters:
uri -
localName -
qualifiedName -

startElement

public void startElement(java.lang.String uri,
                         java.lang.String localName,
                         java.lang.String qualifiedName,
                         org.xml.sax.Attributes attributes)
Finds a tag handler corresponding to the qualifiedName parameter, pushes it onto the parsing stack and then calls its start method.

Parameters:
uri -
localName -
qualifiedName -
attributes -

SourceForge.net Logo