|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcookxml.core.setter.DefaultSetter
public class DefaultSetter
This setter attempts to call Java setter functions with the converted attribute values.
| Field Summary | |
|---|---|
static String |
PREFIX
|
| Method Summary | |
|---|---|
Object[] |
getActions(TagLibrary tagLibrary,
String tagNS,
String tag,
String attrNS,
String attr,
Class cl)
This function returns the related function/constructor/field/methods that is called by creator/setter etc. |
String[] |
getAttributes(Class cl)
This function reports potential attributes that can be handled by this setter for a given class. |
static DefaultSetter |
getInstance()
|
void |
setAttribute(String ns,
String tag,
String attrNS,
String attr,
Object obj,
Object value,
cookxml.core.DecodeEngine decodeEngine)
Set an attribute of the object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static String PREFIX
| Method Detail |
|---|
public static DefaultSetter getInstance()
public void setAttribute(String ns,
String tag,
String attrNS,
String attr,
Object obj,
Object value,
cookxml.core.DecodeEngine decodeEngine)
throws SetterException
Setter
setAttribute 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 String[] getAttributes(Class cl)
DocletSetter
getAttributes in interface DocletSettercl - the class interested in.
public Object[] getActions(TagLibrary tagLibrary,
String tagNS,
String tag,
String attrNS,
String attr,
Class cl)
DocletActionReporter
getActions 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
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||