|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.formaria.editor.data.pojo.PojoProperties
public class PojoProperties
A structures begin used to store the pojo properties
| Constructor Summary | |
|---|---|
PojoProperties()
Creates a new instance of PojoProperties |
|
| Method Summary | |
|---|---|
protected void |
createKeyTables()
Create the table containing property names and transient property names |
protected java.lang.Class |
getCollectionType(java.lang.String propertyName)
Returns the class whose instances are stored by the specified collection |
protected int |
getNumProperties()
Gets the total number of properties |
protected java.lang.Object |
getProperty(int idx)
Gets the property value located at the specified index. |
java.lang.reflect.Method |
getPropertyGetter(java.lang.String propertyName)
Returns the getter of the specified property. |
protected java.lang.String |
getPropertyName(int idx)
Gets the name of the property at the specified index |
java.util.Set |
getPropertyNames()
Gets the names of the regular POJO properties |
protected java.lang.reflect.Method |
getPropertySetter(int idx)
Gets the setter of the property located at the specified index |
java.lang.reflect.Method |
getPropertySetter(java.lang.String propertyName)
Returns the setter of the specified property. |
java.lang.Class |
getTransientCollectionType(java.lang.String propertyName)
Returns the class whose instances are stored by the specified transient collection. |
org.formaria.editor.data.pojo.PojoProperties.TransientProperty |
getTransientProperty(java.lang.String propertyName)
Gets the transient property details associated with the given property name. |
java.util.Set |
getTransientPropertyNames()
Gets the names of the transient properties |
java.lang.Class |
getTransientPropertyType(java.lang.String propertyName)
Gets the class whose istance is held by the specified transient property. |
protected void |
setCollectionType(java.lang.String propertyName,
java.lang.Class collectionType)
|
protected void |
setPropertyGetter(java.lang.String propertyName,
java.lang.reflect.Method propertyValue)
Maps the specified property name to the specified getter method |
protected void |
setPropertySetter(java.lang.String propertyName,
java.lang.reflect.Method propertyValue)
Maps the specified property name to the specified setter method |
protected void |
setTransientCollectionType(java.lang.String propertyName,
java.lang.Class collectionType)
Marks that the specified transient collection is intended to store elements of the specified type. |
protected void |
setTransientPropertyType(java.lang.String propertyName,
java.lang.Class type)
Sets the type of the specified property. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PojoProperties()
| Method Detail |
|---|
public java.util.Set getPropertyNames()
public java.util.Set getTransientPropertyNames()
public org.formaria.editor.data.pojo.PojoProperties.TransientProperty getTransientProperty(java.lang.String propertyName)
propertyName - the name of the property
protected void setPropertyGetter(java.lang.String propertyName,
java.lang.reflect.Method propertyValue)
propertyName - the name of the propertypropertyValue - the getter method of the propertypublic java.lang.reflect.Method getPropertyGetter(java.lang.String propertyName)
propertyName - the name of the property whose getter
is to be retrieved
protected void setPropertySetter(java.lang.String propertyName,
java.lang.reflect.Method propertyValue)
propertyName - the name of the propertypropertyValue - the setter method of the propertypublic java.lang.reflect.Method getPropertySetter(java.lang.String propertyName)
property - the name of the property whose
setter is to be retrieved
protected void setCollectionType(java.lang.String propertyName,
java.lang.Class collectionType)
protected java.lang.Class getCollectionType(java.lang.String propertyName)
propertyName - the name of the property
holding a collection
protected void setTransientPropertyType(java.lang.String propertyName,
java.lang.Class type)
propertyName - the name of the property.type - the class whose istance is held by the propertypublic java.lang.Class getTransientPropertyType(java.lang.String propertyName)
propertyName - the name of the property whose type
is to be retrieved
protected void setTransientCollectionType(java.lang.String propertyName,
java.lang.Class collectionType)
propertyName - the name of the property holding a collectioncollectionType - the type of the collection elements.public java.lang.Class getTransientCollectionType(java.lang.String propertyName)
propertyName - the name of the transient property holding
a collection.
protected java.lang.String getPropertyName(int idx)
idx - the index of the requested property
protected java.lang.Object getProperty(int idx)
idx - the index of the requested property
protected java.lang.reflect.Method getPropertySetter(int idx)
idx - the index of the property whose setter is to be returned.
protected int getNumProperties()
protected void createKeyTables()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||