public class Properties
extends java.lang.Object
ClassDescriptor.| Modifier and Type | Field and Description | 
|---|---|
protected ClassDescriptor | 
classDescriptor  | 
protected java.util.HashMap<java.lang.String,PropertyDescriptor> | 
propertyDescriptors  | 
| Constructor and Description | 
|---|
Properties(ClassDescriptor classDescriptor)  | 
| Modifier and Type | Method and Description | 
|---|---|
protected void | 
addProperty(java.util.HashMap<java.lang.String,PropertyDescriptor> map,
           java.lang.String name,
           MethodDescriptor methodDescriptor,
           boolean isSetter)
Adds a setter and/or getter method to the property. 
 | 
protected PropertyDescriptor | 
createPropertyDescriptor(java.lang.String name,
                        FieldDescriptor fieldDescriptor)
Creates new field-only  
PropertyDescriptor. | 
protected PropertyDescriptor | 
createPropertyDescriptor(java.lang.String name,
                        MethodDescriptor getterMethod,
                        MethodDescriptor setterMethod)
Creates new  
PropertyDescriptor. | 
PropertyDescriptor[] | 
getAllPropertyDescriptors()
Returns all property descriptors. 
 | 
PropertyDescriptor | 
getPropertyDescriptor(java.lang.String name)
Returns  
property descriptor. | 
protected java.util.HashMap<java.lang.String,PropertyDescriptor> | 
inspectProperties()
Inspects all properties of target type. 
 | 
protected final ClassDescriptor classDescriptor
protected final java.util.HashMap<java.lang.String,PropertyDescriptor> propertyDescriptors
public Properties(ClassDescriptor classDescriptor)
protected java.util.HashMap<java.lang.String,PropertyDescriptor> inspectProperties()
protected void addProperty(java.util.HashMap<java.lang.String,PropertyDescriptor> map, java.lang.String name, MethodDescriptor methodDescriptor, boolean isSetter)
protected PropertyDescriptor createPropertyDescriptor(java.lang.String name, MethodDescriptor getterMethod, MethodDescriptor setterMethod)
PropertyDescriptor. Note that this method may be called
 up to three times (depends on use case) for the same property. Each time when
 a property is updated, a new definition is created with updated information.protected PropertyDescriptor createPropertyDescriptor(java.lang.String name, FieldDescriptor fieldDescriptor)
PropertyDescriptor. It will be invoked only once.public PropertyDescriptor getPropertyDescriptor(java.lang.String name)
property descriptor.public PropertyDescriptor[] getAllPropertyDescriptors()
Copyright © 2003-present Jodd Team