Class ValidationRuleConfiguration


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

      • ValidationRuleConfiguration

        public ValidationRuleConfiguration​(java.lang.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​(org.w3c.dom.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 Detail

      • getRuleName

        public java.lang.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.