public class AlphaNumericPatternConstraint extends AllowCharacterConstraint
Modifier and Type | Field and Description |
---|---|
protected boolean |
lowerCase |
protected boolean |
upperCase |
allowAll, allowAmpersand, allowApostrophe, allowAsterisk, allowAtSign, allowBackslash, allowBrackets, allowColon, allowComma, allowCurlyBraces, allowDash, allowDollar, allowDoubleQuote, allowEquals, allowExclaimation, allowForwardSlash, allowGreaterThan, allowLessThan, allowParenthesis, allowPercent, allowPeriod, allowPlus, allowPound, allowQuestionMark, allowSemiColon, allowUnderscore, allowWhitespace, omitNewline
value
applyClientSide, constraintStateOverrides, messageComponentCode, messageKey, messageNamespaceCode, states, validationMessageParams
componentCode, namespaceCode
Constructor and Description |
---|
AlphaNumericPatternConstraint() |
Modifier and Type | Method and Description |
---|---|
String |
getMessageKey()
A label key is auto generated for this bean if none is set.
|
protected String |
getRegexString()
This method returns a string representing a regex with characters to match, this string
should not include the start(^) and end($) symbols or any length related symbols (*, {0,},
etc)
|
boolean |
isLowerCase() |
boolean |
isUpperCase() |
void |
setLowerCase(boolean lowerCase)
Only allow lowerCase characters.
|
void |
setUpperCase(boolean upperCase)
Only allow upperCase characters.
|
getAllowedCharacterRegex, getValidationMessageParams, isAllowAll, isAllowAmpersand, isAllowApostrophe, isAllowAsterisk, isAllowAtSign, isAllowBackslash, isAllowBrackets, isAllowColon, isAllowComma, isAllowCurlyBraces, isAllowDash, isAllowDollar, isAllowDoubleQuote, isAllowEquals, isAllowExclaimation, isAllowForwardSlash, isAllowGreaterThan, isAllowLessThan, isAllowParenthesis, isAllowPercent, isAllowPeriod, isAllowPlus, isAllowPound, isAllowQuestionMark, isAllowSemiColon, isAllowUnderscore, isAllowWhitespace, isOmitNewline, setAllowAll, setAllowAmpersand, setAllowApostrophe, setAllowAsterisk, setAllowAtSign, setAllowBackslash, setAllowBrackets, setAllowColon, setAllowComma, setAllowCurlyBraces, setAllowDash, setAllowDollar, setAllowDoubleQuote, setAllowEquals, setAllowExclaimation, setAllowForwardSlash, setAllowGreaterThan, setAllowLessThan, setAllowParenthesis, setAllowPercent, setAllowPeriod, setAllowPlus, setAllowPound, setAllowQuestionMark, setAllowSemiColon, setAllowUnderscore, setAllowWhitespace, setOmitNewline
getValue, setValue
completeValidation
getApplyClientSide, getConstraintStateOverrides, getMessageComponentCode, getMessageNamespaceCode, getStates, getValidationMessageParamsArray, setApplyClientSide, setConstraintStateOverrides, setMessageComponentCode, setMessageKey, setMessageNamespaceCode, setStates, setValidationMessageParams
clone, dataDictionaryPostProcessing, getComponentCode, getNamespaceCode, setComponentCode, setNamespaceCode
public AlphaNumericPatternConstraint()
public String getMessageKey()
getMessageKey
in class BaseConstraint
BaseConstraint.getMessageKey()
protected String getRegexString()
ValidCharactersPatternConstraint
getRegexString
in class ValidCharactersPatternConstraint
ValidCharactersPatternConstraint.getRegexString()
public boolean isLowerCase()
public void setLowerCase(boolean lowerCase)
lowerCase
- the lowerCase to setpublic boolean isUpperCase()
public void setUpperCase(boolean upperCase)
upperCase
- the lowerCase to setCopyright © 2005–2014 The Kuali Foundation. All rights reserved.