public class ConfigurationBasedRegexPatternConstraint extends ValidDataPatternConstraint
Modifier and Type | Field and Description |
---|---|
protected String |
patternTypeKey |
value
applyClientSide, constraintStateOverrides, messageComponentCode, messageKey, messageNamespaceCode, states, validationMessageParams
componentCode, namespaceCode
Constructor and Description |
---|
ConfigurationBasedRegexPatternConstraint() |
Modifier and Type | Method and Description |
---|---|
String |
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
|
String |
getPatternTypeKey()
Message key used to identify the validation pattern
|
protected String |
getRegexString()
Uses the key returned by
getPatternTypeKey() to fetch the
validationPattern's regex string from the ConfigurationService which should not include
the start(^) and end($) symbols |
void |
setPatternTypeKey(String patternTypeKey)
Setter for the pattern message key
|
getValue, setValue
completeValidation
getApplyClientSide, getConstraintStateOverrides, getMessageComponentCode, getMessageNamespaceCode, getStates, getValidationMessageParams, getValidationMessageParamsArray, setApplyClientSide, setConstraintStateOverrides, setMessageComponentCode, setMessageKey, setMessageNamespaceCode, setStates, setValidationMessageParams
clone, copy, dataDictionaryPostProcessing, getComponentCode, getNamespaceCode, setComponentCode, setNamespaceCode
protected String patternTypeKey
public ConfigurationBasedRegexPatternConstraint()
public String getPatternTypeKey()
public void setPatternTypeKey(String patternTypeKey)
patternTypeKey
- the patternTypeKey to setpublic String getMessageKey()
getMessageKey
in class BaseConstraint
BaseConstraint.getMessageKey()
protected String getRegexString()
getPatternTypeKey()
to fetch the
validationPattern's regex string from the ConfigurationService which should not include
the start(^) and end($) symbolsgetRegexString
in class ValidDataPatternConstraint
Copyright © 2005–2014 The Kuali Foundation. All rights reserved.