|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.config.attribute.Attribute
com.caucho.config.attribute.CreateAttribute<T>
public class CreateAttribute<T>
| Constructor Summary | |
|---|---|
CreateAttribute(java.lang.reflect.Method create,
java.lang.Class<T> type)
|
|
CreateAttribute(java.lang.reflect.Method create,
java.lang.Class<T> type,
java.lang.reflect.Method setter)
|
|
| Method Summary | |
|---|---|
java.lang.Object |
create(java.lang.Object parent,
QName name)
Creates the child bean. |
boolean |
equals(java.lang.Object o)
|
ConfigType<?> |
getConfigType()
Returns the config type of the attribute value. |
boolean |
isAllowInline()
True if it allows inline beans |
boolean |
isAllowText()
True if it allows text. |
boolean |
isAssignableFrom(Attribute attr)
|
boolean |
isInlineType(ConfigType<?> type)
True if it allows inline beans |
boolean |
isSetter()
Returns true for attributes which create objects. |
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 |
|---|
create, getType, isAssignableFrom, isBean, isConfigurable, isEL, isNode, isProgram, replaceObject, setText, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CreateAttribute(java.lang.reflect.Method create,
java.lang.Class<T> type)
public CreateAttribute(java.lang.reflect.Method create,
java.lang.Class<T> type,
java.lang.reflect.Method setter)
| Method Detail |
|---|
public ConfigType<?> getConfigType()
getConfigType in class Attributepublic boolean isAllowText()
isAllowText in class Attributepublic boolean isAllowInline()
isAllowInline in class Attributepublic boolean isInlineType(ConfigType<?> type)
isInlineType in class Attribute
public void setValue(java.lang.Object bean,
QName name,
java.lang.Object value)
throws ConfigException
setValue in class AttributeConfigExceptionpublic boolean isSetter()
isSetter in class Attribute
public java.lang.Object create(java.lang.Object parent,
QName name)
throws ConfigException
create in class AttributeConfigExceptionpublic boolean isAssignableFrom(Attribute attr)
isAssignableFrom in class Attributepublic boolean equals(java.lang.Object o)
equals in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||