cookxml.common.setter
Class HookVariableSetter
java.lang.Object
cookxml.common.setter.HookVariableSetter
- All Implemented Interfaces:
- Setter
- public class HookVariableSetter
- extends Object
- implements Setter
This class is a way to generate a setter that hooks a function call to a attribute, similar
to HookReferenceSetter. The difference is that the attribute value is the name of the
variable of the variable object.
- Since:
- CookXml 1.0
- See Also:
HookReferenceSetter
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HookVariableSetter
public HookVariableSetter(String funcName,
Class targetClass)
setAttribute
public void setAttribute(String tag,
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:
tag - the tag of the elementattr - 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 that is being used.
- Throws:
SetterException