|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cookxml.core.FunctionHandler
Ths handler deals with functions.
Method Summary | |
static Handler |
getHandler(Object obj,
String funcName,
Class valueClass)
This function assumes that each function name is only associated with a single data type. |
Method |
getMethod()
|
boolean |
invoke(String ns,
Object obj,
Object value,
DecodeEngine decodeEngine)
this function is used to assign the value to the object either through a function setter or directly through variable assignment. |
String |
toString()
for debugging purpose. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
public boolean invoke(String ns, Object obj, Object value, DecodeEngine decodeEngine) throws HandlerException
Handler
invoke
in interface Handler
ns
- the namespace of the element being used.obj
- the object where the function or the variable is located in.value
- the actual value to be set.decodeEngine
-
HandlerException
public Method getMethod()
public String toString()
public static Handler getHandler(Object obj, String funcName, Class valueClass)
obj
- the object we are dealing with. we are actually only interested in
its class typefuncName
- the function to be located in the classvalueClass
- the class type of the value, can be null to skip check.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |