Package org.apache.ofbiz.widget.model
Class ModelWidgetCondition
- java.lang.Object
-
- org.apache.ofbiz.widget.model.ModelWidgetCondition
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
ModelWidgetCondition.And
,ModelWidgetCondition.IfCompare
,ModelWidgetCondition.IfCompareField
,ModelWidgetCondition.IfEmpty
,ModelWidgetCondition.IfEntityPermission
,ModelWidgetCondition.IfHasPermission
,ModelWidgetCondition.IfRegexp
,ModelWidgetCondition.IfServicePermission
,ModelWidgetCondition.IfValidateMethod
,ModelWidgetCondition.Not
,ModelWidgetCondition.Or
,ModelWidgetCondition.Xor
public abstract class ModelWidgetCondition extends java.lang.Object implements java.io.Serializable
Abstract base class for the condition models.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ModelWidgetCondition.And
Models the <and> element.static interface
ModelWidgetCondition.Condition
static interface
ModelWidgetCondition.ConditionFactory
A factory forCondition
instances.static class
ModelWidgetCondition.DefaultConditionFactory
static class
ModelWidgetCondition.IfCompare
Models the <if-compare> element.static class
ModelWidgetCondition.IfCompareField
Models the <if-compare-field> element.static class
ModelWidgetCondition.IfEmpty
Models the <if-empty> element.static class
ModelWidgetCondition.IfEntityPermission
Models the <if-entity-permission> element.static class
ModelWidgetCondition.IfHasPermission
Models the <if-has-permission> element.static class
ModelWidgetCondition.IfRegexp
Models the <if-regexp> element.static class
ModelWidgetCondition.IfServicePermission
Models the <if-service-permission> element.static class
ModelWidgetCondition.IfValidateMethod
Models the <if-validate-method> element.static class
ModelWidgetCondition.Not
Models the <not> element.static class
ModelWidgetCondition.Or
Models the <or> element.static class
ModelWidgetCondition.Xor
Models the <xor> element.
-
Field Summary
Fields Modifier and Type Field Description static ModelWidgetCondition.ConditionFactory
DEFAULT_CONDITION_FACTORY
static java.lang.String
module
-
Constructor Summary
Constructors Modifier Constructor Description protected
ModelWidgetCondition(ModelWidgetCondition.ConditionFactory factory, ModelWidget modelWidget, org.w3c.dom.Element conditionElement)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
eval(java.util.Map<java.lang.String,java.lang.Object> context)
ModelWidget
getModelWidget()
static java.util.List<ModelWidgetCondition.Condition>
readSubConditions(ModelWidgetCondition.ConditionFactory factory, ModelWidget modelWidget, org.w3c.dom.Element conditionElement)
-
-
-
Field Detail
-
module
public static final java.lang.String module
-
DEFAULT_CONDITION_FACTORY
public static final ModelWidgetCondition.ConditionFactory DEFAULT_CONDITION_FACTORY
-
-
Constructor Detail
-
ModelWidgetCondition
protected ModelWidgetCondition(ModelWidgetCondition.ConditionFactory factory, ModelWidget modelWidget, org.w3c.dom.Element conditionElement)
-
-
Method Detail
-
eval
public boolean eval(java.util.Map<java.lang.String,java.lang.Object> context)
-
getModelWidget
public ModelWidget getModelWidget()
-
readSubConditions
public static java.util.List<ModelWidgetCondition.Condition> readSubConditions(ModelWidgetCondition.ConditionFactory factory, ModelWidget modelWidget, org.w3c.dom.Element conditionElement)
-
-