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.ValidDataPatternConstraint
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, labelKey
 
Constructor Summary
FloatingPointPatternConstraint()
           
 
Method Summary
 String getLabelKey()
          This overridden method ...
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
 boolean isAllowNegative()
           
 void setAllowNegative(boolean allowNegative)
           
 
Methods inherited from class org.kuali.rice.krad.datadictionary.validation.constraint.ValidDataPatternConstraint
getPatternTypeKey, getValue, setPatternTypeKey, setValue
 
Methods inherited from class org.kuali.rice.krad.datadictionary.validation.constraint.BaseConstraint
getApplyClientSide, setApplyClientSide, setLabelKey
 
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()

getLabelKey

public String getLabelKey()
Description copied from class: ValidDataPatternConstraint
This overridden method ...

Overrides:
getLabelKey in class ValidDataPatternConstraint
Returns:
See Also:
ValidDataPatternConstraint.getLabelKey()

isAllowNegative

public boolean isAllowNegative()
Returns:
the allowNegative

setAllowNegative

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


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.