org.oddjob.arooa.handlers
Class DefaultComponentHandler

java.lang.Object
  extended byorg.oddjob.arooa.ArooaHandler
      extended byorg.oddjob.arooa.handlers.TypicalElementHandler
          extended byorg.oddjob.arooa.handlers.DefaultComponentHandler

public class DefaultComponentHandler
extends TypicalElementHandler

The handler for an Arooa component. These are the main nodes in the hierarchy.

See Also:
ArooaHandler
Author:
Rob Gordon

Field Summary
static java.lang.String CURRENT_COMPONENT
           
 
Constructor Summary
DefaultComponentHandler()
           
 
Method Summary
 void onEndElement(java.lang.String uri, java.lang.String tag, ArooaContext context)
          Handles the end of the element.
 void onStartElement(java.lang.String uri, java.lang.String tag, java.lang.String qname, org.xml.sax.Attributes attrs, ArooaContext context)
          Handles the start of an element.
 
Methods inherited from class org.oddjob.arooa.handlers.TypicalElementHandler
characters, onStartChild
 
Methods inherited from class org.oddjob.arooa.ArooaHandler
checkNamespace, onEndChild
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CURRENT_COMPONENT

public static final java.lang.String CURRENT_COMPONENT
See Also:
Constant Field Values
Constructor Detail

DefaultComponentHandler

public DefaultComponentHandler()
Method Detail

onStartElement

public void onStartElement(java.lang.String uri,
                           java.lang.String tag,
                           java.lang.String qname,
                           org.xml.sax.Attributes attrs,
                           ArooaContext context)
                    throws org.xml.sax.SAXParseException
Handles the start of an element.

Specified by:
onStartElement in class TypicalElementHandler
Parameters:
uri - the namespace URI for the tag
tag - The name of the element being started. Will not be null.
qname - The qualified name of the element.
attrs - Attributes of the element being started. Will not be null.
context - The context that this element is in.
Throws:
org.xml.sax.SAXParseException - if this method is not overridden, or in case of error in an overridden version

onEndElement

public void onEndElement(java.lang.String uri,
                         java.lang.String tag,
                         ArooaContext context)
Handles the end of the element.

Overrides:
onEndElement in class ArooaHandler
Parameters:
uri - The namespace URI for the element.
tag - The name of the element.
context - The current context.