Package org.apache.ofbiz.widget.model
Interface ModelWidgetCondition.ConditionFactory
- All Known Implementing Classes:
ModelWidgetCondition.DefaultConditionFactory
- Enclosing class:
- ModelWidgetCondition
public static interface ModelWidgetCondition.ConditionFactory
A factory for
Condition
instances.-
Method Summary
Modifier and TypeMethodDescriptionnewInstance
(ModelWidget modelWidget, Element conditionElement) Returns a newCondition
instance built fromconditionElement
.
-
Method Details
-
newInstance
Returns a newCondition
instance built fromconditionElement
.- Parameters:
modelWidget
- TheModelWidget
that contains theCondition
instance.conditionElement
- The XML element used to build theCondition
instance.- Returns:
- A new
Condition
instance built fromconditionElement
. - Throws:
IllegalArgumentException
- if no model was found for the XML element
-