public class DefaultSetter extends java.lang.Object implements DocletSetter, DocletActionReporter
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PREFIX |
| 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.
|
java.lang.String[] |
getAttributes(java.lang.Class cl)
This function reports potential attributes that can be handled by this
setter for a given class.
|
static DefaultSetter |
getInstance() |
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 static DefaultSetter getInstance()
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 SetterException
SettersetAttribute in interface Setterns - 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.SetterExceptionpublic java.lang.String[] getAttributes(java.lang.Class cl)
DocletSettergetAttributes in interface DocletSettercl - the class interested in.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)
DocletActionReportergetActions in interface DocletActionReportertagLibrary - the tag library being used.tagNS - the namespace of the tagtag - possible tagattrNS - the namespace of the attributeattr - the attributecl - the possible class