public class SimpleLocalDateConstraint extends AbstractSimpleDateTimeConstraint<java.time.LocalDate>
LocalDate constraint._beg, _end, _tzone_finishParseCst, _flags, AFTER_END, AFTER_POINTER, AFTER_START, AT_POINTER, BEFORE_END, BEFORE_START, END_AFTER, END_BEFORE, NO_EMPTY, NO_FUTURE, NO_NEGATIVE, NO_PAST, NO_POSITIVE, NO_TODAY, NO_ZERO, OVERLAP, OVERLAP_AFTER, OVERLAP_BEFORE, OVERLAP_END, SERVER, START_AFTER, START_BEFORE, STRICT| Constructor and Description |
|---|
SimpleLocalDateConstraint(int flags)
Constraints a constraint.
|
SimpleLocalDateConstraint(int flags,
java.time.LocalDate begin,
java.time.LocalDate end,
java.lang.String errmsg)
Constructs a constraint with beginning and ending date.
|
SimpleLocalDateConstraint(int flags,
java.util.regex.Pattern regex,
java.lang.String errmsg)
Constructs a constraint combining regular expression.
|
SimpleLocalDateConstraint(int flags,
java.lang.String errmsg)
Constraints a constraint.
|
SimpleLocalDateConstraint(java.util.regex.Pattern regex,
java.lang.String errmsg)
Constructs a regular-expression constraint.
|
SimpleLocalDateConstraint(java.lang.String constraint)
Constructs a constraint with a list of constraints separated by comma.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
fixConstraint() |
protected java.time.LocalDate |
parseFrom(java.lang.String val) |
void |
validate(Component comp,
java.lang.Object value)
Verifies whether the value is acceptable.
|
protected java.lang.String |
valueToString(Component comp,
java.time.LocalDate value) |
getBeginDate, getEndDate, parseConstraint, setTimeZone, validate0getClientConstraint, getClientPackages, getErrorMessage, getFlags, getInstancepublic SimpleLocalDateConstraint(int flags)
flags - a combination of SimpleConstraint.NO_POSITIVE, SimpleConstraint.NO_NEGATIVE,
SimpleConstraint.NO_ZERO, and so on.public SimpleLocalDateConstraint(int flags,
java.lang.String errmsg)
flags - a combination of SimpleConstraint.NO_POSITIVE, SimpleConstraint.NO_NEGATIVE,
SimpleConstraint.NO_ZERO, and so on.errmsg - the error message to display. Ignored if null or empty.public SimpleLocalDateConstraint(java.util.regex.Pattern regex,
java.lang.String errmsg)
regex - ignored if null or emptyerrmsg - the error message to display. Ignored if null or empty.public SimpleLocalDateConstraint(int flags,
java.util.regex.Pattern regex,
java.lang.String errmsg)
flags - a combination of SimpleConstraint.NO_POSITIVE, SimpleConstraint.NO_NEGATIVE,
SimpleConstraint.NO_ZERO, and so on.regex - ignored if null or emptyerrmsg - the error message to display. Ignored if null or empty.public SimpleLocalDateConstraint(int flags,
java.time.LocalDate begin,
java.time.LocalDate end,
java.lang.String errmsg)
flags - a combination of SimpleConstraint.NO_POSITIVE, SimpleConstraint.NO_NEGATIVE,
SimpleConstraint.NO_ZERO, and so on.begin - the beginning date, or null if no constraint at the beginning
date.end - the ending date, or null if no constraint at the ending
date.errmsg - the error message to display. Ignored if null or empty.public SimpleLocalDateConstraint(java.lang.String constraint)
constraint - a list of constraints separated by comma.
Example: "between 20071012 and 20071223", "before 20080103"protected void fixConstraint()
fixConstraint in class AbstractSimpleDateTimeConstraint<java.time.LocalDate>public void validate(Component comp, java.lang.Object value) throws WrongValueException
Constraintvalidate in interface Constraintvalidate in class AbstractSimpleDateTimeConstraint<java.time.LocalDate>comp - the component being validatedWrongValueExceptionprotected java.time.LocalDate parseFrom(java.lang.String val)
throws UiException
parseFrom in class AbstractSimpleDateTimeConstraint<java.time.LocalDate>UiExceptionprotected java.lang.String valueToString(Component comp, java.time.LocalDate value)
valueToString in class AbstractSimpleDateTimeConstraint<java.time.LocalDate>Copyright © 2005-2024 Potix Corporation. All Rights Reserved.