org.kuali.rice.krad.datadictionary.validation.constraint
Class IntegerPatternConstraint

java.lang.Object
  extended by org.kuali.rice.krad.datadictionary.validation.constraint.BaseConstraint
      extended by org.kuali.rice.krad.datadictionary.validation.constraint.ValidCharactersConstraint
          extended by org.kuali.rice.krad.datadictionary.validation.constraint.ValidDataPatternConstraint
              extended by org.kuali.rice.krad.datadictionary.validation.constraint.IntegerPatternConstraint
All Implemented Interfaces:
Serializable, Constraint

public class IntegerPatternConstraint
extends ValidDataPatternConstraint

TODO Administrator don't forget to fill this in.

Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
Serialized Form

Field Summary
protected  boolean allowNegative
           
protected  boolean omitZero
           
protected  boolean onlyNegative
           
 
Fields inherited from class org.kuali.rice.krad.datadictionary.validation.constraint.ValidCharactersConstraint
value
 
Fields inherited from class org.kuali.rice.krad.datadictionary.validation.constraint.BaseConstraint
applyClientSide, constraintStateOverrides, messageComponentCode, messageKey, messageNamespaceCode, states, validationMessageParams
 
Constructor Summary
IntegerPatternConstraint()
           
 
Method Summary
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)
 
Methods inherited from class org.kuali.rice.krad.datadictionary.validation.constraint.ValidDataPatternConstraint
getValue, setValue
 
Methods inherited from class org.kuali.rice.krad.datadictionary.validation.constraint.ValidCharactersConstraint
completeValidation
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

allowNegative

protected boolean allowNegative

onlyNegative

protected boolean onlyNegative

omitZero

protected boolean omitZero
Constructor Detail

IntegerPatternConstraint

public IntegerPatternConstraint()
Method Detail

getRegexString

protected String getRegexString()
Description copied from class: ValidDataPatternConstraint
This method returns a string representing a regex with characters to match, this string should not include the start(^) and end($) symbols

Specified by:
getRegexString in class ValidDataPatternConstraint
See Also:
ValidCharactersPatternConstraint.getRegexString()

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

public List<String> getValidationMessageParams()
This overridden method ...

Overrides:
getValidationMessageParams in class BaseConstraint
Returns:
the validationMessageParams
See Also:
BaseConstraint.getValidationMessageParams()


Copyright © 2005-2013 The Kuali Foundation. All Rights Reserved.