public class FixedPointPatternConstraint extends ValidDataPatternConstraint
Only allows a numeric value where the precision property represents the maximum number of total numbers allowed, and scale represents the minimum numbers after the decimal point. The decimal places are implied to be 0 if not included and still count towards total numbers allowed.
Modifier and Type | Field and Description |
---|---|
protected boolean |
allowNegative |
protected int |
precision |
protected int |
scale |
value
applyClientSide, constraintStateOverrides, messageComponentCode, messageKey, messageNamespaceCode, states, validationMessageParams
componentCode, namespaceCode
Constructor and Description |
---|
FixedPointPatternConstraint() |
Modifier and Type | Method and Description |
---|---|
void |
completeValidation(ValidationTrace tracer)
Validates different requirements of component compiling a series of reports detailing information on errors
found in the component.
|
int |
getPrecision() |
protected String |
getRegexString()
Overriding retrieval of
|
int |
getScale() |
List<String> |
getValidationMessageParams()
This overridden method ...
|
boolean |
isAllowNegative() |
void |
setAllowNegative(boolean allowNegative) |
void |
setPrecision(int precision) |
void |
setScale(int scale) |
getValue, setValue
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 int precision
protected int scale
public FixedPointPatternConstraint()
protected String getRegexString()
getRegexString
in class ValidDataPatternConstraint
ValidCharactersPatternConstraint.getRegexString()
public boolean isAllowNegative()
public void setAllowNegative(boolean allowNegative)
allowNegative
- the allowNegative to setpublic int getPrecision()
public void setPrecision(int precision)
precision
- the precision to setpublic int getScale()
public void setScale(int scale)
scale
- the scale to setpublic List<String> getValidationMessageParams()
getValidationMessageParams
in class BaseConstraint
BaseConstraint.getValidationMessageParams()
public void completeValidation(ValidationTrace tracer)
completeValidation
in class ValidCharactersConstraint
tracer
- Record of component's locationCopyright © 2005–2016 The Kuali Foundation. All rights reserved.