org.kuali.rice.krad.datadictionary.validation.constraint
Class FixedPointPatternConstraint
java.lang.Object
org.kuali.rice.krad.datadictionary.DictionaryBeanBase
org.kuali.rice.krad.datadictionary.validation.constraint.BaseConstraint
org.kuali.rice.krad.datadictionary.validation.constraint.ValidCharactersConstraint
org.kuali.rice.krad.datadictionary.validation.constraint.ValidDataPatternConstraint
org.kuali.rice.krad.datadictionary.validation.constraint.FixedPointPatternConstraint
- All Implemented Interfaces:
- Serializable, Cloneable, Copyable, DictionaryBean, Constraint
public class FixedPointPatternConstraint
- extends ValidDataPatternConstraint
Validation pattern for matching fixed point numbers, optionally matching negative numbers
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.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
- See Also:
- Serialized Form
Methods inherited from class org.kuali.rice.krad.datadictionary.validation.constraint.BaseConstraint |
getApplyClientSide, getConstraintStateOverrides, getMessageComponentCode, getMessageKey, getMessageNamespaceCode, getStates, getValidationMessageParamsArray, setApplyClientSide, setConstraintStateOverrides, setMessageComponentCode, setMessageKey, setMessageNamespaceCode, setStates, setValidationMessageParams |
allowNegative
protected boolean allowNegative
precision
protected int precision
scale
protected int scale
FixedPointPatternConstraint
public FixedPointPatternConstraint()
getRegexString
protected String getRegexString()
- Overriding retrieval of
- Specified by:
getRegexString
in class ValidDataPatternConstraint
- Returns:
- regular expression
- See Also:
ValidCharactersPatternConstraint.getRegexString()
isAllowNegative
public boolean isAllowNegative()
- Returns:
- the allowNegative
setAllowNegative
public void setAllowNegative(boolean allowNegative)
- Parameters:
allowNegative
- the allowNegative to set
getPrecision
public int getPrecision()
- Returns:
- the precision
setPrecision
public void setPrecision(int precision)
- Parameters:
precision
- the precision to set
getScale
public int getScale()
- Returns:
- the scale
setScale
public void setScale(int scale)
- Parameters:
scale
- the scale to set
getValidationMessageParams
public List<String> getValidationMessageParams()
- This overridden method ...
- Overrides:
getValidationMessageParams
in class BaseConstraint
- Returns:
- the validationMessageParams
- See Also:
BaseConstraint.getValidationMessageParams()
completeValidation
public void completeValidation(ValidationTrace tracer)
- Validates different requirements of component compiling a series of reports detailing information on errors
found in the component. Used by the RiceDictionaryValidator.
- Overrides:
completeValidation
in class ValidCharactersConstraint
- Parameters:
tracer
- Record of component's location
Copyright © 2005–2014 The Kuali Foundation. All rights reserved.