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, messageComponentCode, messageKey, messageNamespaceCode, states, validationMessageParams
 
Constructor Summary
FloatingPointPatternConstraint()
           
 
Method Summary
protected  String getRegexString()
          Uses the key returned by ConfigurationBasedRegexPatternConstraint.getPatternTypeKey() to fetch the validationPattern's regex string from the ConfigurationService which should not include the start(^) and end($) symbols
 List<String> getValidationMessageParams()
          Parameters to be used in the string retrieved by this constraint's messageKey, ordered by number of the param
 boolean isAllowNegative()
           
 void setAllowNegative(boolean allowNegative)
           
 
Methods inherited from class org.kuali.rice.krad.datadictionary.validation.constraint.ConfigurationBasedRegexPatternConstraint
getMessageKey, 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.ValidCharactersConstraint
completeValidation
 
Methods inherited from class org.kuali.rice.krad.datadictionary.validation.constraint.BaseConstraint
getApplyClientSide, getConstraintStateOverrides, getMessageComponentCode, 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
Constructor Detail

FloatingPointPatternConstraint

public FloatingPointPatternConstraint()
Method Detail

getRegexString

protected String getRegexString()
Description copied from class: ConfigurationBasedRegexPatternConstraint
Uses the key returned by ConfigurationBasedRegexPatternConstraint.getPatternTypeKey() to fetch the validationPattern's regex string from the ConfigurationService which should not include the start(^) and end($) symbols

Overrides:
getRegexString in class ConfigurationBasedRegexPatternConstraint
Returns:
String regex validation string
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()
Description copied from class: BaseConstraint
Parameters to be used in the string retrieved by this constraint's messageKey, ordered by number of the param

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


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