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]*"

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

Field Summary
protected  String value
           
 
Fields inherited from class org.kuali.rice.krad.datadictionary.validation.constraint.BaseConstraint
applyClientSide, constraintStateOverrides, messageComponentCode, messageKey, messageNamespaceCode, states, validationMessageParams
 
Constructor Summary
ValidCharactersConstraint()
           
 
Method Summary
 void completeValidation(ValidationTrace tracer)
          Validates different requirements of component compiling a series of reports detailing information on errors found in the component.
 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, getConstraintStateOverrides, getMessageComponentCode, getMessageKey, getMessageNamespaceCode, getStates, getValidationMessageParams, getValidationMessageParamsArray, setApplyClientSide, setConstraintStateOverrides, setMessageComponentCode, setMessageKey, setMessageNamespaceCode, setStates, 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

completeValidation

public void completeValidation(ValidationTrace tracer)
Validates different requirements of component compiling a series of reports detailing information on errors found in the component. Used by the RiceDictionaryValidator.

Overrides:
completeValidation in class BaseConstraint
Parameters:
tracer - Record of component's location


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