Package Class Use Tree Index Help PREV CLASS NEXT CLASS FRAMES NO FRAMES SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD
java.lang.Objectjve.generated.PropertyHelper
This helper provide the details of resolving an Object/Property string into the final object.
For example:
Object=Foo, Property=address.zip will be resolved into Foo.getAddress().getZip()
Object=Foo, Property=null will be resolved into Foo
It serves as an element to be cached and thrown away when the underlying object changes.
Note: the object can not be a Collection or an array of Objects.
Field Summary protected java.beans.PropertyDescriptor[] descriptorsChain
protected int nesting
protected java.lang.Object[] objectsChain
protected java.lang.String[] propertiesChain
protected java.lang.String property
protected java.lang.Object soureObject
protected java.lang.Class type
Constructor Summary PropertyHelper(ObjectReference val)
Create a property helper for the given ObjectReference.PropertyHelper(java.lang.Object o, java.lang.String prop)
Create a property helper for the given object and property string.
Method Summary protected java.lang.Object getObject(int index)
Get the object value for the property at the given index.protected java.beans.PropertyDescriptor getPropertyDescriptor(int index)
The a property descriptor for a particular hopjava.lang.Class getType()
Get the type of the property for this PropertyHelper.static java.lang.Class getType(java.lang.Class root, java.lang.String property)
Get the type of the given dotted property, rooted from the given class.java.lang.Object getValue()
Get the final value of the property (the last property in the dotted property value).protected java.lang.Object getValue(java.lang.Object bean, java.beans.PropertyDescriptor pd)
Get the value of a property from a given beanprotected void initialize(java.lang.Object b, java.lang.String p)
This object could have been constructed using an ObjectReference that has not been populated yet.boolean isPrimitive()
Check to see if the target property's type is a Java primitive type.boolean isReadOnly()
Check to see if the target property is read only.void setValue(java.lang.Object val)
Set the value of the target property to the given value.protected void setValue(java.lang.Object bean, java.beans.PropertyDescriptor pd, java.lang.Object value)
Set the value of a property to a given beanjava.lang.String toString()
Methods inherited from class java.lang.Object clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Field Detail
protected int nesting
protected java.lang.Object[] objectsChain
protected java.lang.String[] propertiesChain
protected java.beans.PropertyDescriptor[] descriptorsChain
protected java.lang.Object soureObject
protected java.lang.String property
protected java.lang.Class type
Constructor Detail
public PropertyHelper(java.lang.Object o, java.lang.String prop)
public PropertyHelper(ObjectReference val)
Method Detail
protected void initialize(java.lang.Object b, java.lang.String p)
protected java.beans.PropertyDescriptor getPropertyDescriptor(int index)
protected java.lang.Object getValue(java.lang.Object bean, java.beans.PropertyDescriptor pd)
protected void setValue(java.lang.Object bean, java.beans.PropertyDescriptor pd, java.lang.Object value)
protected java.lang.Object getObject(int index)
public java.lang.Object getValue()
public boolean isReadOnly()
public boolean isPrimitive()
public void setValue(java.lang.Object val)
public java.lang.String toString()
public static java.lang.Class getType(java.lang.Class root, java.lang.String property)
public java.lang.Class getType() throws java.lang.IllegalStateException
Package Class Use Tree Index Help PREV CLASS NEXT CLASS FRAMES NO FRAMES SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD