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 forCondition
instances.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ModelWidgetCondition.Condition
newInstance(ModelWidget modelWidget, org.w3c.dom.Element conditionElement)
Returns a newCondition
instance built fromconditionElement
.
-
-
-
Method Detail
-
newInstance
ModelWidgetCondition.Condition newInstance(ModelWidget modelWidget, org.w3c.dom.Element conditionElement)
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:
java.lang.IllegalArgumentException
- if no model was found for the XML element
-
-