public class ConstantSetter extends java.lang.Object implements Setter, DocletActionReporter
Constructor and Description |
---|
ConstantSetter(java.lang.Class constantClass) |
ConstantSetter(java.lang.Class constantClass,
Setter setter) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object[] |
getActions(TagLibrary tagLibrary,
java.lang.String tagNS,
java.lang.String tag,
java.lang.String attrNS,
java.lang.String attr,
java.lang.Class cl)
This function returns the related function/constructor/field/methods that
is called by creator/setter etc.
|
void |
setAttribute(java.lang.String ns,
java.lang.String tag,
java.lang.String attrNS,
java.lang.String attr,
java.lang.Object obj,
java.lang.Object value,
cookxml.core.DecodeEngine decodeEngine)
Set an attribute of the object.
|
public ConstantSetter(java.lang.Class constantClass)
public ConstantSetter(java.lang.Class constantClass, Setter setter)
public void setAttribute(java.lang.String ns, java.lang.String tag, java.lang.String attrNS, java.lang.String attr, java.lang.Object obj, java.lang.Object value, cookxml.core.DecodeEngine decodeEngine) throws java.lang.Exception
Setter
setAttribute
in interface Setter
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.java.lang.Exception
- If the exception is not a SetterException
,
then it is wrapped inside one by the DecodeEngine and handled by the
ExceptionHandler
.public java.lang.Object[] getActions(TagLibrary tagLibrary, java.lang.String tagNS, java.lang.String tag, java.lang.String attrNS, java.lang.String attr, java.lang.Class cl)
DocletActionReporter
getActions
in interface DocletActionReporter
tagLibrary
- the tag library being used.tagNS
- the namespace of the tagtag
- possible tagattrNS
- the namespace of the attributeattr
- the attributecl
- the possible class