cookxml.core.interfaces
Interface Adder
- All Known Implementing Classes:
- CallFunctionAdder, CallSetterAdder, CellConstraintsAdder, ColumnGroupAdder, CompoundAdder, CoolItemAdder, DefaultTableModelAdder, DoNothingAdder, DropDownMenuAdder, ExpandItemAdder, FormatterAdder, GridBagLayoutConstraintsAdder, IgnoreCellConstraintsAdder, InheritAdder, LayoutComponentAdder, LayoutConstraintAdder, LayoutDataAdder, MapEntryAdder, MenuBarAdder, RowGroupAdder, SpringLayoutAdder, TabAdder, TableAdder, ToolItemAdder
- public interface Adder
Adder is similar to setter, but without the attribute name.
- Since:
- CookXml 1.0
- See Also:
AdderException
add
public boolean add(String parentNS,
String parentTag,
Object parent,
Object child,
DecodeEngine decodeEngine)
throws AdderException
- Add the child to the parent. The function should return true if it is the right
adder for the request.
- 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:
AdderException
- the exception to be thrown when error occurs. Other types of exceptions should
be wrapped inside an AdderException.