cookxml.core.interfaces
Interface AddAction


public interface AddAction

This action dictates how DecodeEngine should perform its addChild function. This action is used internally by CookXml to deal with possible actions of setas, func, add, etc. Do not use this interface over Adder interface.

Since:
CookXml 3.0

Method Summary
 void addChild(DecodeEngine decodeEngine, String ns, String tag, Element elm, Object parentObj, Object childObj)
          This function performs the actual addition of the child object to the parent object.
 

Method Detail

addChild

public void addChild(DecodeEngine decodeEngine,
                     String ns,
                     String tag,
                     Element elm,
                     Object parentObj,
                     Object childObj)
              throws CookXmlException
This function performs the actual addition of the child object to the parent object.

Parameters:
decodeEngine - the DecodeEngine instance being used.
ns - the parent tag namespace.
tag - the parent tag name.
elm - the element of the current
parentObj - the parent object
childObj - the child object
Throws:
CookXmlException - the exception thrown when error occurs. Exceptions that are not CookXmlException should be wrapped inside a CookXmlException.