public class CreateAttribute<T> extends Attribute
Constructor and Description |
---|
CreateAttribute(java.lang.reflect.Method create,
java.lang.Class<T> type) |
CreateAttribute(java.lang.reflect.Method create,
java.lang.Class<T> type,
java.lang.reflect.Method setter) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
create(java.lang.Object parent,
QName name)
Creates the child bean.
|
boolean |
equals(java.lang.Object o) |
ConfigType<?> |
getConfigType()
Returns the config type of the attribute value.
|
boolean |
isAllowInline()
True if it allows inline beans
|
boolean |
isAllowText()
True if it allows text.
|
boolean |
isAssignableFrom(Attribute attr) |
boolean |
isInlineType(ConfigType<?> type)
True if it allows inline beans
|
boolean |
isSetter()
Returns true for attributes which create objects.
|
void |
setValue(java.lang.Object bean,
QName name,
java.lang.Object value)
Sets the value of the attribute
|
create, getType, isAssignableFrom, isBean, isConfigurable, isEL, isNode, isProgram, replaceObject, setText, toString
public CreateAttribute(java.lang.reflect.Method create, java.lang.Class<T> type)
public CreateAttribute(java.lang.reflect.Method create, java.lang.Class<T> type, java.lang.reflect.Method setter)
public ConfigType<?> getConfigType()
getConfigType
in class Attribute
public boolean isAllowText()
isAllowText
in class Attribute
public boolean isAllowInline()
isAllowInline
in class Attribute
public boolean isInlineType(ConfigType<?> type)
isInlineType
in class Attribute
public void setValue(java.lang.Object bean, QName name, java.lang.Object value) throws ConfigException
setValue
in class Attribute
ConfigException
public boolean isSetter()
public java.lang.Object create(java.lang.Object parent, QName name) throws ConfigException
create
in class Attribute
ConfigException
public boolean isAssignableFrom(Attribute attr)
isAssignableFrom
in class Attribute
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object