public class OgnlUtil extends Object
| 构造器和说明 |
|---|
OgnlUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static Object |
getCachedExpression(Thing thing,
String attributeName) |
static org.xmeta.util.OgnlUtil.PathCache |
getPathCache(Thing thing,
String attributeName) |
static Object |
getValue(Thing thing,
String pathAttributeName,
Object root)
通过Ognl表达式取值, 事物的属性是Ognl的表达式。
|
static Object |
getValue(Thing thing,
String pathAttributeName,
String pathAttributeValue,
Object root)
通过Ognl表达式取值, 事物的属性是Ognl的表达式。
|
static void |
setValue(Thing thing,
String pathAttributeName,
String pathAttributeValue,
Object value,
Object root) |
public static Object getValue(Thing thing, String pathAttributeName, Object root) throws ognl.OgnlException
thing - 事物pathAttributeName - 属性root - 根ognl.OgnlException - 异常public static Object getValue(Thing thing, String pathAttributeName, String pathAttributeValue, Object root) throws ognl.OgnlException
thing - 事物pathAttributeName - 属性pathAttributeValue - 是事物的属性值,如果为空返回nullroot - 根对象ognl.OgnlException - 异常public static org.xmeta.util.OgnlUtil.PathCache getPathCache(Thing thing, String attributeName) throws ognl.OgnlException
ognl.OgnlExceptionpublic static Object getCachedExpression(Thing thing, String attributeName) throws ognl.OgnlException
ognl.OgnlExceptionCopyright © 2016 xworker.org. All rights reserved.