|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cookxml.core.VariableHandler
Ths handler deals with variables.
Method Summary | |
static Handler |
getHandler(Object obj,
String fieldName,
Class valueClass)
This function assumes that each function name is only associated with a single data type. |
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 String toString()
public static Handler getHandler(Object obj, String fieldName, Class valueClass)
obj
- the object we are dealing with. we are actually only interested in
its class type.fieldName
- the field to be located in the class.valueClass
- 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 |