public class ConfigurationBasedRegexPatternConstraint extends ValidDataPatternConstraint
| Modifier and Type | Field and Description |
|---|---|
protected String |
patternTypeKey |
valueapplyClientSide, constraintStateOverrides, messageComponentCode, messageKey, messageNamespaceCode, states, validationMessageParamscomponentCode, 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, setValuecompleteValidationgetApplyClientSide, getConstraintStateOverrides, getMessageComponentCode, getMessageNamespaceCode, getStates, getValidationMessageParams, getValidationMessageParamsArray, setApplyClientSide, setConstraintStateOverrides, setMessageComponentCode, setMessageKey, setMessageNamespaceCode, setStates, setValidationMessageParamsclone, copy, dataDictionaryPostProcessing, getComponentCode, getNamespaceCode, setComponentCode, setNamespaceCodeprotected String patternTypeKey
public ConfigurationBasedRegexPatternConstraint()
public String getPatternTypeKey()
public void setPatternTypeKey(String patternTypeKey)
patternTypeKey - the patternTypeKey to setpublic String getMessageKey()
getMessageKey in class BaseConstraintBaseConstraint.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 ValidDataPatternConstraintCopyright © 2005–2014 The Kuali Foundation. All rights reserved.