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

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

public class CharsetValidationPattern
extends CharacterLevelValidationPattern

Pattern for matching any character in the given list (String)

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  String validChars
           
 
Fields inherited from class org.kuali.rice.krad.datadictionary.validation.CharacterLevelValidationPattern
exactLength, maxLength, regexPattern
 
Constructor Summary
CharsetValidationPattern()
           
 
Method Summary
 void extendExportMap(ExportMap exportMap)
          Extends the given (parent class) exportMap as needed to represent subclass instances
protected  String getRegexString()
          Escapes every special character I could think of, to limit potential misuse of this pattern.
 String[] getValidationErrorMessageParameters(String attributeLabel)
          This overridden method ...
 String getValidChars()
           
 void setValidChars(String validChars)
           
 
Methods inherited from class org.kuali.rice.krad.datadictionary.validation.CharacterLevelValidationPattern
buildExportMap, getExactLength, getMaxLength, getRegexPattern, getValidationErrorMessageKey, getValidationErrorMessageKeyOptions, 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

validChars

protected String validChars
Constructor Detail

CharsetValidationPattern

public CharsetValidationPattern()
Method Detail

getValidChars

public String getValidChars()
Returns:
String containing all valid chars for this charset

setValidChars

public void setValidChars(String validChars)
Parameters:
validChars - for this charset

getRegexString

protected String getRegexString()
Escapes every special character I could think of, to limit potential misuse of this pattern.

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)

getValidationErrorMessageParameters

public String[] getValidationErrorMessageParameters(String attributeLabel)
This overridden method ...

Overrides:
getValidationErrorMessageParameters in class CharacterLevelValidationPattern
See Also:
org.kuali.rice.krad.datadictionary.validation.CharacterLevelValidationPattern#getValidationErrorMessageParameters(java.lang.String, java.lang.String)


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