org.springjutsu.validation.executors
Class RegexMatchRuleExecutor
java.lang.Object
org.springjutsu.validation.executors.ValidWhenEmptyRuleExecutor
org.springjutsu.validation.executors.RegexMatchRuleExecutor
- All Implemented Interfaces:
- RuleExecutor
- Direct Known Subclasses:
- AlphabeticRuleExecutor, AlphanumericRuleExecutor, EmailRuleExecutor, NumericRuleExecutor
public abstract class RegexMatchRuleExecutor
- extends ValidWhenEmptyRuleExecutor
Asserts a value is valid if it is empty, or matches a given regex.
- Author:
- Clark Duplichien
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RegexMatchRuleExecutor
public RegexMatchRuleExecutor()
doValidate
public boolean doValidate(Object model,
Object argument)
- Description copied from class:
ValidWhenEmptyRuleExecutor
- Implementors can use this to actually do validation.
- Specified by:
doValidate in class ValidWhenEmptyRuleExecutor
- Parameters:
model - Model to validateargument - Argument to the rule
- Returns:
- true if the rule passed.
getRegularExpression
public abstract String getRegularExpression()
Copyright © 2013 Spring Jutsu. All Rights Reserved.