public class IntegerPatternConstraint extends ValidDataPatternConstraint
Modifier and Type | Field and Description |
---|---|
protected boolean |
allowNegative |
protected boolean |
omitZero |
protected boolean |
onlyNegative |
value
applyClientSide, constraintStateOverrides, messageComponentCode, messageKey, messageNamespaceCode, states, validationMessageParams
componentCode, namespaceCode
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
completeValidation
getApplyClientSide, getConstraintStateOverrides, getMessageComponentCode, getMessageKey, getMessageNamespaceCode, getStates, getValidationMessageParamsArray, setApplyClientSide, setConstraintStateOverrides, setMessageComponentCode, setMessageKey, setMessageNamespaceCode, setStates, setValidationMessageParams
clone, copy, dataDictionaryPostProcessing, getComponentCode, getNamespaceCode, setComponentCode, setNamespaceCode
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–2014 The Kuali Foundation. All rights reserved.