edu.ou.kmi.buddyspace.plugins.pubsub.xml
Class PubsubItemsHandler

java.lang.Object
  |
  +--SubHandler
        |
        +--edu.ou.kmi.buddyspace.plugins.pubsub.xml.PubsubItemsHandler

public class PubsubItemsHandler
extends SubHandler

Handler class to build PubsubItems objects. This creates xml structure.

See Also:
Serialized Form

Constructor Summary
PubsubItemsHandler()
          Creates a new PubsubItemsHandler instance.
 
Method Summary
 void characters(char[] ch, int start, int length)
          This is an exact copy of the characters function in the main handler
 void handleEndElement(java.lang.String name)
          This is an exact copy of the end element in the main handler
 void handleStartElement(java.lang.String name, org.xml.sax.AttributeList attributes)
          This is an exact copy of the start element in the main handler.
 void receiveChildData(SubHandler subHandler, java.lang.Object child)
          received data handler from subobjects.
 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.
 java.lang.Object stopHandler(java.lang.String name)
          Stophandler is the same as end element, except that it is called saying that the subhandler is no longer in scope.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PubsubItemsHandler

public PubsubItemsHandler()
Creates a new PubsubItemsHandler instance.

Method Detail

startHandler

public 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.

Parameters:
attributes - a value of type 'AttributeList'
org.xml.sax.SAXException

handleStartElement

public void handleStartElement(java.lang.String name,
                               org.xml.sax.AttributeList attributes)
                        throws org.xml.sax.SAXException
This is an exact copy of the start element in the main handler.

Parameters:
name - string that holds the element name
attributes - AttributeList of attributes going with this element
Throws:
org.xml.sax.SAXException - thrown on error (unexpected element)

handleEndElement

public void handleEndElement(java.lang.String name)
                      throws org.xml.sax.SAXException
This is an exact copy of the end element in the main handler

Parameters:
name - string holding the element name
Throws:
org.xml.sax.SAXException - thrown on error

characters

public void characters(char[] ch,
                       int start,
                       int length)
                throws org.xml.sax.SAXException
This is an exact copy of the characters function in the main handler

Parameters:
ch - character string detected
start - start position
length - length of string
Throws:
org.xml.sax.SAXException - thrown on error

stopHandler

public java.lang.Object stopHandler(java.lang.String name)
                             throws org.xml.sax.SAXException
Stophandler is the same as end element, except that it is called saying that the subhandler is no longer in scope.

org.xml.sax.SAXException

receiveChildData

public void receiveChildData(SubHandler subHandler,
                             java.lang.Object child)
received data handler from subobjects. Ignored since this handler never creates child handlers

Parameters:
subHandler - child subhandler which is returning
child - Object which the child is returning