|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.oddjob.arooa.ArooaHandler
org.oddjob.arooa.handlers.SerializedComponentHandler
This handler attempts to load components as serialised objects from the file system. If the component has an id, this handler will check the file system, otherwise it delegates to a delegate handler to handle the component.
Once the component has been created, runtime attributes and child elements are set as normal.
ArooaHandler| Constructor Summary | |
SerializedComponentHandler(ArooaHandler delegate,
ComponentRestorer componentRestorer)
Constructor. |
|
| Method Summary | |
void |
characters(char[] buf,
int start,
int count,
ArooaContext context)
Adds text to the component, using the wrapper |
void |
onEndChild(java.lang.String uri,
java.lang.String tag,
java.lang.String qname,
ArooaContext context)
Handle the end of a child. |
void |
onEndElement(java.lang.String uri,
java.lang.String tag,
ArooaContext context)
Handles the end of the element. |
ArooaHandler |
onStartChild(java.lang.String uri,
java.lang.String tag,
java.lang.String qname,
org.xml.sax.Attributes attrs,
ArooaContext context)
Handle a child tag. |
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.ArooaHandler |
checkNamespace |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SerializedComponentHandler(ArooaHandler delegate,
ComponentRestorer componentRestorer)
| Method Detail |
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
onStartElement in class ArooaHandleruri - 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.
org.xml.sax.SAXParseException - if this method is not overridden, or in
case of error in an overridden version
public void characters(char[] buf,
int start,
int count,
ArooaContext context)
throws org.xml.sax.SAXParseException
characters in class ArooaHandlerbuf - A character array of the text within the element.
Will not be null.start - The start element in the array.count - The number of characters to read from the array.context - The current context.
org.xml.sax.SAXParseException - if the element doesn't support text
public ArooaHandler onStartChild(java.lang.String uri,
java.lang.String tag,
java.lang.String qname,
org.xml.sax.Attributes attrs,
ArooaContext context)
throws org.xml.sax.SAXParseException
onStartChild in class ArooaHandleruri - The namespace uri.qname - The element qualified name.attrs - The attributes of the element.context - The current context.tag - The name of the element being started.
Will not be null.
org.xml.sax.SAXParseException - if the qualified name is not "project".
public void onEndChild(java.lang.String uri,
java.lang.String tag,
java.lang.String qname,
ArooaContext context)
throws org.xml.sax.SAXParseException
onEndChild in class ArooaHandleruri - the namespace uri of the elementtag - the tag of the elementqname - the qualified name of the elementcontext - the current context
org.xml.sax.SAXParseException - if an error occurs
public void onEndElement(java.lang.String uri,
java.lang.String tag,
ArooaContext context)
onEndElement in class ArooaHandleruri - The namespace URI for the element.tag - The name of the element.context - The current context.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||