Class ValidCharactersConstraint
java.lang.Object
org.kuali.rice.krad.datadictionary.DictionaryBeanBase
org.kuali.rice.krad.datadictionary.validation.constraint.BaseConstraint
org.kuali.rice.krad.datadictionary.validation.constraint.ValidCharactersConstraint
- All Implemented Interfaces:
Serializable,Cloneable,Copyable,DictionaryBean,Constraint
- Direct Known Subclasses:
ValidCharactersPatternConstraint,ValidDataPatternConstraint
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:
-
Field Summary
FieldsFields inherited from class org.kuali.rice.krad.datadictionary.validation.constraint.BaseConstraint
applyClientSide, constraintStateOverrides, messageComponentCode, messageKey, messageNamespaceCode, states, validationMessageParamsFields inherited from class org.kuali.rice.krad.datadictionary.DictionaryBeanBase
componentCode, namespaceCode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcompleteValidation(ValidationTrace tracer) Validates different requirements of component compiling a series of reports detailing information on errors found in the component.getValue()The Java based regex for valid characters This value should include the ^ and $ symbols if neededvoidMethods 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, setValidationMessageParamsMethods inherited from class org.kuali.rice.krad.datadictionary.DictionaryBeanBase
clone, copy, dataDictionaryPostProcessing, getComponentCode, getNamespaceCode, setComponentCode, setNamespaceCode
-
Field Details
-
value
-
-
Constructor Details
-
ValidCharactersConstraint
public ValidCharactersConstraint()
-
-
Method Details
-
getValue
The Java based regex for valid characters This value should include the ^ and $ symbols if needed- Returns:
- the value
-
setValue
- Parameters:
value- the value to set
-
completeValidation
Validates different requirements of component compiling a series of reports detailing information on errors found in the component. Used by the RiceDictionaryValidator.- Overrides:
completeValidationin classBaseConstraint- Parameters:
tracer- Record of component's location
-