org.ofbiz.widget.tree
Class ModelTreeCondition

java.lang.Object
  extended by org.ofbiz.widget.tree.ModelTreeCondition

public class ModelTreeCondition
extends java.lang.Object

Widget Library - Screen model condition class


Nested Class Summary
static class ModelTreeCondition.And
           
static class ModelTreeCondition.IfCompare
           
static class ModelTreeCondition.IfCompareField
           
static class ModelTreeCondition.IfEmpty
           
static class ModelTreeCondition.IfEntityPermission
           
static class ModelTreeCondition.IfHasPermission
           
static class ModelTreeCondition.IfRegexp
           
static class ModelTreeCondition.IfValidateMethod
           
static class ModelTreeCondition.Not
           
static class ModelTreeCondition.Or
           
static class ModelTreeCondition.TreeCondition
           
static class ModelTreeCondition.Xor
           
 
Field Summary
protected  ModelTree modelTree
           
static java.lang.String module
           
protected  ModelTreeCondition.TreeCondition rootCondition
           
 
Constructor Summary
ModelTreeCondition(ModelTree modelTree, org.w3c.dom.Element conditionElement)
           
 
Method Summary
 boolean eval(java.util.Map<java.lang.String,java.lang.Object> context)
           
static ModelTreeCondition.TreeCondition readCondition(ModelTree modelTree, org.w3c.dom.Element conditionElement)
           
static java.util.List<ModelTreeCondition.TreeCondition> readSubConditions(ModelTree modelTree, org.w3c.dom.Element conditionElement)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

module

public static final java.lang.String module

modelTree

protected ModelTree modelTree

rootCondition

protected ModelTreeCondition.TreeCondition rootCondition
Constructor Detail

ModelTreeCondition

public ModelTreeCondition(ModelTree modelTree,
                          org.w3c.dom.Element conditionElement)
Method Detail

eval

public boolean eval(java.util.Map<java.lang.String,java.lang.Object> context)

readSubConditions

public static java.util.List<ModelTreeCondition.TreeCondition> readSubConditions(ModelTree modelTree,
                                                                                 org.w3c.dom.Element conditionElement)

readCondition

public static ModelTreeCondition.TreeCondition readCondition(ModelTree modelTree,
                                                             org.w3c.dom.Element conditionElement)