public abstract class AllowCharacterConstraint extends ValidCharactersPatternConstraint
Modifier and Type | Field and Description |
---|---|
protected boolean |
allowAll |
protected boolean |
allowAmpersand |
protected boolean |
allowApostrophe |
protected boolean |
allowAsterisk |
protected boolean |
allowAtSign |
protected boolean |
allowBackslash |
protected boolean |
allowBrackets |
protected boolean |
allowColon |
protected boolean |
allowComma |
protected boolean |
allowCurlyBraces |
protected boolean |
allowDash |
protected boolean |
allowDollar |
protected boolean |
allowDoubleQuote |
protected boolean |
allowEquals |
protected boolean |
allowExclaimation |
protected boolean |
allowForwardSlash |
protected boolean |
allowGreaterThan |
protected boolean |
allowLessThan |
protected boolean |
allowParenthesis |
protected boolean |
allowPercent |
protected boolean |
allowPeriod |
protected boolean |
allowPlus |
protected boolean |
allowPound |
protected boolean |
allowQuestionMark |
protected boolean |
allowSemiColon |
protected boolean |
allowUnderscore |
protected boolean |
allowWhitespace |
protected boolean |
omitNewline |
value
applyClientSide, constraintStateOverrides, messageComponentCode, messageKey, messageNamespaceCode, states, validationMessageParams
componentCode, namespaceCode
Constructor and Description |
---|
AllowCharacterConstraint() |
Modifier and Type | Method and Description |
---|---|
protected String |
getAllowedCharacterRegex()
This method returns the allowed set of characters allowed by this constraint, based on the
flags set.
|
List<String> |
getValidationMessageParams()
Generates a comma separated string of the allowed set of characters, for the {0} parameter to
be used within its validation message
|
boolean |
isAllowAll()
If true, this constraint will allow all symbols that have flags for them.
|
boolean |
isAllowAmpersand() |
boolean |
isAllowApostrophe() |
boolean |
isAllowAsterisk() |
boolean |
isAllowAtSign() |
boolean |
isAllowBackslash() |
boolean |
isAllowBrackets() |
boolean |
isAllowColon() |
boolean |
isAllowComma() |
boolean |
isAllowCurlyBraces() |
boolean |
isAllowDash() |
boolean |
isAllowDollar() |
boolean |
isAllowDoubleQuote() |
boolean |
isAllowEquals() |
boolean |
isAllowExclaimation() |
boolean |
isAllowForwardSlash() |
boolean |
isAllowGreaterThan() |
boolean |
isAllowLessThan() |
boolean |
isAllowParenthesis() |
boolean |
isAllowPercent() |
boolean |
isAllowPeriod() |
boolean |
isAllowPlus() |
boolean |
isAllowPound() |
boolean |
isAllowQuestionMark() |
boolean |
isAllowSemiColon() |
boolean |
isAllowUnderscore() |
boolean |
isAllowWhitespace() |
boolean |
isOmitNewline() |
void |
setAllowAll(boolean allowAll) |
void |
setAllowAmpersand(boolean allowAmpersand) |
void |
setAllowApostrophe(boolean allowApostrophe) |
void |
setAllowAsterisk(boolean allowAsterisk) |
void |
setAllowAtSign(boolean allowAtSign) |
void |
setAllowBackslash(boolean allowBackslash) |
void |
setAllowBrackets(boolean allowBrackets) |
void |
setAllowColon(boolean allowColon) |
void |
setAllowComma(boolean allowComma) |
void |
setAllowCurlyBraces(boolean allowCurlyBraces) |
void |
setAllowDash(boolean allowDash) |
void |
setAllowDollar(boolean allowDollar) |
void |
setAllowDoubleQuote(boolean allowDoubleQuote) |
void |
setAllowEquals(boolean allowEquals) |
void |
setAllowExclaimation(boolean allowExclaimation) |
void |
setAllowForwardSlash(boolean allowForwardSlash) |
void |
setAllowGreaterThan(boolean allowGreaterThan) |
void |
setAllowLessThan(boolean allowLessThan) |
void |
setAllowParenthesis(boolean allowParenthesis) |
void |
setAllowPercent(boolean allowPercent) |
void |
setAllowPeriod(boolean allowPeriod) |
void |
setAllowPlus(boolean allowPlus) |
void |
setAllowPound(boolean allowPound) |
void |
setAllowQuestionMark(boolean allowQuestionMark) |
void |
setAllowSemiColon(boolean allowSemiColon) |
void |
setAllowUnderscore(boolean allowUnderscore) |
void |
setAllowWhitespace(boolean allowWhitespace) |
void |
setOmitNewline(boolean omitNewline)
When set to true, omit new line characters from the set of valid characters.
|
getRegexString, getValue, setValue
completeValidation
getApplyClientSide, getConstraintStateOverrides, getMessageComponentCode, getMessageKey, getMessageNamespaceCode, getStates, getValidationMessageParamsArray, setApplyClientSide, setConstraintStateOverrides, setMessageComponentCode, setMessageKey, setMessageNamespaceCode, setStates, setValidationMessageParams
clone, copy, dataDictionaryPostProcessing, getComponentCode, getNamespaceCode, setComponentCode, setNamespaceCode
protected boolean allowWhitespace
protected boolean omitNewline
protected boolean allowUnderscore
protected boolean allowPeriod
protected boolean allowParenthesis
protected boolean allowDollar
protected boolean allowForwardSlash
protected boolean allowDoubleQuote
protected boolean allowApostrophe
protected boolean allowComma
protected boolean allowColon
protected boolean allowSemiColon
protected boolean allowQuestionMark
protected boolean allowExclaimation
protected boolean allowDash
protected boolean allowPlus
protected boolean allowEquals
protected boolean allowAsterisk
protected boolean allowAtSign
protected boolean allowPercent
protected boolean allowPound
protected boolean allowGreaterThan
protected boolean allowLessThan
protected boolean allowBrackets
protected boolean allowAmpersand
protected boolean allowCurlyBraces
protected boolean allowBackslash
protected boolean allowAll
public AllowCharacterConstraint()
public boolean isAllowWhitespace()
public void setAllowWhitespace(boolean allowWhitespace)
allowWhitespace
- the allowWhitespace to setpublic boolean isAllowUnderscore()
public void setAllowUnderscore(boolean allowUnderscore)
allowUnderscore
- the allowUnderscore to setpublic boolean isAllowPeriod()
public void setAllowPeriod(boolean allowPeriod)
allowPeriod
- the allowPeriod to setpublic boolean isAllowParenthesis()
public void setAllowParenthesis(boolean allowParenthesis)
allowParenthesis
- the allowParenthesis to setpublic boolean isAllowDollar()
public void setAllowDollar(boolean allowDollar)
allowDollar
- the allowDollar to setpublic boolean isAllowForwardSlash()
public void setAllowForwardSlash(boolean allowForwardSlash)
allowForwardSlash
- the allowForwardSlash to setpublic boolean isAllowDoubleQuote()
public void setAllowDoubleQuote(boolean allowDoubleQuote)
allowDoubleQuote
- the allowDoubleQuote to setpublic boolean isAllowApostrophe()
public void setAllowApostrophe(boolean allowApostrophe)
allowApostrophe
- the allowApostrophe to setpublic boolean isAllowComma()
public void setAllowComma(boolean allowComma)
allowComma
- the allowComma to setpublic boolean isAllowColon()
public void setAllowColon(boolean allowColon)
allowColon
- the allowColon to setpublic boolean isAllowSemiColon()
public void setAllowSemiColon(boolean allowSemiColon)
allowSemiColon
- the allowSemiColon to setpublic boolean isAllowQuestionMark()
public void setAllowQuestionMark(boolean allowQuestionMark)
allowQuestionMark
- the allowQuestionMark to setpublic boolean isAllowExclaimation()
public void setAllowExclaimation(boolean allowExclaimation)
allowExclaimation
- the allowExclaimation to setpublic boolean isAllowDash()
public void setAllowDash(boolean allowDash)
allowDash
- the allowDash to setpublic boolean isAllowPlus()
public void setAllowPlus(boolean allowPlus)
allowPlus
- the allowPlus to setpublic boolean isAllowEquals()
public void setAllowEquals(boolean allowEquals)
allowEquals
- the allowEquals to setpublic boolean isAllowAsterisk()
public void setAllowAsterisk(boolean allowAsterisk)
allowAsterisk
- the allowAsterisk to setpublic boolean isAllowAtSign()
public void setAllowAtSign(boolean allowAtSign)
allowAtSign
- the allowAtSign to setpublic boolean isAllowPercent()
public void setAllowPercent(boolean allowPercent)
allowPercent
- the allowPercent to setpublic boolean isAllowPound()
public void setAllowPound(boolean allowPound)
allowPound
- the allowPound to setpublic boolean isAllowGreaterThan()
public void setAllowGreaterThan(boolean allowGreaterThan)
public boolean isAllowLessThan()
public void setAllowLessThan(boolean allowLessThan)
public boolean isAllowBrackets()
public void setAllowBrackets(boolean allowBrackets)
public boolean isAllowAmpersand()
public void setAllowAmpersand(boolean allowAmpersand)
public boolean isAllowCurlyBraces()
public void setAllowCurlyBraces(boolean allowCurlyBraces)
public boolean isAllowBackslash()
public void setAllowBackslash(boolean allowBackslash)
public boolean isAllowAll()
public void setAllowAll(boolean allowAll)
allowAll
- the allowAll to setpublic boolean isOmitNewline()
public void setOmitNewline(boolean omitNewline)
omitNewline
- protected String getAllowedCharacterRegex()
public List<String> getValidationMessageParams()
getValidationMessageParams
in class BaseConstraint
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.