|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.progeeks.meta.util.MetaPropertyUtils
public class MetaPropertyUtils
Extends the org.progeeks.util.beans.PropertyUtils class to also deal with MetaObjects. Convenience methods are provided that simply delegate to the PropertyUtils methods for some things.
Field Summary | |
---|---|
static SimpleExpressionLanguage |
EL
|
Constructor Summary | |
---|---|
MetaPropertyUtils()
|
Method Summary | |
---|---|
static java.lang.Object |
getProperty(java.lang.Object object,
java.util.List expressionElements)
Uses a PropertyAdapter to traverse the bean and meta-object properties specified by the pre-parsed list of expression elements. |
static java.lang.Object |
getProperty(java.lang.Object object,
java.lang.String expression)
Uses bean Introspection via org.progeeks.util.Inspector to access a sequence of nested properties specified by the spring expression. |
static java.util.List |
parseExpression(java.lang.String expression)
Parses the expression and returns a list of elements found. |
static void |
setProperty(java.lang.Object object,
java.util.List expressionElements,
java.lang.Object value)
Uses bean introspection via org.progeeks.util.Inspector to access a sequence of nested properties specified by the string expression and set the last property in the chain. |
static void |
setProperty(java.lang.Object object,
java.lang.String expression,
java.lang.Object value)
Uses bean introspection via org.progeeks.util.Inspector to access a sequence of nested properties specified by the string expression and set the last property in the chain. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final SimpleExpressionLanguage EL
Constructor Detail |
---|
public MetaPropertyUtils()
Method Detail |
---|
public static java.util.List parseExpression(java.lang.String expression)
public static java.lang.Object getProperty(java.lang.Object object, java.util.List expressionElements)
public static java.lang.Object getProperty(java.lang.Object object, java.lang.String expression)
public static void setProperty(java.lang.Object object, java.lang.String expression, java.lang.Object value)
public static void setProperty(java.lang.Object object, java.util.List expressionElements, java.lang.Object value)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |