程序包 org.xmeta.util
类 OgnlUtil
java.lang.Object
org.xmeta.util.OgnlUtil
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static ObjectgetCachedExpression(Thing thing, String attributeName) static org.xmeta.util.OgnlUtil.PathCachegetPathCache(Thing thing, String attributeName) static Objectstatic Objectstatic Object通过Ognl表达式取值, 模型的属性是Ognl的表达式。static Object通过Ognl表达式取值, 模型的属性是Ognl的表达式。static voidstatic voidstatic voidsetValue(Thing thing, String pathAttributeName, String pathAttributeValue, Object value, Object root)
-
构造器详细资料
-
OgnlUtil
public OgnlUtil()
-
-
方法详细资料
-
getValue
-
getValue
-
setValue
-
setValue
-
getValue
通过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
-
getCachedExpression
-
setValue
-