com.caucho.config.attribute
Class SetterAttribute

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

public class SetterAttribute
extends Attribute


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

Constructor Detail

SetterAttribute

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

getConfigType

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

Specified by:
getConfigType in class Attribute

setText

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

Overrides:
setText in class Attribute
Throws:
ConfigException

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

toString

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