public class CallFunctionAdder extends java.lang.Object implements Adder, DocletActionReporter
Constructor and Description |
---|
CallFunctionAdder(java.lang.String funcName,
java.lang.Class parentClass,
java.lang.Class childClass) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(java.lang.String ns,
java.lang.String parentTag,
java.lang.Object parent,
java.lang.Object child,
cookxml.core.DecodeEngine decodeEngine)
Add the child to the parent.
|
static boolean |
add(java.lang.String parentNS,
java.lang.String parentTag,
java.lang.Object parent,
java.lang.Object child,
cookxml.core.DecodeEngine decodeEngine,
java.lang.Class parentClass,
java.lang.Class childClass,
java.lang.String funcName,
Adder adder) |
java.lang.Object[] |
getActions(TagLibrary tagLibrary,
java.lang.String tagNS,
java.lang.String tag,
java.lang.String attrNS,
java.lang.String attr,
java.lang.Class cl)
This function returns the related function/constructor/field/methods that
is called by creator/setter etc.
|
static Adder |
getAdder(java.lang.String funcName,
java.lang.Class parentClass,
java.lang.Class childClass) |
java.lang.String |
toString() |
public CallFunctionAdder(java.lang.String funcName, java.lang.Class parentClass, java.lang.Class childClass)
public static Adder getAdder(java.lang.String funcName, java.lang.Class parentClass, java.lang.Class childClass)
public boolean add(java.lang.String ns, java.lang.String parentTag, java.lang.Object parent, java.lang.Object child, cookxml.core.DecodeEngine decodeEngine) throws java.lang.Exception
Adder
add
in interface Adder
ns
- the parent tag namespace.parentTag
- the parent tag name.parent
- the parent object.child
- the child object.decodeEngine
- the DecodeEngine instance being used.java.lang.Exception
- If the exception is not a AdderException
,
then it is wrapped inside one by the DecodeEngine and handled by the
ExceptionHandler
.public static boolean add(java.lang.String parentNS, java.lang.String parentTag, java.lang.Object parent, java.lang.Object child, cookxml.core.DecodeEngine decodeEngine, java.lang.Class parentClass, java.lang.Class childClass, java.lang.String funcName, Adder adder) throws AdderException
AdderException
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object[] getActions(TagLibrary tagLibrary, java.lang.String tagNS, java.lang.String tag, java.lang.String attrNS, java.lang.String attr, java.lang.Class cl)
DocletActionReporter
getActions
in interface DocletActionReporter
tagLibrary
- the tag library being used.tagNS
- the namespace of the tagtag
- possible tagattrNS
- the namespace of the attributeattr
- the attributecl
- the possible class