Class AlphaPatternConstraint
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.ValidCharactersPatternConstraint
org.kuali.rice.krad.datadictionary.validation.constraint.AllowCharacterConstraint
org.kuali.rice.krad.datadictionary.validation.constraint.AlphaPatternConstraint
- All Implemented Interfaces:
Serializable,Cloneable,Copyable,DictionaryBean,Constraint
Pattern for matching alpha characters
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
- See Also:
-
Field Summary
FieldsFields inherited from class org.kuali.rice.krad.datadictionary.validation.constraint.AllowCharacterConstraint
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, omitNewlineFields 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 TypeMethodDescriptionA message key is auto generated for this bean if none is set.protected StringThis 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)booleanbooleanvoidsetLowerCase(boolean lowerCase) Only allow lowerCase characters.voidsetUpperCase(boolean upperCase) Only allow upperCase characters.Methods inherited from class org.kuali.rice.krad.datadictionary.validation.constraint.AllowCharacterConstraint
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, setOmitNewlineMethods inherited from class org.kuali.rice.krad.datadictionary.validation.constraint.ValidCharactersPatternConstraint
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, 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
-
lowerCase
protected boolean lowerCase -
upperCase
protected boolean upperCase
-
-
Constructor Details
-
AlphaPatternConstraint
public AlphaPatternConstraint()
-
-
Method Details
-
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)- Specified by:
getRegexStringin classValidCharactersPatternConstraint- Returns:
- regular expression
-
getMessageKey
A message key is auto generated for this bean if none is set. This generated message can be overridden through setMessageKey, but the generated message should cover most cases.- Overrides:
getMessageKeyin classBaseConstraint- Returns:
- String message key
- See Also:
-
isLowerCase
public boolean isLowerCase()- Returns:
- the lowerCase
-
setLowerCase
public void setLowerCase(boolean lowerCase) Only allow lowerCase characters. DO NOT use with upperCase option, no flags set for case means both upper and lower case are allowed.- Parameters:
lowerCase- the lowerCase to set
-
isUpperCase
public boolean isUpperCase() -
setUpperCase
public void setUpperCase(boolean upperCase) Only allow upperCase characters. DO NOT use with lowerCase option, no flags set for case means both upper and lower case are allowed.- Parameters:
upperCase- the lowerCase to set
-