public class NestedPropertyInfo extends org.jboss.util.JBossObject implements PropertyInfo, Serializable
Constructor and Description |
---|
NestedPropertyInfo(String name,
BeanInfo beanInfo) |
Modifier and Type | Method and Description |
---|---|
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.
|
<T extends Annotation> |
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) |
cacheGetHashCode, cacheToString, clone, equals, flushJBossObjectCache, getClassShortName, hashCode, list, notEqual, toShortString, toString, toStringImplementation
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 valueThrowable
- for any errorpublic 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 beanThrowable
- 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 namepublic boolean isAnnotationPresent(String name)
AnnotatedInfo
isAnnotationPresent
in interface AnnotatedInfo
name
- the namepublic 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 annotationTypepublic boolean isAnnotationPresent(Class<? extends Annotation> annotationType)
AnnotatedInfo
isAnnotationPresent
in interface AnnotatedInfo
Copyright © 2017 JBoss by Red Hat. All rights reserved.