org.kuali.rice.krad.datadictionary.validation.constraint
Class ConfigurationBasedRegexPatternConstraint

java.lang.Object
  extended by org.kuali.rice.krad.datadictionary.validation.constraint.BaseConstraint
      extended by org.kuali.rice.krad.datadictionary.validation.constraint.ValidCharactersConstraint
          extended by org.kuali.rice.krad.datadictionary.validation.constraint.ValidDataPatternConstraint
              extended by org.kuali.rice.krad.datadictionary.validation.constraint.ConfigurationBasedRegexPatternConstraint
All Implemented Interfaces:
Serializable, Constraint
Direct Known Subclasses:
FloatingPointPatternConstraint

public class ConfigurationBasedRegexPatternConstraint
extends ValidDataPatternConstraint

Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
Serialized Form

Field Summary
protected  String patternTypeKey
          the key used to identify the validation pattern
 
Fields inherited from class org.kuali.rice.krad.datadictionary.validation.constraint.ValidCharactersConstraint
value
 
Fields inherited from class org.kuali.rice.krad.datadictionary.validation.constraint.BaseConstraint
applyClientSide, labelKey
 
Constructor Summary
ConfigurationBasedRegexPatternConstraint()
           
 
Method Summary
 String getLabelKey()
          This overridden method ...
 String getPatternTypeKey()
          the key used to identify the validation pattern
protected  String getRegexString()
          This method implementation uses the key returned by #getPatternTypePropertyString() to fetch the validationPattern's regex string from the ConfigurationService which should not include the start(^) and end($) symbols
 void setPatternTypeKey(String patternTypeKey)
          the key used to identify the validation pattern
 
Methods inherited from class org.kuali.rice.krad.datadictionary.validation.constraint.ValidDataPatternConstraint
getValue, setValue
 
Methods inherited from class org.kuali.rice.krad.datadictionary.validation.constraint.BaseConstraint
getApplyClientSide, getValidationMessageParams, setApplyClientSide, setLabelKey, setValidationMessageParams
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

patternTypeKey

protected String patternTypeKey
the key used to identify the validation pattern

Constructor Detail

ConfigurationBasedRegexPatternConstraint

public ConfigurationBasedRegexPatternConstraint()
Method Detail

getPatternTypeKey

public String getPatternTypeKey()
the key used to identify the validation pattern

Returns:
the patternTypeKey

setPatternTypeKey

public void setPatternTypeKey(String patternTypeKey)
the key used to identify the validation pattern

Parameters:
patternTypeKey - the patternTypeKey to set

getLabelKey

public String getLabelKey()
This overridden method ...

Overrides:
getLabelKey in class BaseConstraint
Returns:
See Also:
BaseConstraint.getLabelKey()

getRegexString

protected String getRegexString()
This method implementation uses the key returned by #getPatternTypePropertyString() to fetch the validationPattern's regex string from the ConfigurationService which should not include the start(^) and end($) symbols

Specified by:
getRegexString in class ValidDataPatternConstraint


Copyright © 2005-2011 The Kuali Foundation. All Rights Reserved.