Class IntegerPatternConstraint
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.IntegerPatternConstraint
- All Implemented Interfaces:
Serializable,Cloneable,Copyable,DictionaryBean,Constraint
TODO Administrator don't forget to fill this in.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected booleanprotected booleanFields 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 StringThis method returns a string representing a regex with characters to match, this string 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 parambooleanbooleanbooleanvoidsetAllowNegative(boolean allowNegative) voidsetOmitZero(boolean omitZero) When set to true, zero is not allowed in the set of allowed numbers.voidsetOnlyNegative(boolean onlyNegative) When set to true, only allows negative numbers (and zero if allowZero is still true)Methods 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, getMessageKey, 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 -
onlyNegative
protected boolean onlyNegative -
omitZero
protected boolean omitZero
-
-
Constructor Details
-
IntegerPatternConstraint
public IntegerPatternConstraint()
-
-
Method Details
-
getRegexString
Description copied from class:ValidDataPatternConstraintThis method returns a string representing a regex with characters to match, this string should not include the start(^) and end($) symbols- Specified by:
getRegexStringin classValidDataPatternConstraint- Returns:
- regular expression
- See Also:
-
isAllowNegative
public boolean isAllowNegative()- Returns:
- the allowNegative
-
setAllowNegative
public void setAllowNegative(boolean allowNegative) - Parameters:
allowNegative- the allowNegative to set
-
isOnlyNegative
public boolean isOnlyNegative() -
setOnlyNegative
public void setOnlyNegative(boolean onlyNegative) When set to true, only allows negative numbers (and zero if allowZero is still true)- Parameters:
onlyNegative-
-
isOmitZero
public boolean isOmitZero() -
setOmitZero
public void setOmitZero(boolean omitZero) When set to true, zero is not allowed in the set of allowed numbers.- Parameters:
omitZero-
-
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
-