public class AlphaPatternConstraint 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, labelKey
Constructor and Description |
---|
AlphaPatternConstraint() |
Modifier and Type | Method and Description |
---|---|
String |
getLabelKey()
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
getApplyClientSide, getValidationMessageParamsArray, setApplyClientSide, setLabelKey, setValidationMessageParams
public AlphaPatternConstraint()
protected String getRegexString()
ValidCharactersPatternConstraint
getRegexString
in class ValidCharactersPatternConstraint
ValidationPattern.getRegexString()
public String getLabelKey()
getLabelKey
in class BaseConstraint
BaseConstraint.getLabelKey()
public boolean isLowerCase()
public void setLowerCase(boolean lowerCase)
lowerCase
- the lowerCase to setpublic boolean isUpperCase()
public void setUpperCase(boolean upperCase)
lowerCase
- the lowerCase to setCopyright © 2005–2016 The Kuali Foundation. All rights reserved.