public abstract class Attribute
extends java.lang.Object
Constructor and Description |
---|
Attribute() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
create(java.lang.Object parent,
QName name)
Creates the child bean.
|
java.lang.Object |
create(java.lang.Object parent,
QName name,
ConfigType<?> type)
Creates the child bean.
|
abstract ConfigType<?> |
getConfigType()
Returns the config type of the attribute value.
|
ConfigType<?> |
getType(java.lang.Object childBean)
Returns the config type of the child bean.
|
boolean |
isAllowInline()
True if it allows inline beans
|
boolean |
isAllowText()
True if it allows text.
|
boolean |
isAssignableFrom(Attribute oldAttr) |
boolean |
isAssignableFrom(ConfigType<?> type) |
boolean |
isBean()
Returns true for a bean-style attribute.
|
boolean |
isConfigurable()
True if the attribute is annotated with a @Configurable
|
boolean |
isEL()
Returns true for an EL attribute.
|
boolean |
isInlineType(ConfigType<?> type)
True if the inline type matches
|
boolean |
isNode()
Returns true for a node attribute.
|
boolean |
isProgram()
Returns true for a program-style attribute.
|
boolean |
isSetter()
Returns true for attributes which create objects.
|
java.lang.Object |
replaceObject(java.lang.Object bean)
Replaces the given bean.
|
void |
setText(java.lang.Object bean,
QName name,
java.lang.String value)
Sets the value of the attribute as text
|
abstract void |
setValue(java.lang.Object bean,
QName name,
java.lang.Object value)
Sets the value of the attribute
|
java.lang.String |
toString() |
public abstract ConfigType<?> getConfigType()
public boolean isBean()
public boolean isEL()
public boolean isNode()
public boolean isProgram()
public boolean isAllowInline()
public boolean isInlineType(ConfigType<?> type)
public boolean isAllowText()
public boolean isConfigurable()
public boolean isAssignableFrom(Attribute oldAttr)
public boolean isAssignableFrom(ConfigType<?> type)
public void setText(java.lang.Object bean, QName name, java.lang.String value) throws ConfigException
ConfigException
public abstract void setValue(java.lang.Object bean, QName name, java.lang.Object value) throws ConfigException
ConfigException
public boolean isSetter()
public java.lang.Object create(java.lang.Object parent, QName name, ConfigType<?> type) throws ConfigException
ConfigException
public java.lang.Object create(java.lang.Object parent, QName name) throws ConfigException
ConfigException
public ConfigType<?> getType(java.lang.Object childBean)
public java.lang.Object replaceObject(java.lang.Object bean)
public java.lang.String toString()
toString
in class java.lang.Object