|
||||||||||
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.maps.xml.LayerTagHandler
Handler class for <layer> tag.
Constructor Summary | |
LayerTagHandler()
Creates a new LayerTagHandler instance. |
Method Summary | |
void |
characters(char[] ch,
int start,
int length)
This is an exact copy of the characters function in the main handler |
protected void |
handleEndElement(java.lang.String name)
handleEndElement is overloaded by the new class to
provide logic to handle element code. |
protected void |
handleStartElement(java.lang.String name,
org.xml.sax.AttributeList attributes)
handleStartElement is overloaded by the new class to
provide logic to handle the element code. |
protected void |
receiveChildData(SubHandler subHandler,
java.lang.Object o)
receiveChildData is called when a child handler exits,
returning control to this code. |
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)
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 LayerTagHandler()
LayerTagHandler
instance.
Method Detail |
public final 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 errorprotected final 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.
name
- name of the element which we are handling.attributes
- list of attributes on this element
org.xml.sax.SAXException
protected final void handleStartElement(java.lang.String name, org.xml.sax.AttributeList attributes) throws org.xml.sax.SAXException
handleStartElement
is overloaded by the new class to
provide logic to handle the element code.
name
- a String
valueattributes
- an AttributeList
value
org.xml.sax.SAXException
- if an error occursprotected final void handleEndElement(java.lang.String name) throws org.xml.sax.SAXException
handleEndElement
is overloaded by the new class to
provide logic to handle element code.
name
- a String
value
org.xml.sax.SAXException
- if an error occursprotected final java.lang.Object stopHandler(java.lang.String name) throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected void receiveChildData(SubHandler subHandler, java.lang.Object o)
receiveChildData
is called when a child handler exits,
returning control to this code. The now-defunct handler along with the
data object are both returned.
subHandler
- a SubHandler
valueo
- an Object
value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |