|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.progeeks.util.beans.PropertyUtils
public class PropertyUtils
Utils for accessing or building ASTs for property expressions using a simple dot and index notation.
Examples:
foo.bar.baz:
foo.bar[12].baz:
foo\.bar[12].baz:
foo\\.bar[12].baz:
foo.bar\[12\].baz:
foo.bar[].baz:
Field Summary | |
---|---|
static SimpleExpressionLanguage |
EL
|
Constructor Summary | |
---|---|
PropertyUtils()
|
Method Summary | |
---|---|
static java.lang.Object |
getProperty(java.lang.Object bean,
java.util.List expressionElements)
Uses bean Introspection via org.progeeks.util.Inspector to access a sequence of nested properties specified by the pre-parsed list of expression elements. |
static java.lang.Object |
getProperty(java.lang.Object bean,
java.lang.String expression)
Uses bean Introspection via org.progeeks.util.Inspector to access a sequence of nested properties specified by the string 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 bean,
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 bean,
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 PropertyUtils()
Method Detail |
---|
public static java.util.List parseExpression(java.lang.String expression)
public static java.lang.Object getProperty(java.lang.Object bean, java.util.List expressionElements)
public static java.lang.Object getProperty(java.lang.Object bean, java.lang.String expression)
public static void setProperty(java.lang.Object bean, java.lang.String expression, java.lang.Object value)
public static void setProperty(java.lang.Object bean, java.util.List expressionElements, java.lang.Object value)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |