Interface ModelWidgetCondition.ConditionFactory

All Known Implementing Classes:
ModelWidgetCondition.DefaultConditionFactory
Enclosing class:
ModelWidgetCondition

public static interface ModelWidgetCondition.ConditionFactory
A factory for Condition instances.
  • Method Details

    • newInstance

      ModelWidgetCondition.Condition newInstance(ModelWidget modelWidget, Element conditionElement)
      Returns a new Condition instance built from conditionElement.
      Parameters:
      modelWidget - The ModelWidget that contains the Condition instance.
      conditionElement - The XML element used to build the Condition instance.
      Returns:
      A new Condition instance built from conditionElement.
      Throws:
      IllegalArgumentException - if no model was found for the XML element