com.caucho.config.type
Class ConfigType

java.lang.Object
  extended by com.caucho.config.type.ConfigType
Direct Known Subclasses:
AnnotationType, ArrayType, BeanType, BooleanPrimitiveType, BooleanType, BytePrimitiveType, ByteType, CharacterPrimitiveType, CharacterType, ClassType, DataSourceType, DateType, DoublePrimitiveType, DoubleType, EnumType, FileType, FloatPrimitiveType, FloatType, IntegerPrimitiveType, IntegerType, InterfaceType, ListType, LocaleType, LongPrimitiveType, LongType, MapType, MethodExpressionType, NodeType, NullType, PathType, PatternType, PropertiesType, PropertyEditorType, QDateType, RawStringType, SetType, ShortPrimitiveType, ShortType, StringArrayType, StringType, UrlType, ValueExpressionType, ValueType

public abstract class ConfigType
extends java.lang.Object

Represents an introspected configuration type.


Constructor Summary
ConfigType()
           
 
Method Summary
 void afterConfigure(ConfigContext builder, java.lang.Object bean)
          Called after the children are configured.
 void beforeConfigure(ConfigContext builder, java.lang.Object bean, org.w3c.dom.Node node)
          Called before the children are configured.
 void beforeConfigureBean(ConfigContext builder, java.lang.Object bean, org.w3c.dom.Node node)
          Called before the children are configured.
 java.lang.Object create(java.lang.Object parent)
          Creates a new instance of the type.
 Attribute getAttribute(QName qName)
          Returns the attribute with the given name.
 Attribute getContentProgramAttribute()
          Returns the flow program attribute, i.e.
 Attribute getProgramAttribute()
          Returns the program attribute.
abstract  java.lang.Class getType()
          Returns the Java type.
 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 isBean()
          Returns true for a bean-style type.
 boolean isEL()
          Return true for EL evaluation
 boolean isNode()
          Returns true for an XML node type.
 boolean isNoTrim()
          Return true for non-trim.
 boolean isProgram()
          Returns true for a program type.
 java.lang.Object replaceObject(java.lang.Object bean)
          Replace the type with the generated object
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConfigType

public ConfigType()
Method Detail

getType

public abstract java.lang.Class getType()
Returns the Java type.


introspect

public void introspect()
Introspect the type.


getTypeName

public java.lang.String getTypeName()
Returns a printable name of the type.


create

public java.lang.Object create(java.lang.Object parent)
Creates a new instance of the type.


inject

public void inject(java.lang.Object bean)
Inject and initialize the type


init

public void init(java.lang.Object bean)
Initialize the type


replaceObject

public java.lang.Object replaceObject(java.lang.Object bean)
Replace the type with the generated object


valueOf

public abstract java.lang.Object valueOf(java.lang.String text)
Converts the string to a value of the type.


valueOf

public java.lang.Object valueOf(java.lang.Object value)
Converts the value to a value of the type.


valueOf

public java.lang.Object valueOf(ELContext env,
                                Expr value)
Converts the value to a value of the type.


isBean

public boolean isBean()
Returns true for a bean-style type.


isNode

public boolean isNode()
Returns true for an XML node type.


isNoTrim

public boolean isNoTrim()
Return true for non-trim.


isEL

public boolean isEL()
Return true for EL evaluation


isProgram

public boolean isProgram()
Returns true for a program type.


getAttribute

public Attribute getAttribute(QName qName)
Returns the attribute with the given name.


getProgramAttribute

public Attribute getProgramAttribute()
Returns the program attribute.


getContentProgramAttribute

public Attribute getContentProgramAttribute()
Returns the flow program attribute, i.e. attributes that also save if/choose without interpreting.


beforeConfigureBean

public void beforeConfigureBean(ConfigContext builder,
                                java.lang.Object bean,
                                org.w3c.dom.Node node)
Called before the children are configured.


beforeConfigure

public void beforeConfigure(ConfigContext builder,
                            java.lang.Object bean,
                            org.w3c.dom.Node node)
Called before the children are configured. Also called for attribute configuration, e.g. for macros and web-app-default.


afterConfigure

public void afterConfigure(ConfigContext builder,
                           java.lang.Object bean)
Called after the children are configured.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object