cookxml.core.interfaces
Interface Setter

All Known Subinterfaces:
DocletSetter
All Known Implementing Classes:
CallFunctionSetter, ConstantSetter, DefaultSetter, DoNothingSetter

public interface Setter

This interface is used by all setters that handle request to set a value to the object.

Since:
CookXml 1.0
Version:
$Id: Setter.java 218 2007-06-06 06:10:10Z coconut $

Method Summary
 void setAttribute(String ns, String tag, String attrNS, String attr, Object obj, Object value, cookxml.core.DecodeEngine decodeEngine)
          Set an attribute of the object.
 

Method Detail

setAttribute

void setAttribute(String ns,
                  String tag,
                  String attrNS,
                  String attr,
                  Object obj,
                  Object value,
                  cookxml.core.DecodeEngine decodeEngine)
                  throws Exception
Set an attribute of the object.

Parameters:
ns - the namespace of the element.
tag - the tag of the element
attrNS - the namespace of the attribute
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 being used.
Throws:
Exception - If the exception is not a SetterException, then it is wrapped inside one by the DecodeEngine and handled by the ExceptionHandler.