|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--SubHandler | +--edu.ou.kmi.buddyspace.plugins.disco.xml.DiscoFeatureHandler
Handler class to build DiscoFeature objects. This creates xml structure.
Constructor Summary | |
DiscoFeatureHandler()
Creates a new DiscoFeatureHandler 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 |
public DiscoFeatureHandler()
DiscoFeatureHandler
instance.
Method Detail |
public void startHandler(java.lang.String name, org.xml.sax.AttributeList attributes) throws org.xml.sax.SAXException
Upon seeing the element that this subhandler handles, we call this constructor, passing in the attributes.
attributes
- a value of type 'AttributeList'
org.xml.sax.SAXException
public void handleStartElement(java.lang.String name, org.xml.sax.AttributeList attributes) throws org.xml.sax.SAXException
name
- string that holds the element nameattributes
- AttributeList of attributes going with this element
org.xml.sax.SAXException
- thrown on error (unexpected element)public void handleEndElement(java.lang.String name) throws org.xml.sax.SAXException
name
- string holding the element name
org.xml.sax.SAXException
- thrown on errorpublic void characters(char[] ch, int start, int length) throws org.xml.sax.SAXException
ch
- character string detectedstart
- start positionlength
- length of string
org.xml.sax.SAXException
- thrown on errorpublic java.lang.Object stopHandler(java.lang.String name) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public void receiveChildData(SubHandler subHandler, java.lang.Object child)
subHandler
- child subhandler which is returningchild
- Object which the child is returning
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |