Class ValidationRuleConfiguration

java.lang.Object
org.faktorips.runtime.internal.ValidationRuleConfiguration

public class ValidationRuleConfiguration extends Object
Class representing a validation rule configuration at runtime.
Author:
Stefan Widmaier, FaktorZehn AG
  • Constructor Details

    • ValidationRuleConfiguration

      public ValidationRuleConfiguration(String name, boolean active)
      Creates a ValidationRuleConfiguration with the given name and activation state.
      Parameters:
      name - the name of the configured rule.
      active - a flag indicating whether this rule is configured as active or not.
    • ValidationRuleConfiguration

      public ValidationRuleConfiguration(Element element)
      Creates a ValidationRuleConfiguration and initializes it with the data provided by the given element.
      Parameters:
      element - the XML element containing the new validation rule configuration's state
  • Method Details

    • getRuleName

      public String getRuleName()
      Returns:
      the name of the configured validation rule
    • isActive

      public boolean isActive()
      Flag indicating whether the validation rule is configured as active.
      Returns:
      true if the validation rule is configured as active, false otherwise.