|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.krad.datadictionary.validation.ValidationPattern
@Deprecated public abstract class ValidationPattern
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.
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 |
---|
public ValidationPattern()
Method Detail |
---|
public abstract Pattern getRegexPattern()
protected abstract String getRegexString()
public boolean matches(String input)
public abstract ExportMap buildExportMap(String exportKey)
public abstract String getValidationErrorMessageKey()
public String[] getValidationErrorMessageParameters(String attributeLabel)
public void completeValidation() throws ValidationPattern.ValidationPatternException
ValidationPattern.ValidationPatternException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |