org.gnu.xml.ezparse
Class ElementAdapter

java.lang.Object
  extended byorg.gnu.xml.ezparse.ElementAdapter
All Implemented Interfaces:
ElementListener

public class ElementAdapter
extends java.lang.Object
implements ElementListener

ElementAdapter provides stubs for methods defined in ElementListener. A listener may only be interested in endElement().

Since:
J2SDK 1.4

Constructor Summary
ElementAdapter()
           
 
Method Summary
 void endElement(Element element, Context ctx)
          endElement is called when the closing tag is encountered.
 void startElement(Element element, Context ctx)
          This method is called when the element is first encountered.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElementAdapter

public ElementAdapter()
Method Detail

startElement

public void startElement(Element element,
                         Context ctx)
This method is called when the element is first encountered. Note that the element's getValue() method returns null at this point because the element's contents have not been parsed yet.

Specified by:
startElement in interface ElementListener
Parameters:
element - the element
ctx - the Context

endElement

public void endElement(Element element,
                       Context ctx)
endElement is called when the closing tag is encountered. Here getValue() on element will return a value if the element had a value.

Specified by:
endElement in interface ElementListener
Parameters:
element - the parsed element
ctx - the Context