|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Creator
This interface handles object creation.
Method Summary | |
---|---|
Object |
create(String parentNS,
String parentTag,
Element elm,
Object parentObj,
cookxml.core.DecodeEngine decodeEngine)
This function is called whenever decodeEngine starts processing an element. |
Object |
editFinished(String parentNS,
String parentTag,
Element elm,
Object parentObj,
Object obj,
cookxml.core.DecodeEngine decodeEngine)
This function is called when the element and its subnodes have all been processed. |
Method Detail |
---|
Object create(String parentNS, String parentTag, Element elm, Object parentObj, cookxml.core.DecodeEngine decodeEngine) throws Exception
There can be creative use of this function. For example, one could create another instance of CookXml that process the element differently, then call this instanceof decodeEngine to add the processed object to the parent, and then return null to tell this instance of decodeEngine/CookXml to stop processing the element.
parentNS
- the parent tag namespace.parentTag
- the parent tag that contains this elementelm
- the DOM element that contains all the information regarding this node.parentObj
- the parent object in the nodedecodeEngine
- the decode engine that is being used @throws CreatorException
Exception
- If the exception is not a CreatorException
,
then it is wrapped inside one by the DecodeEngine and handled by the
ExceptionHandler
.Object editFinished(String parentNS, String parentTag, Element elm, Object parentObj, Object obj, cookxml.core.DecodeEngine decodeEngine) throws Exception
parentNS
- the parent tag namespace.parentTag
- the parent element tagelm
- the DOM element that contains all the information regarding this node.parentObj
- the parent object of the parent elementobj
- the object that was created by this create functiondecodeEngine
- the decode engine that is being used.
Exception
- If the exception is not a CookXmlException
,
then it is wrapped inside one by the DecodeEngine and handled by the
ExceptionHandler
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |