public abstract class ConfigType<T>
extends java.lang.Object
Constructor and Description |
---|
ConfigType() |
Modifier and Type | Method and Description |
---|---|
void |
afterConfigure(XmlConfigContext builder,
java.lang.Object bean)
Called after the children are configured.
|
void |
beforeConfigure(XmlConfigContext builder,
java.lang.Object bean,
org.w3c.dom.Node node)
Called before the children are configured.
|
void |
beforeConfigureBean(XmlConfigContext builder,
java.lang.Object bean,
org.w3c.dom.Node node)
Called before the children are configured.
|
void |
carefulIntrospect() |
java.lang.Object |
create(java.lang.Object parent,
QName name)
Creates a new instance of the type.
|
ConfigType<?> |
createType(QName name)
Creates a top-level instance of the type.
|
Attribute |
getAddAttribute(java.lang.Class<?> cl)
Returns any add attributes to add arbitrary content
|
Attribute |
getAddBeanAttribute(QName qName) |
Attribute |
getAttribute(QName qName)
Returns the attribute with the given name.
|
ConfigType<?> |
getComponentType() |
java.lang.reflect.Constructor<?> |
getConstructor(int count)
Returns the constructor with the given number of arguments
|
Attribute |
getContentProgramAttribute()
Returns the flow program attribute, i.e.
|
Attribute |
getDefaultAttribute(QName qName) |
Attribute |
getProgramAttribute()
Returns the program attribute.
|
abstract java.lang.Class<T> |
getType()
Returns the Java type.
|
ConfigType<?> |
getType(java.lang.Object childBean)
Returns the config type of the child bean.
|
java.lang.String |
getTypeName()
Returns a printable name of the type.
|
void |
init(java.lang.Object bean)
Initialize the type
|
void |
inject(java.lang.Object bean)
Inject and initialize the type
|
void |
introspect()
Introspect the type.
|
boolean |
isArray()
Returns true for an array type
|
boolean |
isBean()
Returns true for a bean-style type.
|
boolean |
isConstructableFromString() |
boolean |
isEL()
Return true for EL evaluation
|
boolean |
isEnvBean()
Returns true for an environment bean.
|
boolean |
isInlineType(ConfigType<?> type) |
boolean |
isNode()
Returns true for an XML node type.
|
boolean |
isNoTrim()
Return true for non-trim.
|
boolean |
isProgram()
Returns true for a program type.
|
boolean |
isQualifier()
Returns true for a qualifier annotation
|
boolean |
isReplace()
Return true if the object is replaced
|
java.lang.Object |
replaceObject(java.lang.Object bean)
Replace the type with the generated object
|
void |
setEnvBean(boolean isEnvBean)
Returns true for an environment bean.
|
boolean |
setProperty(java.lang.Object bean,
QName name,
java.lang.Object value)
Sets a property based on an attribute name, returning true if
successful.
|
java.lang.String |
toString() |
java.lang.Object |
valueOf(ELContext env,
Expr value)
Converts the value to a value of the type.
|
java.lang.Object |
valueOf(java.lang.Object value)
Converts the value to a value of the type.
|
abstract java.lang.Object |
valueOf(java.lang.String text)
Converts the string to a value of the type.
|
public abstract java.lang.Class<T> getType()
public void carefulIntrospect()
public void introspect()
public java.lang.String getTypeName()
public java.lang.Object create(java.lang.Object parent, QName name)
public ConfigType<?> createType(QName name)
public ConfigType<?> getType(java.lang.Object childBean)
public void inject(java.lang.Object bean)
public void init(java.lang.Object bean)
public java.lang.Object replaceObject(java.lang.Object bean)
public java.lang.reflect.Constructor<?> getConstructor(int count)
public abstract java.lang.Object valueOf(java.lang.String text)
public java.lang.Object valueOf(java.lang.Object value)
public java.lang.Object valueOf(ELContext env, Expr value)
public boolean isBean()
public boolean isNode()
public boolean isNoTrim()
public boolean isEL()
public boolean isArray()
public boolean isReplace()
public boolean isQualifier()
public boolean isProgram()
public ConfigType<?> getComponentType()
public boolean setProperty(java.lang.Object bean, QName name, java.lang.Object value)
public Attribute getProgramAttribute()
public Attribute getContentProgramAttribute()
public Attribute getAddAttribute(java.lang.Class<?> cl)
public void beforeConfigureBean(XmlConfigContext builder, java.lang.Object bean, org.w3c.dom.Node node)
public void beforeConfigure(XmlConfigContext builder, java.lang.Object bean, org.w3c.dom.Node node)
public void afterConfigure(XmlConfigContext builder, java.lang.Object bean)
public boolean isConstructableFromString()
public boolean isInlineType(ConfigType<?> type)
public boolean isEnvBean()
public void setEnvBean(boolean isEnvBean)
public java.lang.String toString()
toString
in class java.lang.Object