org.kuali.rice.kns.datadictionary.validation.fieldlevel
Class FloatingPointValidationPattern
java.lang.Object
org.kuali.rice.kns.datadictionary.validation.ValidationPattern
org.kuali.rice.kns.datadictionary.validation.FieldLevelValidationPattern
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
allowNegative
protected boolean allowNegative
FloatingPointValidationPattern
public FloatingPointValidationPattern()
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.