org.kuali.rice.kns.datadictionary.validation.charlevel
Class RegexValidationPattern
java.lang.Object
org.kuali.rice.kns.datadictionary.validation.ValidationPattern
org.kuali.rice.kns.datadictionary.validation.CharacterLevelValidationPattern
org.kuali.rice.kns.datadictionary.validation.charlevel.RegexValidationPattern
- All Implemented Interfaces:
- Serializable
public class RegexValidationPattern
- extends CharacterLevelValidationPattern
This is a description of what this class does - ctdang don't forget to fill this in.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
LOG
private static final org.apache.log4j.Logger LOG
pattern
private String pattern
- Regular expression, e.g. "[a-zA-Z0-9]"
validationErrorMessageKey
private String validationErrorMessageKey
RegexValidationPattern
public RegexValidationPattern()
extendExportMap
public void extendExportMap(ExportMap exportMap)
- This exports a representation of this instance by an ExportMap.
- Specified by:
extendExportMap
in class CharacterLevelValidationPattern
- See Also:
CharacterLevelValidationPattern.extendExportMap(org.kuali.rice.kns.datadictionary.exporter.ExportMap)
getPatternXml
public String getPatternXml()
- This returns an instance of this class as string.
- See Also:
org.kuali.rice.kns.datadictionary.validation.ValidationPattern#getPatternXml()
getRegexString
protected String getRegexString()
- This returns the specified regular expression defined in the data dictionary
entry for validating the value of an attribute.
- Specified by:
getRegexString
in class ValidationPattern
- Returns:
- String version of regular expression base, suitable for modification with length-specifiers and used internally by
getRegexPattern
- See Also:
ValidationPattern.getRegexString()
getPattern
public final String getPattern()
- Returns:
- the pattern
setPattern
public final void setPattern(String pattern)
- Parameters:
pattern
- the pattern to set
getValidationErrorMessageKey
public String getValidationErrorMessageKey()
- Description copied from class:
CharacterLevelValidationPattern
- This overridden method ...
- Overrides:
getValidationErrorMessageKey
in class CharacterLevelValidationPattern
- Returns:
- the validationErrorMessageKey
- See Also:
ValidationPattern.getValidationErrorMessageKey()
setValidationErrorMessageKey
public void setValidationErrorMessageKey(String validationErrorMessageKey)
- Parameters:
validationErrorMessageKey
- a message key from the application's message resource bundle signifying the error message
to display if some validation does not match this pattern
completeValidation
public void completeValidation()
- Description copied from class:
ValidationPattern
- This method throws an exception if it is not configured properly
- Overrides:
completeValidation
in class ValidationPattern
- See Also:
ValidationPattern.completeValidation()
Copyright © 2007-2011 The Kuali Foundation. All Rights Reserved.