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

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

public class ValidCharactersConstraint
extends BaseConstraint

This is a constraint that limits attribute values to some subset of valid characters or to match a particular regular expression. For example: - To limit to both upper and lower-case letters, value can be set to "[A-Za-z]*" - To limit to any character except carriage returns and line feeds, value can be set to "[^\n\r]*"

Since:
1.1
Author:
Kuali Student Team
See Also:
Serialized Form

Field Summary
protected  String value
           
 
Fields inherited from class org.kuali.rice.krad.datadictionary.validation.constraint.BaseConstraint
applyClientSide, labelKey
 
Constructor Summary
ValidCharactersConstraint()
           
 
Method Summary
 String getValue()
          The Java based regex for valid characters This value should include the ^ and $ symbols if needed
 void setValue(String value)
           
 
Methods inherited from class org.kuali.rice.krad.datadictionary.validation.constraint.BaseConstraint
getApplyClientSide, getLabelKey, getValidationMessageParams, setApplyClientSide, setLabelKey, setValidationMessageParams
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

value

protected String value
Constructor Detail

ValidCharactersConstraint

public ValidCharactersConstraint()
Method Detail

getValue

public String getValue()
The Java based regex for valid characters This value should include the ^ and $ symbols if needed

Returns:
the value

setValue

public void setValue(String value)
Parameters:
value - the value to set


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