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 $
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 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:
Exception
- If the exception is not a SetterException
,
then it is wrapped inside one by the DecodeEngine and handled by the
ExceptionHandler
.