cookxml.core.interfaces
Interface Adder

All Known Implementing Classes:
CallFunctionAdder, CallSetterAdder, CompoundAdder, DoNothingAdder

public interface Adder

Adder is similar to setter, but without the attribute name.

Since:
CookXml 1.0
Version:
$Id: Adder.java 218 2007-06-06 06:10:10Z coconut $

Method Summary
 boolean add(String parentNS, String parentTag, Object parent, Object child, cookxml.core.DecodeEngine decodeEngine)
          Add the child to the parent.
 

Method Detail

add

boolean add(String parentNS,
            String parentTag,
            Object parent,
            Object child,
            cookxml.core.DecodeEngine decodeEngine)
            throws Exception
Add the child to the parent. The function should return true if it is the right adder for the request. False if it is not. Throw exceptions for errors.

Parameters:
parentNS - the parent tag namespace.
parentTag - the parent tag name.
parent - the parent object.
child - the child object.
decodeEngine - the DecodeEngine instance being used.
Returns:
whether or not the adder can handle the request.
Throws:
Exception - If the exception is not a AdderException, then it is wrapped inside one by the DecodeEngine and handled by the ExceptionHandler.