public class IntegerPatternConstraint extends ValidDataPatternConstraint
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
allowNegative |
protected boolean |
omitZero |
protected boolean |
onlyNegative |
valueapplyClientSide, constraintStateOverrides, messageComponentCode, messageKey, messageNamespaceCode, states, validationMessageParams| 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, setValuecompleteValidationgetApplyClientSide, getConstraintStateOverrides, getMessageComponentCode, getMessageKey, getMessageNamespaceCode, getStates, getValidationMessageParamsArray, setApplyClientSide, setConstraintStateOverrides, setMessageComponentCode, setMessageKey, setMessageNamespaceCode, setStates, setValidationMessageParamsprotected boolean allowNegative
protected boolean onlyNegative
protected boolean omitZero
public IntegerPatternConstraint()
protected String getRegexString()
ValidDataPatternConstraintgetRegexString in class ValidDataPatternConstraintValidCharactersPatternConstraint.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 BaseConstraintBaseConstraint.getValidationMessageParams()Copyright © 2005–2016 The Kuali Foundation. All rights reserved.