org.oddjob.arooa.handlers
Class NestedPropertyHandler
java.lang.Object
org.oddjob.arooa.ArooaHandler
org.oddjob.arooa.handlers.TypicalElementHandler
org.oddjob.arooa.handlers.NestedPropertyHandler
- public class NestedPropertyHandler
- extends TypicalElementHandler
The handler for a propert who's definition is inline. If a class MyJob
has a setXyz(MyType value) method then for this xml
<myjob>
<xyz>
<extra value="stuff"/>
</xyz>
</myjob>
This handler will handle the xyz element. It will create an appropriate
proxy type for MyType. The Proxy will provide a handler by introspection
following the usual rules to process the extra element.
- See Also:
ArooaHandler- Author:
- Rob Gordon
|
Method Summary |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NestedPropertyHandler
public NestedPropertyHandler()
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 tagtag - 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