ca.spaz.cron.user.impl
Class CRONUser.UserPropertyValidator

java.lang.Object
  extended by ca.spaz.cron.config.AbstractRegexKeyValidator
      extended by ca.spaz.cron.user.impl.CRONUser.UserPropertyValidator
All Implemented Interfaces:
PropertyValidator
Enclosing class:
CRONUser

public static class CRONUser.UserPropertyValidator
extends AbstractRegexKeyValidator

A simple validator for user properties.

Author:
Chris Rose

Constructor Summary
CRONUser.UserPropertyValidator()
           
 
Method Summary
protected  boolean doIsValid(java.lang.String key, java.lang.String value)
          This method will be called only in the case where the pattern matches.
protected  java.lang.String getExpression()
          Get the regular expression to match the key on.
 
Methods inherited from class ca.spaz.cron.config.AbstractRegexKeyValidator
getMatcher, isValid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CRONUser.UserPropertyValidator

public CRONUser.UserPropertyValidator()
Method Detail

doIsValid

protected boolean doIsValid(java.lang.String key,
                            java.lang.String value)
Description copied from class: AbstractRegexKeyValidator
This method will be called only in the case where the pattern matches. This can be assumed to be a precondition of the method call.

Specified by:
doIsValid in class AbstractRegexKeyValidator
Parameters:
key - The matching key.
value - The value being checked.
Returns:
true if value is a valid value for key, false otherwise.

getExpression

protected java.lang.String getExpression()
Description copied from class: AbstractRegexKeyValidator
Get the regular expression to match the key on.

Specified by:
getExpression in class AbstractRegexKeyValidator
Returns:
a string representation of a regular expression.


Copyright © 2005 Spaz. All Rights Reserved.