cookxml.common.setter
Class HookReferenceSetter

java.lang.Object
  extended bycookxml.common.setter.HookReferenceSetter
All Implemented Interfaces:
Setter

public class HookReferenceSetter
extends Object
implements Setter

This class is a way to generate a setter that hooks a function call to a attribute.

Since:
CookXml 1.0

Constructor Summary
HookReferenceSetter(String funcName, Class targetClass)
           
 
Method Summary
 void setAttribute(String tag, 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
 

Constructor Detail

HookReferenceSetter

public HookReferenceSetter(String funcName,
                           Class targetClass)
Method Detail

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 element
attr - the name of the attribute
obj - the object associated with the element
value - 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