org.kuali.rice.krad.datadictionary.validation
Class ValidationPattern

java.lang.Object
  extended by org.kuali.rice.krad.datadictionary.validation.ValidationPattern
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CharacterLevelValidationPattern, FieldLevelValidationPattern

Deprecated.

@Deprecated
public abstract class ValidationPattern
extends Object
implements Serializable

Abstraction of the regular expressions used to validate attribute values. The validationPattern element defines the allowable character-level or field-level values for an attribute. JSTL: validationPattern is a Map which is accessed using a key of "validationPattern". Each entry may contain some of the keys listed below. The keys that may be present for a given attribute are dependent upon the type of validationPattern. maxLength (String) exactLength type allowWhitespace allowUnderscore allowPeriod validChars precision scale allowNegative The allowable keys (in addition to type) for each type are: Type**** ***Keys*** alphanumeric exactLength maxLength allowWhitespace allowUnderscore allowPeriod alpha exactLength maxLength allowWhitespace anyCharacter exactLength maxLength allowWhitespace charset validChars numeric exactLength maxLength fixedPoint allowNegative precision scale floatingPoint allowNegative date n/a emailAddress n/a javaClass n/a month n/a phoneNumber n/a timestamp n/a year n/a zipcode n/a Note: maxLength and exactLength are mutually exclusive. If one is entered, the other may not be entered. Note: See ApplicationResources.properties for exact regex patterns. e.g. validationPatternRegex.date for regex used in date validation.

See Also:
Serialized Form

Nested Class Summary
static class ValidationPattern.ValidationPatternException
          Deprecated. exception thrown when a ValidationPattern is in an incorrect state.
 
Constructor Summary
ValidationPattern()
          Deprecated.  
 
Method Summary
abstract  ExportMap buildExportMap(String exportKey)
          Deprecated.  
 void completeValidation()
          Deprecated. This method throws an exception if it is not configured properly
abstract  Pattern getRegexPattern()
          Deprecated.  
protected abstract  String getRegexString()
          Deprecated.  
abstract  String getValidationErrorMessageKey()
          Deprecated.  
 String[] getValidationErrorMessageParameters(String attributeLabel)
          Deprecated.  
 boolean matches(String input)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidationPattern

public ValidationPattern()
Deprecated. 
Method Detail

getRegexPattern

public abstract Pattern getRegexPattern()
Deprecated. 
Returns:
regular expression Pattern generated by the individual ValidationPattern subclass

getRegexString

protected abstract String getRegexString()
Deprecated. 
Returns:
String version of regular expression base, suitable for modification with length-specifiers and used internally by getRegexPattern

matches

public boolean matches(String input)
Deprecated. 
Returns:
true if the given String matches this pattern

buildExportMap

public abstract ExportMap buildExportMap(String exportKey)
Deprecated. 
Returns:
ExportMap describing the subclass instance

getValidationErrorMessageKey

public abstract String getValidationErrorMessageKey()
Deprecated. 

getValidationErrorMessageParameters

public String[] getValidationErrorMessageParameters(String attributeLabel)
Deprecated. 

completeValidation

public void completeValidation()
                        throws ValidationPattern.ValidationPatternException
Deprecated. 
This method throws an exception if it is not configured properly

Throws:
ValidationPattern.ValidationPatternException


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