public class DateListConstraints extends DateConstraints implements ListConstraints
DEFAULT_FORMAT, format, max, min
KW_MAX_LENGTH, KW_MIN_LENGTH, KW_SEPARATOR, SEPARATOR
Constructor and Description |
---|
DateListConstraints()
Default constructor.
|
DateListConstraints(String format,
Locale locale,
String min,
String max,
String separator,
Integer minLength,
Integer maxLength)
Creates a constraints validator for lists of dates.
|
Modifier and Type | Method and Description |
---|---|
Integer |
getMaxLength()
Returns the maximum length of the list or null of there is not one.
|
Integer |
getMinLength()
Returns the minimum length of the list or null of there is not one.
|
String |
getSeparator()
Returns the character used as the item separator.
|
getFormat, isValid
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isValid
public DateListConstraints()
public DateListConstraints(String format, Locale locale, String min, String max, String separator, Integer minLength, Integer maxLength)
format
- Format string as expected by DateFormat
locale
- Locale context for parsing/formating the date values.min
- If not null, it specifies the minimum numerical value the
individual parsed argument can have to be a valid parameter.max
- If not null, it specifies the maximum numerical value the
individual parsed argument can have to be a valid parameter.separator
- Single character delimiter for list items.minLength
- Minimum length of the list of string tokens.maxLength
- Maximum length of the list of string tokens.public String getSeparator()
ListConstraints
getSeparator
in interface ListConstraints
ListConstraints.getSeparator()
public Integer getMinLength()
ListConstraints
getMinLength
in interface ListConstraints
ListConstraints.getMinLength()
public Integer getMaxLength()
ListConstraints
getMaxLength
in interface ListConstraints
ListConstraints.getMaxLength()
Copyright © 2015. All Rights Reserved.