|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.oddjob.arooa.standard.RootHandler
public class RootHandler
The first handler to be called. This will receive an onStartElement with the document root as the element.
If the document tag is specified this will verify the name of the element root against the document tag.
The startHandler is provided as the handler for dealing with this document element. Thus the startHandler can then process the document element in it's onStartElement method as per the typical pattern of an ArooaHandler.
ArooaHandler.
Constructor Summary | |
---|---|
RootHandler(ArooaElement documentTag,
ElementAction<? extends org.oddjob.arooa.standard.InstanceRuntime> startHandler)
Constructor. |
|
RootHandler(ElementAction<? extends org.oddjob.arooa.standard.InstanceRuntime> startHandler)
/** Constructor. |
Method Summary | |
---|---|
ArooaContext |
onStartElement(ArooaElement element,
ArooaContext parentContext)
Handle the top level element. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RootHandler(ElementAction<? extends org.oddjob.arooa.standard.InstanceRuntime> startHandler)
handler
- The handler to use for the top level element.public RootHandler(ArooaElement documentTag, ElementAction<? extends org.oddjob.arooa.standard.InstanceRuntime> startHandler)
documentTag
- The document tag which will be validated
against the top level element if not null.handler
- The handler to use for the top level element.Method Detail |
---|
public ArooaContext onStartElement(ArooaElement element, ArooaContext parentContext) throws ArooaConfigurationException
onStartElement
in interface ArooaHandler
element
- The configuration element.parentContext
- The parent ArooaContext.
ArooaConfigurationException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |