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

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.ConfigurationBasedRegexPatternConstraint
                  extended by org.kuali.rice.krad.datadictionary.validation.constraint.FloatingPointPatternConstraint
All Implemented Interfaces:
Serializable, Constraint

public class FloatingPointPatternConstraint
extends ConfigurationBasedRegexPatternConstraint

Validation pattern for matching floating point numbers, optionally matching negative numbers

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

Field Summary
protected  boolean allowNegative
           
 
Fields inherited from class org.kuali.rice.krad.datadictionary.validation.constraint.ConfigurationBasedRegexPatternConstraint
patternTypeKey
 
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, labelKey, states, validationMessageParams
 
Constructor Summary
FloatingPointPatternConstraint()
           
 
Method Summary
protected  String getRegexString()
          This method implementation uses the key returned by #getPatternTypePropertyString() to fetch the validationPattern's regex string from the ConfigurationService which should not include the start(^) and end($) symbols
 List<String> getValidationMessageParams()
          This overridden method ...
 boolean isAllowNegative()
           
 void setAllowNegative(boolean allowNegative)
           
 
Methods inherited from class org.kuali.rice.krad.datadictionary.validation.constraint.ConfigurationBasedRegexPatternConstraint
getLabelKey, getPatternTypeKey, setPatternTypeKey
 
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.BaseConstraint
getApplyClientSide, getConstraintStateOverrides, getStates, getValidationMessageParamsArray, setApplyClientSide, setConstraintStateOverrides, setLabelKey, 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
Constructor Detail

FloatingPointPatternConstraint

public FloatingPointPatternConstraint()
Method Detail

getRegexString

protected String getRegexString()
Description copied from class: ConfigurationBasedRegexPatternConstraint
This method implementation uses the key returned by #getPatternTypePropertyString() to fetch the validationPattern's regex string from the ConfigurationService which should not include the start(^) and end($) symbols

Overrides:
getRegexString in class ConfigurationBasedRegexPatternConstraint
See Also:
ValidCharactersPatternConstraint.getRegexString()

isAllowNegative

public boolean isAllowNegative()
Returns:
the allowNegative

setAllowNegative

public void setAllowNegative(boolean allowNegative)
Parameters:
allowNegative - the allowNegative to set

getValidationMessageParams

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

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


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