com.caucho.config.attribute
Class CreateAttribute

java.lang.Object
  extended by com.caucho.config.attribute.Attribute
      extended by com.caucho.config.attribute.CreateAttribute

public class CreateAttribute
extends Attribute


Constructor Summary
CreateAttribute(java.lang.reflect.Method create, ConfigType type)
           
CreateAttribute(java.lang.reflect.Method create, ConfigType type, java.lang.reflect.Method setter)
           
 
Method Summary
 java.lang.Object create(java.lang.Object parent)
          Creates the child bean.
 ConfigType getConfigType()
          Returns the config type of the attribute value.
 boolean isAllowText()
          True if it allows text.
 void setValue(java.lang.Object bean, QName name, java.lang.Object value)
          Sets the value of the attribute
 
Methods inherited from class com.caucho.config.attribute.Attribute
isBean, isEL, isNode, isProgram, replaceObject, setText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreateAttribute

public CreateAttribute(java.lang.reflect.Method create,
                       ConfigType type)

CreateAttribute

public CreateAttribute(java.lang.reflect.Method create,
                       ConfigType type,
                       java.lang.reflect.Method setter)
Method Detail

getConfigType

public ConfigType getConfigType()
Returns the config type of the attribute value.

Specified by:
getConfigType in class Attribute

isAllowText

public boolean isAllowText()
True if it allows text.

Overrides:
isAllowText in class Attribute

setValue

public void setValue(java.lang.Object bean,
                     QName name,
                     java.lang.Object value)
              throws ConfigException
Sets the value of the attribute

Specified by:
setValue in class Attribute
Throws:
ConfigException

create

public java.lang.Object create(java.lang.Object parent)
                        throws ConfigException
Creates the child bean.

Overrides:
create in class Attribute
Throws:
ConfigException