org.faktorips.runtime.internal
Class ValidationRuleConfiguration

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

public class ValidationRuleConfiguration
extends Object

Class representing a validation rule configuration at runtime.

Author:
Stefan Widmaier, FaktorZehn AG

Constructor Summary
ValidationRuleConfiguration(Element element)
          Creates a ValidationRuleConfiguration and initializes it with the data provided by the given element.
ValidationRuleConfiguration(String name, boolean active)
          Creates a ValidationRuleConfiguration with the given name and activation state.
 
Method Summary
 String getRuleName()
           
 boolean isActive()
          Flag indicating whether the validation rule is configured as active.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 Detail

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.


Copyright © 2015. All rights reserved.