Package cn.dinodev.spring.commons.bean
Interface BeanMeta
- All Known Implementing Classes:
BeanMetaImpl,BeanMetaWithJsonView
public interface BeanMeta
bean meta info
- Author:
- Cody Lu
-
Method Summary
Modifier and TypeMethodDescriptionClass<?>bean classProperty[]bean property descriptors of the bean classgetProperty(String propertyName) bean property descriptor of property nameString[]bean property namesProperty[]readable property descriptorsString[]readable property namesProperty[]unreadable property descriptorsString[]unreadable property namesProperty[]unwritable property descriptorsString[]unwritable property namesProperty[]writable property descriptorsString[]writable property names
-
Method Details
-
getBeanClass
Class<?> getBeanClass()bean class- Returns:
- the beanClass
-
getPropertyNames
String[] getPropertyNames()bean property names- Returns:
- the property names
-
getProperties
Property[] getProperties()bean property descriptors of the bean class- Returns:
- the property descriptors, or empty array if not found
-
getProperty
bean property descriptor of property name- Parameters:
propertyName-- Returns:
- the property descriptor, or null if not found
-
getReadablePropertyNames
String[] getReadablePropertyNames()readable property names- Returns:
- the readable property names, or empty array if not found
-
getReadableProperties
Property[] getReadableProperties()readable property descriptors- Returns:
- the readable property descriptors, or empty array if not found
-
getWritablePropertyNames
String[] getWritablePropertyNames()writable property names- Returns:
- the writable property names, or empty array if not found
-
getWritableProperties
Property[] getWritableProperties()writable property descriptors- Returns:
- the writable property descriptors, or empty array if not found
-
getUnreadablePropertyNames
String[] getUnreadablePropertyNames()unreadable property names- Returns:
- the unreadable property names, or empty array if not found
-
getUnreadableProperties
Property[] getUnreadableProperties()unreadable property descriptors- Returns:
- the unreadable property descriptors, or empty array if not found
-
getUnwritablePropertyNames
String[] getUnwritablePropertyNames()unwritable property names- Returns:
- the unwritable property names, or empty array if not found
-
getUnwritableProperties
Property[] getUnwritableProperties()unwritable property descriptors- Returns:
- the unwritable property descriptors, or empty array if not found
-