Class AnyCharacterPatternConstraint
java.lang.Object
org.kuali.rice.krad.datadictionary.DictionaryBeanBase
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,Cloneable,Copyable,DictionaryBean,Constraint
Pattern for matching any printable character
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
- See Also:
-
Field Summary
FieldsFields inherited from class org.kuali.rice.krad.datadictionary.validation.constraint.ValidCharactersConstraint
valueFields inherited from class org.kuali.rice.krad.datadictionary.validation.constraint.BaseConstraint
applyClientSide, constraintStateOverrides, messageComponentCode, messageKey, messageNamespaceCode, states, validationMessageParamsFields inherited from class org.kuali.rice.krad.datadictionary.DictionaryBeanBase
componentCode, namespaceCode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanA key that is used to retrieve the constraint message text (used with the namespace and component code if specified)protected StringThis 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)booleanvoidsetAllowWhitespace(boolean allowWhitespace) voidsetOmitNewline(boolean omitNewline) When set to true, omit new line characters from the set of valid characters.Methods inherited from class org.kuali.rice.krad.datadictionary.validation.constraint.ValidCharactersPatternConstraint
getValue, setValueMethods inherited from class org.kuali.rice.krad.datadictionary.validation.constraint.ValidCharactersConstraint
completeValidationMethods inherited from class org.kuali.rice.krad.datadictionary.validation.constraint.BaseConstraint
getApplyClientSide, getConstraintStateOverrides, getMessageComponentCode, getMessageNamespaceCode, getStates, getValidationMessageParams, getValidationMessageParamsArray, setApplyClientSide, setConstraintStateOverrides, setMessageComponentCode, setMessageKey, setMessageNamespaceCode, setStates, setValidationMessageParamsMethods inherited from class org.kuali.rice.krad.datadictionary.DictionaryBeanBase
clone, copy, dataDictionaryPostProcessing, getComponentCode, getNamespaceCode, setComponentCode, setNamespaceCode
-
Field Details
-
allowWhitespace
protected boolean allowWhitespace -
omitNewline
protected boolean omitNewline
-
-
Constructor Details
-
AnyCharacterPatternConstraint
public AnyCharacterPatternConstraint()
-
-
Method Details
-
getAllowWhitespace
public boolean getAllowWhitespace()- Returns:
- allowWhitespace
-
setAllowWhitespace
public void setAllowWhitespace(boolean allowWhitespace) - Parameters:
allowWhitespace-
-
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)- Specified by:
getRegexStringin classValidCharactersPatternConstraint- Returns:
- regular expression
-
getMessageKey
Description copied from class:BaseConstraintA key that is used to retrieve the constraint message text (used with the namespace and component code if specified)- Overrides:
getMessageKeyin classBaseConstraint- Returns:
- String message key
- See Also:
-
isOmitNewline
public boolean isOmitNewline() -
setOmitNewline
public void setOmitNewline(boolean omitNewline) When set to true, omit new line characters from the set of valid characters. This flag will only have an effect if the allowWhitespace flag is true, otherwise all whitespace including new lines characters are omitted.- Parameters:
omitNewline-
-