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

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.AlphaNumericValidationPattern
All Implemented Interfaces:
Serializable

public class AlphaNumericValidationPattern
extends CharacterLevelValidationPattern

Pattern for matching alphanumeric characters Also, allows conditionally whitespace, underscore, period, parens, dollar signs, and forward slash.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.kuali.rice.krad.datadictionary.validation.ValidationPattern
ValidationPattern.ValidationPatternException
 
Field Summary
protected  boolean allowDollar
           
protected  boolean allowForwardSlash
           
protected  boolean allowParenthesis
           
protected  boolean allowPeriod
           
protected  boolean allowUnderscore
           
protected  boolean allowWhitespace
           
protected  boolean lowerCase
           
 
Fields inherited from class org.kuali.rice.krad.datadictionary.validation.CharacterLevelValidationPattern
exactLength, maxLength, regexPattern
 
Constructor Summary
AlphaNumericValidationPattern()
           
 
Method Summary
 void extendExportMap(ExportMap exportMap)
          Extends the given (parent class) exportMap as needed to represent subclass instances
 boolean getAllowPeriod()
           
 boolean getAllowUnderscore()
           
 boolean getAllowWhitespace()
           
protected  String getRegexString()
           
protected  String getValidationErrorMessageKeyOptions()
           
 boolean isAllowDollar()
           
 boolean isAllowForwardSlash()
           
 boolean isAllowParenthesis()
           
 boolean isAllowPeriod()
           
 boolean isLowerCase()
           
 void setAllowDollar(boolean allowDollar)
           
 void setAllowForwardSlash(boolean allowForwardSlash)
           
 void setAllowParenthesis(boolean allowParenthesis)
           
 void setAllowPeriod(boolean allowPeriod)
           
 void setAllowUnderscore(boolean allowUnderscore)
           
 void setAllowWhitespace(boolean allowWhitespace)
           
 void setLowerCase(boolean lowerCase)
           
 
Methods inherited from class org.kuali.rice.krad.datadictionary.validation.CharacterLevelValidationPattern
buildExportMap, getExactLength, getMaxLength, getRegexPattern, getValidationErrorMessageKey, getValidationErrorMessageParameters, setExactLength, setMaxLength
 
Methods inherited from class org.kuali.rice.krad.datadictionary.validation.ValidationPattern
completeValidation, matches
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

allowWhitespace

protected boolean allowWhitespace

allowUnderscore

protected boolean allowUnderscore

allowPeriod

protected boolean allowPeriod

allowParenthesis

protected boolean allowParenthesis

allowDollar

protected boolean allowDollar

allowForwardSlash

protected boolean allowForwardSlash

lowerCase

protected boolean lowerCase
Constructor Detail

AlphaNumericValidationPattern

public AlphaNumericValidationPattern()
Method Detail

getAllowPeriod

public boolean getAllowPeriod()
Returns:
allowPeriod

setAllowPeriod

public void setAllowPeriod(boolean allowPeriod)
Parameters:
allowPeriod -

isAllowPeriod

public boolean isAllowPeriod()
Returns:
the allowPeriod

isAllowParenthesis

public boolean isAllowParenthesis()
Returns:
the allowParenthesis

setAllowParenthesis

public void setAllowParenthesis(boolean allowParenthesis)
Parameters:
allowParenthesis - the allowParenthesis to set

isAllowDollar

public boolean isAllowDollar()
Returns:
the allowDollar

setAllowDollar

public void setAllowDollar(boolean allowDollar)
Parameters:
allowDollar - the allowDollar to set

isAllowForwardSlash

public boolean isAllowForwardSlash()
Returns:
the allowforwardSlash

setAllowForwardSlash

public void setAllowForwardSlash(boolean allowForwardSlash)
Parameters:
allowforwardSlash - the allowforwardSlash to set

getAllowWhitespace

public boolean getAllowWhitespace()
Returns:
allowWhitespace

setAllowWhitespace

public void setAllowWhitespace(boolean allowWhitespace)
Parameters:
allowWhitespace -

getAllowUnderscore

public boolean getAllowUnderscore()
Returns:
allowUnderscore

setAllowUnderscore

public void setAllowUnderscore(boolean allowUnderscore)
Parameters:
allowWhitespace -

isLowerCase

public boolean isLowerCase()
Returns:
the lowerCase

setLowerCase

public void setLowerCase(boolean lowerCase)
Parameters:
lowerCase - the lowerCase to set

getRegexString

protected String getRegexString()
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()

extendExportMap

public void extendExportMap(ExportMap exportMap)
Description copied from class: CharacterLevelValidationPattern
Extends the given (parent class) exportMap as needed to represent subclass instances

Specified by:
extendExportMap in class CharacterLevelValidationPattern
See Also:
org.kuali.rice.krad.datadictionary.validation.CharacterLevelValidationPattern#extendExportMap(org.kuali.bo.datadictionary.exporter.ExportMap)

getValidationErrorMessageKeyOptions

protected String getValidationErrorMessageKeyOptions()
Overrides:
getValidationErrorMessageKeyOptions in class CharacterLevelValidationPattern


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