public class DatePatternConstraint extends ValidDataPatternConstraint
value
applyClientSide, constraintStateOverrides, messageComponentCode, messageKey, messageNamespaceCode, states, validationMessageParams
componentCode, namespaceCode
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
completeValidation
getApplyClientSide, getConstraintStateOverrides, getMessageComponentCode, getMessageKey, getMessageNamespaceCode, getStates, getValidationMessageParamsArray, setApplyClientSide, setConstraintStateOverrides, setMessageComponentCode, setMessageKey, setMessageNamespaceCode, setStates, setValidationMessageParams
clone, copy, dataDictionaryPostProcessing, getComponentCode, getNamespaceCode, setComponentCode, setNamespaceCode
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–2014 The Kuali Foundation. All rights reserved.