org.kuali.rice.kns.datadictionary.validation.fieldlevel
Class FloatingPointValidationPattern

java.lang.Object
  extended by org.kuali.rice.kns.datadictionary.validation.ValidationPattern
      extended by org.kuali.rice.kns.datadictionary.validation.FieldLevelValidationPattern
          extended by org.kuali.rice.kns.datadictionary.validation.fieldlevel.FloatingPointValidationPattern
All Implemented Interfaces:
Serializable

public class FloatingPointValidationPattern
extends FieldLevelValidationPattern

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

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.kuali.rice.kns.datadictionary.validation.ValidationPattern
ValidationPattern.ValidationPatternException
 
Field Summary
protected  boolean allowNegative
           
 
Fields inherited from class org.kuali.rice.kns.datadictionary.validation.FieldLevelValidationPattern
regexPattern
 
Constructor Summary
FloatingPointValidationPattern()
           
 
Method Summary
 ExportMap buildExportMap(String exportKey)
           
 boolean getAllowNegative()
           
protected  String getPatternTypeName()
           
protected  String getRegexString()
          Adds special handling to account for optional allowNegative
 String getValidationErrorMessageKey()
          This overridden method ...
 void setAllowNegative(boolean allowNegative)
           
 
Methods inherited from class org.kuali.rice.kns.datadictionary.validation.FieldLevelValidationPattern
getRegexPattern
 
Methods inherited from class org.kuali.rice.kns.datadictionary.validation.ValidationPattern
completeValidation, getValidationErrorMessageParameters, matches
 
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

FloatingPointValidationPattern

public FloatingPointValidationPattern()
Method Detail

getAllowNegative

public boolean getAllowNegative()
Returns:
allowNegative

setAllowNegative

public void setAllowNegative(boolean allowNegative)
Parameters:
allowNegative -

getRegexString

protected String getRegexString()
Adds special handling to account for optional allowNegative

Overrides:
getRegexString in class FieldLevelValidationPattern
Returns:
String version of regular expression base, suitable for modification with length-specifiers and used internally by getRegexPattern
See Also:
ValidationPattern.getRegexString()

getPatternTypeName

protected String getPatternTypeName()
Specified by:
getPatternTypeName in class FieldLevelValidationPattern
Returns:
the key used to retrieve the validationPattern's type name, which is used as the suffix of the regex property key, as the type entry in the exportMap, etc.
See Also:
FieldLevelValidationPattern.getPatternTypeName()

buildExportMap

public ExportMap buildExportMap(String exportKey)
Overrides:
buildExportMap in class FieldLevelValidationPattern
Returns:
ExportMap describing the subclass instance
See Also:
ValidationPattern.buildExportMap(java.lang.String)

getValidationErrorMessageKey

public String getValidationErrorMessageKey()
Description copied from class: FieldLevelValidationPattern
This overridden method ...

Overrides:
getValidationErrorMessageKey in class FieldLevelValidationPattern
See Also:
FieldLevelValidationPattern.getValidationErrorMessageKey()


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