cookxml.common.adder
Class CompoundAdder

java.lang.Object
  extended bycookxml.common.adder.CompoundAdder
All Implemented Interfaces:
Adder

public class CompoundAdder
extends Object
implements Adder

This adder is used internally by InheritableTagLibrary to combine several individual adders into one.

Since:
CookXml 1.0
See Also:
InheritableTagLibrary

Constructor Summary
CompoundAdder()
           
 
Method Summary
 void add(Adder adder)
           
 boolean add(String parentTag, Object parent, Object child, DecodeEngine decodeEngine)
          Add the child to the parent.
static Adder getAdder(Adder oldAdder, Adder newAdder)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompoundAdder

public CompoundAdder()
Method Detail

add

public boolean add(String parentTag,
                   Object parent,
                   Object child,
                   DecodeEngine decodeEngine)
            throws AdderException
Description copied from interface: Adder
Add the child to the parent. The function should return true if it is the right adder for the request.

Specified by:
add in interface Adder
Parameters:
parentTag - the tag of the parent
parent - the parent object
child - the child object
decodeEngine - the decode engine that is being used
Returns:
whether or not the adder can handle the request.
Throws:
AdderException

add

public void add(Adder adder)

getAdder

public static Adder getAdder(Adder oldAdder,
                             Adder newAdder)