Class AbstractTimeValidator<T>
java.lang.Object
io.jmix.ui.component.validation.time.AbstractTimeValidator<T>
- All Implemented Interfaces:
 TimeValidator
- Direct Known Subclasses:
 AbstractTimeValidator.DateConstraint,AbstractTimeValidator.LocalDateConstraint,AbstractTimeValidator.LocalDateTimeConstraint,AbstractTimeValidator.LocalTimeConstraint,AbstractTimeValidator.OffsetDateTimeConstraint,AbstractTimeValidator.OffsetTimeConstraint
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic classstatic classstatic class - 
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected static Map<Class,TimeValidator> protected TimeSourceprotected T - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionabstract intbooleanisFuture()booleanbooleanisPast()booleanvoidsetCheckSeconds(boolean checkSeconds) Sets check seconds to validator. 
- 
Field Details
- 
timeSource
 - 
value
 - 
checkSeconds
protected boolean checkSeconds - 
constraints
 
 - 
 - 
Constructor Details
- 
AbstractTimeValidator
 
 - 
 - 
Method Details
- 
isPast
public boolean isPast()- Specified by:
 isPastin interfaceTimeValidator- Returns:
 - true if date or time in the past
 
 - 
isPastOrPresent
public boolean isPastOrPresent()- Specified by:
 isPastOrPresentin interfaceTimeValidator- Returns:
 - true if date or time in the past or present
 
 - 
isFuture
public boolean isFuture()- Specified by:
 isFuturein interfaceTimeValidator- Returns:
 - true if date or time in the future
 
 - 
isFutureOrPresent
public boolean isFutureOrPresent()- Specified by:
 isFutureOrPresentin interfaceTimeValidator- Returns:
 - true if date or time in the future or present
 
 - 
setCheckSeconds
public void setCheckSeconds(boolean checkSeconds) Description copied from interface:TimeValidatorSets check seconds to validator. Set true if validator should check seconds and nanos while it comparing dates or times.- Specified by:
 setCheckSecondsin interfaceTimeValidator- Parameters:
 checkSeconds- check seconds and nanos option, false by default
 - 
compareValueWithCurrent
public abstract int compareValueWithCurrent() 
 -