public class IntegerPatternConstraint extends ValidDataPatternConstraint
Modifier and Type | Field and Description |
---|---|
protected boolean |
allowNegative |
protected boolean |
omitZero |
protected boolean |
onlyNegative |
value
applyClientSide, labelKey
Constructor and Description |
---|
IntegerPatternConstraint() |
Modifier and Type | Method and Description |
---|---|
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
|
List<String> |
getValidationMessageParams()
This overridden method ...
|
boolean |
isAllowNegative() |
boolean |
isOmitZero() |
boolean |
isOnlyNegative() |
void |
setAllowNegative(boolean allowNegative) |
void |
setOmitZero(boolean omitZero)
When set to true, zero is not allowed in the set of allowed numbers.
|
void |
setOnlyNegative(boolean onlyNegative)
When set to true, only allows negative numbers (and zero if allowZero is still true)
|
getValue, setValue
getApplyClientSide, getLabelKey, getValidationMessageParamsArray, setApplyClientSide, setLabelKey, setValidationMessageParams
protected boolean allowNegative
protected boolean onlyNegative
protected boolean omitZero
public IntegerPatternConstraint()
protected String getRegexString()
ValidDataPatternConstraint
getRegexString
in class ValidDataPatternConstraint
ValidCharactersPatternConstraint.getRegexString()
public boolean isAllowNegative()
public void setAllowNegative(boolean allowNegative)
allowNegative
- the allowNegative to setpublic boolean isOnlyNegative()
public void setOnlyNegative(boolean onlyNegative)
onlyNegative
- public boolean isOmitZero()
public void setOmitZero(boolean omitZero)
omitZero
- public List<String> getValidationMessageParams()
getValidationMessageParams
in class BaseConstraint
BaseConstraint.getValidationMessageParams()
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.