Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

edu.ou.kmi.buddyspace.xml
Class XDataFieldOptionHandler  view XDataFieldOptionHandler download XDataFieldOptionHandler.java

java.lang.Object
  extended bySubHandler
      extended byedu.ou.kmi.buddyspace.xml.XDataFieldOptionHandler

public class XDataFieldOptionHandler
extends SubHandler

Handler class to build <option> objects inside jabber:x:data fields


Field Summary
private  XDataFieldOptionBuilder builder
          builder for XDataFieldOption objects
private  java.lang.StringBuffer elementChars
          used to capture data between element tags
 
Constructor Summary
XDataFieldOptionHandler()
           
 
Method Summary
 void characters(char[] ch, int start, int length)
           
protected  void handleEndElement(java.lang.String name)
           
protected  void handleStartElement(java.lang.String name, org.xml.sax.AttributeList attributes)
           
protected  void receiveChildData(SubHandler subHandler, java.lang.Object o)
           
protected  void startHandler(java.lang.String name, org.xml.sax.AttributeList attributes)
          Gets called when the underlying engine decides to pass an entity and all sub-entities off to your subhandler.
protected  java.lang.Object stopHandler(java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

elementChars

private java.lang.StringBuffer elementChars
used to capture data between element tags


builder

private XDataFieldOptionBuilder builder
builder for XDataFieldOption objects

Constructor Detail

XDataFieldOptionHandler

public XDataFieldOptionHandler()
Method Detail

characters

public void characters(char[] ch,
                       int start,
                       int length)
                throws org.xml.sax.SAXException

startHandler

protected final void startHandler(java.lang.String name,
                                  org.xml.sax.AttributeList attributes)
                           throws org.xml.sax.SAXException
Gets called when the underlying engine decides to pass an entity and all sub-entities off to your subhandler.

Upon seeing the element that this subhandler handles, we call this constructor, passing in the attributes.


handleStartElement

protected void handleStartElement(java.lang.String name,
                                  org.xml.sax.AttributeList attributes)
                           throws org.xml.sax.SAXException

handleEndElement

protected void handleEndElement(java.lang.String name)
                         throws org.xml.sax.SAXException

stopHandler

protected java.lang.Object stopHandler(java.lang.String name)
                                throws org.xml.sax.SAXException

receiveChildData

protected void receiveChildData(SubHandler subHandler,
                                java.lang.Object o)