Package org.apache.ofbiz.widget.model
Interface ModelConditionFactory
-
- All Known Implementing Classes:
AbstractModelCondition.DefaultConditionFactory
public interface ModelConditionFactory
A factory forCondition
instances.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ModelCondition
newInstance(ModelWidget modelWidget, org.w3c.dom.Element conditionElement)
Returns a newModelCondition
instance built fromconditionElement
.
-
-
-
Method Detail
-
newInstance
ModelCondition newInstance(ModelWidget modelWidget, org.w3c.dom.Element conditionElement)
Returns a newModelCondition
instance built fromconditionElement
.- Parameters:
modelWidget
- TheModelWidget
that contains theCondition
instance.conditionElement
- The XML element used to build theCondition
instance.- Returns:
- A new
ModelCondition
instance built fromconditionElement
. - Throws:
java.lang.IllegalArgumentException
- if no model was found for the XML element
-
-