|
||||||||||
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 |
|
FieldInfo |
getFieldInfo()
Get the field info in case impl uses field to handle property ops. |
|
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 |
|
boolean |
isReadable()
Is property readable. |
|
boolean |
isWritable()
Is property writable. |
|
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 PropertyInfo
public String getName()
PropertyInfo
getName
in interface PropertyInfo
public String getUpperName()
PropertyInfo
getUpperName
in interface PropertyInfo
public TypeInfo getType()
getType
in interface PropertyInfo
public void set(Object bean, Object value) throws Throwable
PropertyInfo
set
in interface PropertyInfo
bean
- the beanvalue
- the property value
Throwable
- for any errorpublic boolean equals(Object object)
equals
in class Object
public void toString(org.jboss.util.JBossStringBuilder buffer)
toString
in class org.jboss.util.JBossObject
public void toShortString(org.jboss.util.JBossStringBuilder buffer)
toShortString
in interface org.jboss.util.JBossInterface
toShortString
in class org.jboss.util.JBossObject
public int getHashCode()
getHashCode
in class org.jboss.util.JBossObject
public Object get(Object bean) throws Throwable
PropertyInfo
get
in interface PropertyInfo
bean
- the bean
Throwable
- for any errorpublic MethodInfo getGetter()
PropertyInfo
getGetter
in interface PropertyInfo
public void setGetter(MethodInfo getter)
PropertyInfo
setGetter
in interface PropertyInfo
getter
- the getterpublic MethodInfo getSetter()
PropertyInfo
getSetter
in interface PropertyInfo
public void setSetter(MethodInfo setter)
PropertyInfo
setSetter
in interface PropertyInfo
setter
- the setterpublic boolean isReadable()
PropertyInfo
isReadable
in interface PropertyInfo
public boolean isWritable()
PropertyInfo
isWritable
in interface PropertyInfo
public FieldInfo getFieldInfo()
PropertyInfo
getFieldInfo
in interface PropertyInfo
public AnnotationValue[] getAnnotations()
AnnotatedInfo
getAnnotations
in interface AnnotatedInfo
public AnnotationValue getAnnotation(String name)
AnnotatedInfo
getAnnotation
in interface AnnotatedInfo
name
- the name
public boolean isAnnotationPresent(String name)
AnnotatedInfo
isAnnotationPresent
in interface AnnotatedInfo
name
- the name
public Annotation[] getUnderlyingAnnotations()
AnnotatedInfo
getUnderlyingAnnotations
in interface AnnotatedInfo
public <T extends Annotation> T getUnderlyingAnnotation(Class<T> annotationType)
AnnotatedInfo
getUnderlyingAnnotation
in interface AnnotatedInfo
T
- 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 |