public static final class BeanIntrospector.Property extends Object
| Modifier and Type | Method and Description |
|---|---|
<A extends Annotation> |
getAnnotation(Class<A> annotationType)
Returns this property annotation for the specified annotation type
or
null if annotation is not defined. |
Annotation[] |
getAnnotations()
Returns array of annotations defined on this property.
|
Type |
getGenericType()
Returns generic type of this property.
|
PropertyGetter |
getGetter()
Returns property value getter.
|
String |
getName()
Returns name of this property.
|
PropertySetter |
getSetter()
Returns property value setter.
|
Class<?> |
getType()
Returns raw type of this property.
|
boolean |
hasAnnotation(Class<? extends Annotation> annotationType)
Determines if this property has annotation with the specified type.
|
boolean |
isReadable()
Determines if this property is readable.
|
boolean |
isWriteable()
Determines if this property is writeable.
|
String |
toString()
Returns string representing this property.
|
void |
toString(StringBuilder buf)
Appends string representing this property to the specified buffer.
|
public String getName()
public Class<?> getType()
public Type getGenericType()
public PropertyGetter getGetter()
public PropertySetter getSetter()
public boolean isReadable()
true if this property is readable;
false otherwise.public boolean isWriteable()
true if this property is writeable;
false otherwise.public boolean hasAnnotation(Class<? extends Annotation> annotationType)
annotationType - The type of annotation.true if this property has annotation with the
specified type; false otherwise.public <A extends Annotation> A getAnnotation(Class<A> annotationType)
null if annotation is not defined.annotationType - The type of annotation.null if annotation is not defined.public Annotation[] getAnnotations()
public String toString()
public void toString(StringBuilder buf)
buf - Buffer to append.Copyright © 2010-2012 FoxLabs. All Rights Reserved.