程序包 org.xmeta.util
类 OgnlUtil
- java.lang.Object
-
- org.xmeta.util.OgnlUtil
-
public class OgnlUtil extends Object
-
-
构造器概要
构造器 构造器 说明 OgnlUtil()
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static ObjectgetCachedExpression(Thing thing, String attributeName)static org.xmeta.util.OgnlUtil.PathCachegetPathCache(Thing thing, String attributeName)static ObjectgetValue(Object tree, Object root)static ObjectgetValue(String expression, Object root)static ObjectgetValue(Thing thing, String pathAttributeName, Object root)通过Ognl表达式取值, 事物的属性是Ognl的表达式。static ObjectgetValue(Thing thing, String pathAttributeName, String pathAttributeValue, Object root)通过Ognl表达式取值, 事物的属性是Ognl的表达式。static voidsetValue(Object tree, Object root, Object value)static voidsetValue(String expression, Object root, Object value)static voidsetValue(Thing thing, String pathAttributeName, String pathAttributeValue, Object value, Object root)
-
-
-
方法详细资料
-
getValue
public static Object getValue(Thing thing, String pathAttributeName, Object root)
通过Ognl表达式取值, 事物的属性是Ognl的表达式。使用这种方式缓存了Ognl表达式。- 参数:
thing- 事物pathAttributeName- 属性root- 根- 返回:
- 值
-
getValue
public static Object getValue(Thing thing, String pathAttributeName, String pathAttributeValue, Object root)
通过Ognl表达式取值, 事物的属性是Ognl的表达式。使用这种方式缓存了Ognl表达式。- 参数:
thing- 事物pathAttributeName- 属性pathAttributeValue- 是事物的属性值,如果为空返回nullroot- 根对象- 返回:
- 值
-
getPathCache
public static org.xmeta.util.OgnlUtil.PathCache getPathCache(Thing thing, String attributeName)
-
-