org.kuali.rice.krad.datadictionary.validation.constraint
Class AnyCharacterPatternConstraint
java.lang.Object
org.kuali.rice.krad.datadictionary.validation.constraint.BaseConstraint
org.kuali.rice.krad.datadictionary.validation.constraint.ValidCharactersConstraint
org.kuali.rice.krad.datadictionary.validation.constraint.ValidCharactersPatternConstraint
org.kuali.rice.krad.datadictionary.validation.constraint.AnyCharacterPatternConstraint
- All Implemented Interfaces:
- Serializable, Constraint
public class AnyCharacterPatternConstraint
- extends ValidCharactersPatternConstraint
Pattern for matching any printable character
- See Also:
- Serialized Form
Method Summary |
boolean |
getAllowWhitespace()
|
String |
getLabelKey()
LabelKey should be a single word key. |
protected String |
getRegexString()
This method returns a string representing a regex with characters to match, this string should not
include the start(^) and end($) symbols or any length related symbols (*, {0,}, etc) |
void |
setAllowWhitespace(boolean allowWhitespace)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
allowWhitespace
protected boolean allowWhitespace
AnyCharacterPatternConstraint
public AnyCharacterPatternConstraint()
getAllowWhitespace
public boolean getAllowWhitespace()
- Returns:
- allowWhitespace
setAllowWhitespace
public void setAllowWhitespace(boolean allowWhitespace)
- Parameters:
allowWhitespace
-
getRegexString
protected String getRegexString()
- Description copied from class:
ValidCharactersPatternConstraint
- This method returns a string representing a regex with characters to match, this string should not
include the start(^) and end($) symbols or any length related symbols (*, {0,}, etc)
- Specified by:
getRegexString
in class ValidCharactersPatternConstraint
- Returns:
- See Also:
ValidationPattern.getRegexString()
getLabelKey
public String getLabelKey()
- Description copied from class:
BaseConstraint
- LabelKey should be a single word key. This key is used to find a message to use for this
constraint from available messages. The key is also used for defining/retrieving validation method
names when applicable for ValidCharactersContraints.
If a comma separated list of keys is used, a message will be generated that is a comma separated list of
the messages retrieved for each key.
- Overrides:
getLabelKey
in class BaseConstraint
- Returns:
- See Also:
BaseConstraint.getLabelKey()
Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.