public class ClassInspector
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
PEER_UID_PROPERTY_NAME
Peer UID property name
|
Constructor and Description |
---|
ClassInspector() |
Modifier and Type | Method and Description |
---|---|
<T extends DDBSEntityProperty> |
exploreProperties(java.lang.Class<?> classData)
List public properties of an object
|
protected boolean |
hasGetterAndSetter(java.lang.Class<?> classData,
java.lang.String fieldName)
Has getters and setters
|
protected java.lang.String |
retrieveGetterMethodName(java.lang.String fieldName)
Retrieve getter method name
|
protected java.lang.String |
retrieveSetterMethodName(java.lang.String fieldName)
Retrieve setter method name
|
protected void |
updateDDBSEntityProperty(java.lang.Class<?> classData,
java.lang.reflect.Field field,
DDBSEntityProperty ddbsEntityProperty,
int counterProperties,
java.lang.Boolean hasGetterAndSetter)
Update a DDBSEntity property
|
protected static final java.lang.String PEER_UID_PROPERTY_NAME
public <T extends DDBSEntityProperty> java.util.List<T> exploreProperties(java.lang.Class<?> classData)
T
- Extended entityclassData
- : object to inspectprotected boolean hasGetterAndSetter(java.lang.Class<?> classData, java.lang.String fieldName)
classData
- Class objectfieldName
- Field nameprotected java.lang.String retrieveGetterMethodName(java.lang.String fieldName)
fieldName
- Field Nameprotected java.lang.String retrieveSetterMethodName(java.lang.String fieldName)
fieldName
- Field Nameprotected void updateDDBSEntityProperty(java.lang.Class<?> classData, java.lang.reflect.Field field, DDBSEntityProperty ddbsEntityProperty, int counterProperties, java.lang.Boolean hasGetterAndSetter)
classData
- Class datafield
- FieldddbsEntityProperty
- DDBS Entity propertycounterProperties
- Counter of propertieshasGetterAndSetter
- Indicates if DDBS Entity property has getter and setter