|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.util.JBossObject
org.jboss.beans.info.plugins.NestedPropertyInfo
public class NestedPropertyInfo
When bean has more than one property with the same name we try to use this impl to look over all possible setters in order to set the value. But for most of other methods there is insufficent information to invoke the right method - e.g. just property name and parent bean.
| Field Summary |
|---|
| Fields inherited from class org.jboss.util.JBossObject |
|---|
hashCode, log, toString |
| Constructor Summary | |
|---|---|
NestedPropertyInfo(String name,
BeanInfo beanInfo)
|
|
| Method Summary | ||
|---|---|---|
boolean |
equals(Object object)
|
|
Object |
get(Object bean)
Get the property value |
|
AnnotationValue |
getAnnotation(String name)
Get an annotation |
|
AnnotationValue[] |
getAnnotations()
Get the annotations |
|
BeanInfo |
getBeanInfo()
Get the BeanInfo |
|
MethodInfo |
getGetter()
Get the getter |
|
int |
getHashCode()
|
|
String |
getName()
Get the property name |
|
MethodInfo |
getSetter()
Get the setter |
|
TypeInfo |
getType()
In this case it is better to return null then to throw an exception, since we might still have enough information to use this class to set the value. |
|
|
getUnderlyingAnnotation(Class<T> annotationType)
Get an underlying annotation |
|
Annotation[] |
getUnderlyingAnnotations()
Get the underlying annotations |
|
String |
getUpperName()
Get the uppercase version of the property name |
|
boolean |
isAnnotationPresent(Class<? extends Annotation> annotationType)
Test whether an annotation is present |
|
boolean |
isAnnotationPresent(String name)
Test whether an annotation is present |
|
void |
set(Object bean,
Object value)
Set the property value |
|
void |
setGetter(MethodInfo getter)
Set the getter |
|
void |
setSetter(MethodInfo setter)
Set the setter |
|
void |
toShortString(org.jboss.util.JBossStringBuilder buffer)
|
|
void |
toString(org.jboss.util.JBossStringBuilder buffer)
|
|
| Methods inherited from class org.jboss.util.JBossObject |
|---|
cacheGetHashCode, cacheToString, clone, equals, flushJBossObjectCache, getClassShortName, hashCode, list, notEqual, toShortString, toString, toStringImplementation |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jboss.util.JBossInterface |
|---|
clone, toShortString |
| Constructor Detail |
|---|
public NestedPropertyInfo(String name,
BeanInfo beanInfo)
| Method Detail |
|---|
public BeanInfo getBeanInfo()
PropertyInfo
getBeanInfo in interface PropertyInfopublic String getName()
PropertyInfo
getName in interface PropertyInfopublic String getUpperName()
PropertyInfo
getUpperName in interface PropertyInfopublic TypeInfo getType()
getType in interface PropertyInfo
public void set(Object bean,
Object value)
throws Throwable
PropertyInfo
set in interface PropertyInfobean - the beanvalue - the property value
Throwable - for any errorpublic boolean equals(Object object)
equals in class Objectpublic void toString(org.jboss.util.JBossStringBuilder buffer)
toString in class org.jboss.util.JBossObjectpublic void toShortString(org.jboss.util.JBossStringBuilder buffer)
toShortString in interface org.jboss.util.JBossInterfacetoShortString in class org.jboss.util.JBossObjectpublic int getHashCode()
getHashCode in class org.jboss.util.JBossObject
public Object get(Object bean)
throws Throwable
PropertyInfo
get in interface PropertyInfobean - the bean
Throwable - for any errorpublic MethodInfo getGetter()
PropertyInfo
getGetter in interface PropertyInfopublic void setGetter(MethodInfo getter)
PropertyInfo
setGetter in interface PropertyInfogetter - the getterpublic MethodInfo getSetter()
PropertyInfo
getSetter in interface PropertyInfopublic void setSetter(MethodInfo setter)
PropertyInfo
setSetter in interface PropertyInfosetter - the setterpublic AnnotationValue[] getAnnotations()
AnnotatedInfo
getAnnotations in interface AnnotatedInfopublic AnnotationValue getAnnotation(String name)
AnnotatedInfo
getAnnotation in interface AnnotatedInfoname - the name
public boolean isAnnotationPresent(String name)
AnnotatedInfo
isAnnotationPresent in interface AnnotatedInfoname - the name
public Annotation[] getUnderlyingAnnotations()
AnnotatedInfo
getUnderlyingAnnotations in interface AnnotatedInfopublic <T extends Annotation> T getUnderlyingAnnotation(Class<T> annotationType)
AnnotatedInfo
getUnderlyingAnnotation in interface AnnotatedInfoT - the annotation typeannotationType - the annotationType
public boolean isAnnotationPresent(Class<? extends Annotation> annotationType)
AnnotatedInfo
isAnnotationPresent in interface AnnotatedInfo
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||