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

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
All Implemented Interfaces:
Serializable, Constraint
Direct Known Subclasses:
ConfigurationBasedRegexPatternConstraint, FixedPointPatternConstraint

public abstract class ValidDataPatternConstraint
extends ValidCharactersConstraint

Class used to

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
ValidDataPatternConstraint()
           
 
Method Summary
 String getLabelKey()
          This overridden method ...
 String getPatternTypeKey()
          the key used to identify the validation pattern
protected abstract  String getRegexString()
          This method returns a string representing a regex with characters to match, this string should not include the start(^) and end($) symbols
 String getValue()
          The Java based regex for valid characters This value should include the ^ and $ symbols if needed
 void setPatternTypeKey(String patternTypeKey)
          the key used to identify the validation pattern
 void setValue(String value)
          Warning: This value should NOT be set on this class as the value is built dynamically from the flags set on the constraint - if this value IS set it will override any automatic generation and only use that which was set through this method for server side validation
 
Methods inherited from class org.kuali.rice.krad.datadictionary.validation.constraint.BaseConstraint
getApplyClientSide, setApplyClientSide, setLabelKey
 
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

ValidDataPatternConstraint

public ValidDataPatternConstraint()
Method Detail

setValue

public void setValue(String value)
Warning: This value should NOT be set on this class as the value is built dynamically from the flags set on the constraint - if this value IS set it will override any automatic generation and only use that which was set through this method for server side validation

Overrides:
setValue in class ValidCharactersConstraint
Parameters:
value - the value to set
See Also:
ValidCharactersConstraint.setValue(java.lang.String)

getValue

public String getValue()
Description copied from class: ValidCharactersConstraint
The Java based regex for valid characters This value should include the ^ and $ symbols if needed

Overrides:
getValue in class ValidCharactersConstraint
Returns:
the value
See Also:
ValidCharactersConstraint.getValue()

getLabelKey

public String getLabelKey()
This overridden method ...

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

getRegexString

protected abstract String getRegexString()
This method returns a string representing a regex with characters to match, this string should not include the start(^) and end($) symbols


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


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