org.kuali.rice.krad.datadictionary.validation.constraint
Class ValidCharactersConstraint
java.lang.Object
org.kuali.rice.krad.datadictionary.validation.constraint.BaseConstraint
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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
value
protected String value
ValidCharactersConstraint
public ValidCharactersConstraint()
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-2014 The Kuali Foundation. All Rights Reserved.