Class ConfigurationBasedRegexPatternConstraint
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
org.kuali.rice.krad.datadictionary.validation.constraint.ValidDataPatternConstraint
org.kuali.rice.krad.datadictionary.validation.constraint.ConfigurationBasedRegexPatternConstraint
- All Implemented Interfaces:
Serializable,Cloneable,Copyable,DictionaryBean,Constraint
- Direct Known Subclasses:
FloatingPointPatternConstraint
ConfigurationBasedRegexPatternConstraint uses a patternTypeKey to get the regex used for validation by key from
the KualiConfigurationService
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
- See Also:
-
Field Summary
FieldsFields inherited from class org.kuali.rice.krad.datadictionary.validation.constraint.ValidCharactersConstraint
valueFields 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 TypeMethodDescriptionMessageKey in used in this class have the patternTypeKey appended to the VALIDATION_MSG_KEY_PREFIX by default, if it is not explicitly set to something elseMessage key used to identify the validation patternprotected StringUses the key returned bygetPatternTypeKey()to fetch the validationPattern's regex string from the ConfigurationService which should not include the start(^) and end($) symbolsvoidsetPatternTypeKey(String patternTypeKey) Setter for the pattern message keyMethods inherited from class org.kuali.rice.krad.datadictionary.validation.constraint.ValidDataPatternConstraint
getValue, setValueMethods inherited from class org.kuali.rice.krad.datadictionary.validation.constraint.ValidCharactersConstraint
completeValidationMethods inherited from class org.kuali.rice.krad.datadictionary.validation.constraint.BaseConstraint
getApplyClientSide, getConstraintStateOverrides, getMessageComponentCode, 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
-
patternTypeKey
-
-
Constructor Details
-
ConfigurationBasedRegexPatternConstraint
public ConfigurationBasedRegexPatternConstraint()
-
-
Method Details
-
getPatternTypeKey
Message key used to identify the validation pattern- Returns:
- the patternTypeKey
-
setPatternTypeKey
Setter for the pattern message key- Parameters:
patternTypeKey- the patternTypeKey to set
-
getMessageKey
MessageKey in used in this class have the patternTypeKey appended to the VALIDATION_MSG_KEY_PREFIX by default, if it is not explicitly set to something else- Overrides:
getMessageKeyin classBaseConstraint- Returns:
- String message key
- See Also:
-
getRegexString
Uses the key returned bygetPatternTypeKey()to fetch the validationPattern's regex string from the ConfigurationService which should not include the start(^) and end($) symbols- Specified by:
getRegexStringin classValidDataPatternConstraint- Returns:
- String regex validation string
-