EchoPoint
1.0

echopoint.validation
Interface ValidationMutableRuleSet

All Superinterfaces:
java.io.Serializable, ValidationRuleSet
All Known Implementing Classes:
SimpleRuleSet

public interface ValidationMutableRuleSet
extends ValidationRuleSet

ValidationMutableRuleSet is a ValidationRuleSet that allows you to dynamiclly add and remove ValidationRule objects.


Field Summary
 
Fields inherited from interface echopoint.validation.ValidationRuleSet
RULE_ON_BLUR_RUN_AGGRESSIVE, RULE_ON_BLUR_RUN_ALL, RULE_ON_DEFAULT, RULE_ON_SUBMIT_RUN_ALL
 
Method Summary
 void add(int index, ValidationRule rule)
          Adds a rule to the rule set at the specified index
 void add(ValidationRule rule)
          Adds a rule to the end of the ruleset
 java.util.Iterator iterator()
          Returns an iterator that can iterate over the rules in the ruleset
 void remove(int index)
          Removes the rule at the specified index
 void remove(ValidationRule rule)
          Removes the specified rule
 int size()
          Returns the number of rules in the ruleset
 
Methods inherited from interface echopoint.validation.ValidationRuleSet
getClientResultDisplay, getName, getRules, getRunOptions
 

Method Detail

iterator

public java.util.Iterator iterator()
Returns an iterator that can iterate over the rules in the ruleset

Returns:
an iterator that can iterate over the rules in the ruleset

size

public int size()
Returns the number of rules in the ruleset

Returns:
the number of rules in the ruleset

add

public void add(ValidationRule rule)
Adds a rule to the end of the ruleset

Parameters:
rule - - the new rule to be added

add

public void add(int index,
                ValidationRule rule)
Adds a rule to the rule set at the specified index

Parameters:
index - - the index to add the rule at
rule - - the new ValidationRule

remove

public void remove(ValidationRule rule)
Removes the specified rule

Parameters:
rule - - the rule to rmeove

remove

public void remove(int index)
Removes the rule at the specified index

Parameters:
index - - the index of the rule to be removed

EchoPoint
1.0