|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.richclient.widget.table.NestedAccessor
public class NestedAccessor
This Accessor uses a chaining implementation of getter methods to allow nested properties.
| Constructor Summary | |
|---|---|
NestedAccessor(Class<?> clazz,
String propertyName,
String nestedPropertyName)
Convenience constructor. |
|
NestedAccessor(Method getter,
String nestedProperty)
Constructor. |
|
| Method Summary | |
|---|---|
Class<?> |
getPropertyType()
Returns the property type of the value that can be obtained through this accessor. |
Object |
getValue(Object fromEntity)
Get the value from the source entity. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NestedAccessor(Class<?> clazz,
String propertyName,
String nestedPropertyName)
NestedAccessor(Method, String).
clazz - type with the nested property.propertyName - the first part of the nested property.nestedPropertyName - the nested property, possibly containing more nesting levels.NestedAccessor(Method, String)
public NestedAccessor(Method getter,
String nestedProperty)
getter - method delivering the first part of the nesting.nestedProperty - property that should be available on the return object of the getter. Possibly nested as
well.NestedAccessor(Class, String, String)| Method Detail |
|---|
public Object getValue(Object fromEntity)
throws IllegalAccessException,
InvocationTargetException
null.
getValue in interface AccessorfromEntity - the entity on which the getter should operate.
null if at any point in the chaining a property returned null or
the value of the nested property.
IllegalAccessException
InvocationTargetExceptionpublic Class<?> getPropertyType()
getPropertyType in interface Accessor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||