|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.calitha.reflect.Property
public class Property
A property object represents information about a field in an object.
| Constructor Summary | |
|---|---|
Property(String fieldName,
Class fieldType)
Create a property object without a set and get method. |
|
Property(String fieldName,
Class fieldType,
Method getter,
Method setter)
Create a property object. |
|
| Method Summary | |
|---|---|
String |
getFieldName()
Gets the field name. |
Class |
getFieldType()
Gets the field type. |
Method |
getGetter()
Gets the getter method to access the field value. |
Method |
getSetter()
Gets the setter method to access the field value. |
void |
setGetter(Method getter)
Sets the getter method to access the field value. |
void |
setSetter(Method setter)
Sets the setter method to access the field value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Property(String fieldName,
Class fieldType,
Method getter,
Method setter)
fieldName - field namefieldType - field typegetter - method to get the field value, can be null if a get method is not availablesetter - method to set the field value, can be null if a set method is not available
public Property(String fieldName,
Class fieldType)
fieldName - field namefieldType - field type| Method Detail |
|---|
public String getFieldName()
public Class getFieldType()
public Method getGetter()
public Method getSetter()
public void setGetter(Method getter)
getter - get methodpublic void setSetter(Method setter)
setter - set method
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||