org.kuali.rice.kns.datadictionary.validation.charlevel
Class RegexValidationPattern

java.lang.Object
  extended by org.kuali.rice.krad.datadictionary.validation.ValidationPattern
      extended by org.kuali.rice.krad.datadictionary.validation.CharacterLevelValidationPattern
          extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class org.kuali.rice.krad.datadictionary.validation.ValidationPattern
ValidationPattern.ValidationPatternException
 
Field Summary
 
Fields inherited from class org.kuali.rice.krad.datadictionary.validation.CharacterLevelValidationPattern
exactLength, maxLength, regexPattern
 
Constructor Summary
RegexValidationPattern()
           
 
Method Summary
 void completeValidation()
          This method throws an exception if it is not configured properly
 void extendExportMap(ExportMap exportMap)
          This exports a representation of this instance by an ExportMap.
 String getPattern()
           
 String getPatternXml()
          This returns an instance of this class as string.
protected  String getRegexString()
          This returns the specified regular expression defined in the data dictionary entry for validating the value of an attribute.
 String getValidationErrorMessageKey()
          This overridden method ...
 void setPattern(String pattern)
           
 void setValidationErrorMessageKey(String validationErrorMessageKey)
           
 
Methods inherited from class org.kuali.rice.krad.datadictionary.validation.CharacterLevelValidationPattern
buildExportMap, getExactLength, getMaxLength, getRegexPattern, getValidationErrorMessageKeyOptions, getValidationErrorMessageParameters, setExactLength, setMaxLength
 
Methods inherited from class org.kuali.rice.krad.datadictionary.validation.ValidationPattern
matches
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegexValidationPattern

public RegexValidationPattern()
Method Detail

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.krad.datadictionary.exporter.ExportMap)

getPatternXml

public String getPatternXml()
This returns an instance of this class as string.

See Also:
org.kuali.rice.krad.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 © 2005-2011 The Kuali Foundation. All Rights Reserved.