public class DatePatternConstraint extends ValidDataPatternConstraint
value
applyClientSide, labelKey
Constructor and Description |
---|
DatePatternConstraint() |
Modifier and Type | Method and Description |
---|---|
List<String> |
getAllowedFormats() |
protected String |
getRegexString()
Returns a regex representing all the allowed formats in the system.
|
List<String> |
getValidationMessageParams()
This overridden method ...
|
void |
setAllowedFormats(List<String> allowedFormats)
Sets the alloweFormats for this constraint, this must be a subset of the system configured
formats for a date - this list should be used for most fields where you are expecting a user
to enter a date in a specific format
|
getValue, setValue
getApplyClientSide, getLabelKey, getValidationMessageParamsArray, setApplyClientSide, setLabelKey, setValidationMessageParams
public DatePatternConstraint()
protected String getRegexString()
getRegexString
in class ValidDataPatternConstraint
ValidDataPatternConstraint.getRegexString()
public List<String> getAllowedFormats()
public void setAllowedFormats(List<String> allowedFormats)
allowedFormats
- the allowedFormats to setpublic List<String> getValidationMessageParams()
getValidationMessageParams
in class BaseConstraint
BaseConstraint.getValidationMessageParams()
Copyright © 2005-2015 The Kuali Foundation. All Rights Reserved.