Class FloatingPointPatternConstraint
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.ConfigurationBasedRegexPatternConstraint
org.kuali.rice.krad.datadictionary.validation.constraint.FloatingPointPatternConstraint
- All Implemented Interfaces:
Serializable,Cloneable,Copyable,DictionaryBean,Constraint
- Direct Known Subclasses:
CurrencyPatternConstraint
Validation pattern for matching floating point numbers, optionally matching negative numbers
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
- See Also:
-
Field Summary
FieldsFields inherited from class org.kuali.rice.krad.datadictionary.validation.constraint.ConfigurationBasedRegexPatternConstraint
patternTypeKeyFields inherited from class org.kuali.rice.krad.datadictionary.validation.constraint.ValidCharactersConstraint
valueFields inherited from class org.kuali.rice.krad.datadictionary.validation.constraint.BaseConstraint
applyClientSide, constraintStateOverrides, messageComponentCode, messageKey, messageNamespaceCode, states, validationMessageParamsFields inherited from class org.kuali.rice.krad.datadictionary.DictionaryBeanBase
componentCode, namespaceCode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringUses the key returned byConfigurationBasedRegexPatternConstraint.getPatternTypeKey()to fetch the validationPattern's regex string from the ConfigurationService which should not include the start(^) and end($) symbolsParameters to be used in the string retrieved by this constraint's messageKey, ordered by number of the parambooleanvoidsetAllowNegative(boolean allowNegative) Methods inherited from class org.kuali.rice.krad.datadictionary.validation.constraint.ConfigurationBasedRegexPatternConstraint
getMessageKey, getPatternTypeKey, setPatternTypeKeyMethods inherited from class org.kuali.rice.krad.datadictionary.validation.constraint.ValidDataPatternConstraint
getValue, setValueMethods inherited from class org.kuali.rice.krad.datadictionary.validation.constraint.ValidCharactersConstraint
completeValidationMethods inherited from class org.kuali.rice.krad.datadictionary.validation.constraint.BaseConstraint
getApplyClientSide, getConstraintStateOverrides, getMessageComponentCode, getMessageNamespaceCode, getStates, getValidationMessageParamsArray, setApplyClientSide, setConstraintStateOverrides, setMessageComponentCode, setMessageKey, setMessageNamespaceCode, setStates, setValidationMessageParamsMethods inherited from class org.kuali.rice.krad.datadictionary.DictionaryBeanBase
clone, copy, dataDictionaryPostProcessing, getComponentCode, getNamespaceCode, setComponentCode, setNamespaceCode
-
Field Details
-
allowNegative
protected boolean allowNegative
-
-
Constructor Details
-
FloatingPointPatternConstraint
public FloatingPointPatternConstraint()
-
-
Method Details
-
getRegexString
Description copied from class:ConfigurationBasedRegexPatternConstraintUses the key returned byConfigurationBasedRegexPatternConstraint.getPatternTypeKey()to fetch the validationPattern's regex string from the ConfigurationService which should not include the start(^) and end($) symbols- Overrides:
getRegexStringin classConfigurationBasedRegexPatternConstraint- Returns:
- String regex validation string
- See Also:
-
isAllowNegative
public boolean isAllowNegative()- Returns:
- the allowNegative
-
setAllowNegative
public void setAllowNegative(boolean allowNegative) - Parameters:
allowNegative- the allowNegative to set
-
getValidationMessageParams
Description copied from class:BaseConstraintParameters to be used in the string retrieved by this constraint's messageKey, ordered by number of the param- Overrides:
getValidationMessageParamsin classBaseConstraint- Returns:
- the validationMessageParams
- See Also:
-