org.sapia.util.xml.confix
Class ConfixHandlerState

java.lang.Object
  |
  +--org.sapia.util.xml.confix.ConfixHandlerState
All Implemented Interfaces:
org.sapia.util.xml.parser.HandlerStateIF

public class ConfixHandlerState
extends Object
implements org.sapia.util.xml.parser.HandlerStateIF

Implements a HandlerStateIF that is used by the SAXProcessor.

Author:
JC Desrochers
Copyright:
Copyright © 2002-2003 Sapia Open Source Software. All Rights Reserved.
License:
Read the license.txt file of the jar or visit the license page at the Sapia OSS web site

Constructor Summary
ConfixHandlerState(SAXProcessor aProcessor)
          Creates a new ConfixHandlerState instance
ConfixHandlerState(SAXProcessor aProcessor, Object aParentObject)
          Creates a new ConfixHandlerState instance
 
Method Summary
 void characters(org.sapia.util.xml.parser.HandlerContextIF aContext, char[] someChars, int anOffset, int length)
          Receives the notification of character data inside an element.
 void endElement(org.sapia.util.xml.parser.HandlerContextIF aContext, String anUri, String aLocalName, String aQualifiedName)
          Receives the notification of the the end of an element.
 Object getResult()
          Returns the result object of this handler state.
 void ignorableWhitespace(org.sapia.util.xml.parser.HandlerContextIF aContext, char[] someChars, int anOffset, int aLength)
          Receives the notification of ignorable whitespace in element content.
 void startElement(org.sapia.util.xml.parser.HandlerContextIF aContext, String anUri, String aLocalName, String aQualifiedName, org.xml.sax.Attributes someAttributes)
          Receives the notification of the the start of an element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfixHandlerState

public ConfixHandlerState(SAXProcessor aProcessor,
                          Object aParentObject)
Creates a new ConfixHandlerState instance


ConfixHandlerState

public ConfixHandlerState(SAXProcessor aProcessor)
Creates a new ConfixHandlerState instance

Method Detail

getResult

public Object getResult()
Returns the result object of this handler state.

Returns:
The result object of this handler state.
Throws:
IllegalStateException - If this handler state is currently parsing.

startElement

public void startElement(org.sapia.util.xml.parser.HandlerContextIF aContext,
                         String anUri,
                         String aLocalName,
                         String aQualifiedName,
                         org.xml.sax.Attributes someAttributes)
                  throws org.xml.sax.SAXException
Receives the notification of the the start of an element.

Specified by:
startElement in interface org.sapia.util.xml.parser.HandlerStateIF
Parameters:
aContext - The handler context.
anUri - The namespace URI associated with the element
aLocalName - The element type local name.
aQualifiedName - The element type qualified name.
someAttributes - The specified or defaulted attributes.
Throws:
org.xml.sax.SAXException - If an exception occurs.

endElement

public void endElement(org.sapia.util.xml.parser.HandlerContextIF aContext,
                       String anUri,
                       String aLocalName,
                       String aQualifiedName)
                throws org.xml.sax.SAXException
Receives the notification of the the end of an element.

Specified by:
endElement in interface org.sapia.util.xml.parser.HandlerStateIF
Parameters:
aContext - The handler context.
anUri - The namespace URI associated with the element
aLocalName - The element type local name.
aQualifiedName - The element type qualified name.
Throws:
org.xml.sax.SAXException - If an exception occurs.

characters

public void characters(org.sapia.util.xml.parser.HandlerContextIF aContext,
                       char[] someChars,
                       int anOffset,
                       int length)
                throws org.xml.sax.SAXException
Receives the notification of character data inside an element.

Specified by:
characters in interface org.sapia.util.xml.parser.HandlerStateIF
Parameters:
aContext - The handler context.
someChars - The characters.
anOffset - The start position in the character array.
Throws:
org.xml.sax.SAXException - If an exception occurs.

ignorableWhitespace

public void ignorableWhitespace(org.sapia.util.xml.parser.HandlerContextIF aContext,
                                char[] someChars,
                                int anOffset,
                                int aLength)
                         throws org.xml.sax.SAXException
Receives the notification of ignorable whitespace in element content.

Specified by:
ignorableWhitespace in interface org.sapia.util.xml.parser.HandlerStateIF
Parameters:
aContext - The handler context.
someChars - The whitespace characters.
anOffset - The start position in the character array.
aLength - The number of characters to use from the character array.
Throws:
org.xml.sax.SAXException - If an exception occurs.


Copyright © 2002 Sapia Open Source Software. All Rights Reserved.