PARENT
- the generic type of the parent builder
.public class ValidatorBuilderLocalDate<PARENT> extends ValidatorBuilderTime<LocalDate,PARENT,ValidatorBuilderLocalDate<PARENT>>
Constructor and Description |
---|
ValidatorBuilderLocalDate(PARENT parent)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
ValidatorBuilderLocalDate<PARENT> |
after(AttributeReadValue<LocalDate> valueSource)
Adds a validator that checks that the date/time is after the given value . |
ValidatorBuilderLocalDate<PARENT> |
after(LocalDate value)
Adds a validator that checks that the date/time is after the given value . |
ValidatorBuilderLocalDate<PARENT> |
before(AttributeReadValue<LocalDate> valueSource)
Adds a validator that checks that the date/time is before the given value . |
ValidatorBuilderLocalDate<PARENT> |
before(LocalDate value)
Adds a validator that checks that the date/time is before the given value . |
ValidatorBuilderLocalDate<PARENT> |
future()
Adds a validator that checks that the date/time is in the future. |
protected LocalDate |
parse(String value) |
ValidatorBuilderLocalDate<PARENT> |
past()
Adds a validator that checks that the date/time is in the past. |
range, range
add, and, build, getValidators, mandatory, self
protected LocalDate parse(String value)
parse
in class ValidatorBuilderTime<LocalDate,PARENT,ValidatorBuilderLocalDate<PARENT>>
value
- the value as String
.public ValidatorBuilderLocalDate<PARENT> past()
ValidatorBuilderTime
Adds
a validator that checks that the date/time is in the past.past
in class ValidatorBuilderTime<LocalDate,PARENT,ValidatorBuilderLocalDate<PARENT>>
public ValidatorBuilderLocalDate<PARENT> future()
ValidatorBuilderTime
Adds
a validator that checks that the date/time is in the future.future
in class ValidatorBuilderTime<LocalDate,PARENT,ValidatorBuilderLocalDate<PARENT>>
public ValidatorBuilderLocalDate<PARENT> after(LocalDate value)
ValidatorBuilderTime
Adds
a validator that checks that the date/time is after the given value
.after
in class ValidatorBuilderTime<LocalDate,PARENT,ValidatorBuilderLocalDate<PARENT>>
value
- the date/time to compare.public ValidatorBuilderLocalDate<PARENT> after(AttributeReadValue<LocalDate> valueSource)
ValidatorBuilderTime
Adds
a validator that checks that the date/time is after the given value
.after
in class ValidatorBuilderTime<LocalDate,PARENT,ValidatorBuilderLocalDate<PARENT>>
valueSource
- the source
of the date/time to compare.public ValidatorBuilderLocalDate<PARENT> before(LocalDate value)
ValidatorBuilderTime
Adds
a validator that checks that the date/time is before the given value
.before
in class ValidatorBuilderTime<LocalDate,PARENT,ValidatorBuilderLocalDate<PARENT>>
value
- the date/time to compare.public ValidatorBuilderLocalDate<PARENT> before(AttributeReadValue<LocalDate> valueSource)
ValidatorBuilderTime
Adds
a validator that checks that the date/time is before the given value
.before
in class ValidatorBuilderTime<LocalDate,PARENT,ValidatorBuilderLocalDate<PARENT>>
valueSource
- the source
of the date/time to compare.Copyright © 2001–2016 mmm-Team. All rights reserved.