cookxml.core.setter
Class CallFunctionSetter
java.lang.Object
cookxml.core.setter.CallFunctionSetter
- All Implemented Interfaces:
- Setter
- public class CallFunctionSetter
- extends Object
- implements Setter
This Setter redirect the call to a function, if the parameters match.
- Since:
- CookXml 1.0
Method Summary |
static void |
set(String ns,
String tag,
Object obj,
Object value,
DecodeEngine decodeEngine,
Class objectClass,
Class valueClass,
String funcName)
|
void |
setAttribute(String ns,
String tag,
String attrNS,
String attr,
Object obj,
Object value,
DecodeEngine decodeEngine)
set the attribute of the object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CallFunctionSetter
public CallFunctionSetter(String funcName,
Class parentClass,
Class childClass)
setAttribute
public void setAttribute(String ns,
String tag,
String attrNS,
String attr,
Object obj,
Object value,
DecodeEngine decodeEngine)
throws SetterException
- Description copied from interface:
Setter
- set the attribute of the object.
- Specified by:
setAttribute
in interface Setter
- Parameters:
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. @throws SetterException
- Throws:
SetterException
set
public static void set(String ns,
String tag,
Object obj,
Object value,
DecodeEngine decodeEngine,
Class objectClass,
Class valueClass,
String funcName)
throws CookXmlException
- Throws:
CookXmlException