|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.config.attribute.Attribute
com.caucho.config.xml.XmlBeanAnnotationAttribute<T>
public class XmlBeanAnnotationAttribute<T>
Attribute for configuring an XML annotation's value.
The XML equivalent for an attribute @mypkg.MyAttribute(myfield="my-value")
is the following:
<mypkg:MyAttribute>
<myfield>my-value</myfield>
</mypkg:MyAttribute>
Constructor Summary | |
---|---|
XmlBeanAnnotationAttribute(java.lang.Class<T> cl)
|
Method Summary | |
---|---|
java.lang.Object |
create(java.lang.Object parent,
QName qName)
Creates the child bean. |
ConfigType<T> |
getConfigType()
Returns the config type of the attribute value. |
void |
setText(java.lang.Object parent,
QName name,
java.lang.String text)
Sets the value of the attribute |
void |
setValue(java.lang.Object bean,
QName name,
java.lang.Object value)
Sets the value of the attribute |
Methods inherited from class com.caucho.config.attribute.Attribute |
---|
create, getType, isAllowInline, isAllowText, isAssignableFrom, isAssignableFrom, isBean, isConfigurable, isEL, isInlineType, isNode, isProgram, isSetter, replaceObject, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public XmlBeanAnnotationAttribute(java.lang.Class<T> cl)
Method Detail |
---|
public ConfigType<T> getConfigType()
Attribute
getConfigType
in class Attribute
public java.lang.Object create(java.lang.Object parent, QName qName) throws ConfigException
create
in class Attribute
ConfigException
public void setValue(java.lang.Object bean, QName name, java.lang.Object value) throws ConfigException
setValue
in class Attribute
ConfigException
public void setText(java.lang.Object parent, QName name, java.lang.String text) throws ConfigException
setText
in class Attribute
ConfigException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |