public class CallFunctionSetter extends java.lang.Object implements Setter, DocletActionReporter
Constructor and Description |
---|
CallFunctionSetter(java.lang.String funcName,
java.lang.Class parentClass,
java.lang.Class childClass) |
CallFunctionSetter(java.lang.String funcName,
java.lang.reflect.Method method,
java.lang.Class parentClass,
java.lang.Class childClass) |
Modifier and Type | Method and Description |
---|---|
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 Setter |
getSetter(java.lang.String funcName,
java.lang.Class parentClass,
java.lang.Class childClass) |
static void |
set(java.lang.String ns,
java.lang.String tag,
java.lang.Object obj,
java.lang.Object value,
cookxml.core.DecodeEngine decodeEngine,
java.lang.Class objectClass,
java.lang.Class valueClass,
java.lang.String funcName) |
void |
setAttribute(java.lang.String ns,
java.lang.String tag,
java.lang.String attrNS,
java.lang.String attr,
java.lang.Object obj,
java.lang.Object value,
cookxml.core.DecodeEngine decodeEngine)
Set an attribute of the object.
|
public CallFunctionSetter(java.lang.String funcName, java.lang.Class parentClass, java.lang.Class childClass)
public CallFunctionSetter(java.lang.String funcName, java.lang.reflect.Method method, java.lang.Class parentClass, java.lang.Class childClass)
public static Setter getSetter(java.lang.String funcName, java.lang.Class parentClass, java.lang.Class childClass)
public void setAttribute(java.lang.String ns, java.lang.String tag, java.lang.String attrNS, java.lang.String attr, java.lang.Object obj, java.lang.Object value, cookxml.core.DecodeEngine decodeEngine) throws java.lang.Exception
Setter
setAttribute
in interface Setter
ns
- the namespace of the element.tag
- the tag of the elementattrNS
- the namespace of the attributeattr
- the name of the attributeobj
- the object associated with the elementvalue
- the value of the object. We didn't use the String type because it is
entirely possible for an object of the child elements to call the setter.decodeEngine
- the DecodeEngine being used.java.lang.Exception
- If the exception is not a SetterException
,
then it is wrapped inside one by the DecodeEngine and handled by the
ExceptionHandler
.public static void set(java.lang.String ns, java.lang.String tag, java.lang.Object obj, java.lang.Object value, cookxml.core.DecodeEngine decodeEngine, java.lang.Class objectClass, java.lang.Class valueClass, java.lang.String funcName) throws CookXmlException
CookXmlException
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