public class AddAttribute<T> extends Attribute
Modifier and Type | Field and Description |
---|---|
static AddAttribute<XmlBeanConfig> |
ATTR |
Constructor and Description |
---|
AddAttribute(java.lang.reflect.Method setMethod,
ConfigType<T> configType) |
Modifier and Type | Method and Description |
---|---|
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.
|
java.lang.reflect.Method |
getMethod() |
void |
setText(java.lang.Object bean,
QName name,
java.lang.String value)
Sets the value of the attribute as text
|
void |
setValue(java.lang.Object bean,
QName name,
java.lang.Object value)
Sets the value of the attribute
|
create, getType, isAllowInline, isAllowText, isAssignableFrom, isAssignableFrom, isBean, isConfigurable, isEL, isInlineType, isNode, isProgram, isSetter, replaceObject, toString
public static final AddAttribute<XmlBeanConfig> ATTR
public AddAttribute(java.lang.reflect.Method setMethod, ConfigType<T> configType)
public ConfigType<T> getConfigType()
Attribute
getConfigType
in class Attribute
public java.lang.reflect.Method getMethod()
public java.lang.Object create(java.lang.Object parent, QName qName) throws ConfigException
create
in class Attribute
ConfigException
public void setText(java.lang.Object bean, QName name, java.lang.String value) throws ConfigException
setText
in class Attribute
ConfigException
public void setValue(java.lang.Object bean, QName name, java.lang.Object value) throws ConfigException
setValue
in class Attribute
ConfigException