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(Object tree,
Object root) |
static Object |
getValue(String expression,
Object root) |
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(Object tree,
Object root,
Object value) |
static void |
setValue(String expression,
Object root,
Object value) |
static void |
setValue(Thing thing,
String pathAttributeName,
String pathAttributeValue,
Object value,
Object root) |
public static Object getValue(Thing thing, String pathAttributeName, Object root)
thing - 事物pathAttributeName - 属性root - 根public static Object getValue(Thing thing, String pathAttributeName, String pathAttributeValue, Object root)
thing - 事物pathAttributeName - 属性pathAttributeValue - 是事物的属性值,如果为空返回nullroot - 根对象public static org.xmeta.util.OgnlUtil.PathCache getPathCache(Thing thing, String attributeName)
Copyright © 2022 xworker.org. All rights reserved.