|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.codereligion.reflect.BeanIntrospections
public final class BeanIntrospections
Provides convenience methods to ease working with Java bean instrospection.
| Method Summary | |
|---|---|
static Set<PropertyDescriptor> |
getReadableProperties(Class<?> type)
Retrieves a Set of readable properties of the given type. |
static Set<PropertyDescriptor> |
getWriteableAndReadableProperties(Class<?> type)
Retrieves a Set of writeable and readable properties of the given
type. |
static Set<PropertyDescriptor> |
getWriteableProperties(Class<?> type)
Retrieves a Set of writeable properties of the given type
. |
static boolean |
hasDefaultConstructor(Class<?> type)
Determines whether the given type has a default constructor. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static boolean hasDefaultConstructor(Class<?> type)
type has a default constructor.
type - the Class to check
type as a zero argument constructor,
false otherwise
NullPointerException - when the given parameter is nullpublic static Set<PropertyDescriptor> getWriteableProperties(Class<?> type)
Set of writeable properties of the given type
. This includes all properties which have a public setter.
type - the Class to get the writeable properties for
Set of PropertyDescriptors
NullPointerException - when the given type is null
IllegalArgumentException - when the given type can not be
introspectedpublic static Set<PropertyDescriptor> getReadableProperties(Class<?> type)
Set of readable properties of the given type.
This includes all properties which have a public getter.
type - the Class to get the readable properties for
Set of PropertyDescriptors
NullPointerException - when the given type is null
IllegalArgumentException - when the given type can not be
introspectedpublic static Set<PropertyDescriptor> getWriteableAndReadableProperties(Class<?> type)
Set of writeable and readable properties of the given
type. This includes all properties which have a public setter.
type - the Class to get the writeable and readable
properties for
Set of PropertyDescriptors
NullPointerException - when the given type is null
IllegalArgumentException - when the given type can not be
introspected
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||