Interface ConstraintValidator
-
- All Known Implementing Classes:
VUtil
public interface ConstraintValidator
This interface provides constraint entity validation.- Author:
- Apache Directory Project
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
beginDate(String beginDate)
Perform simple reasonability check on contraint beginDate value.void
beginTime(String beginTime)
Perform simple reasonability check on contraint beginTime value.void
dayMask(String dayMask)
Perform simple reasonability check on contraint dayMask value.void
endDate(String endDate)
Perform simple reasonability check on contraint endDate value.void
endTime(String endTime)
Perform simple reasonability check on contraint endTime value.void
timeout(Integer timeout)
Perform simple reasonability check on contraint timeout value.
-
-
-
Method Detail
-
timeout
void timeout(Integer timeout) throws ValidationException
Perform simple reasonability check on contraint timeout value.- Parameters:
timeout
- must be greater than 0 and less than max value forInteger.MAX_VALUE
- Throws:
ValidationException
- in the event value falls out of range.
-
beginTime
void beginTime(String beginTime) throws ValidationException
Perform simple reasonability check on contraint beginTime value.- Parameters:
beginTime
- if set, must be between '0000' and '2400'.- Throws:
ValidationException
- in the event value falls out of range.
-
endTime
void endTime(String endTime) throws ValidationException
Perform simple reasonability check on contraint endTime value.- Parameters:
endTime
- if set, must be between '0000' and '2400'.- Throws:
ValidationException
- in the event value falls out of range.
-
beginDate
void beginDate(String beginDate) throws ValidationException
Perform simple reasonability check on contraint beginDate value.- Parameters:
beginDate
- if set, must be format 'YYYYMMDD'.- Throws:
ValidationException
- in the event value falls out of range.
-
endDate
void endDate(String endDate) throws ValidationException
Perform simple reasonability check on contraint endDate value.- Parameters:
endDate
- if set, must be format 'YYYYMMDD'.- Throws:
ValidationException
- in the event value falls out of range.
-
dayMask
void dayMask(String dayMask) throws ValidationException
Perform simple reasonability check on contraint dayMask value.- Parameters:
dayMask
- format is '1234567', 1 = Sunday, 2 = Monday, etc. Any or all of the 'bits' may be left blank.- Throws:
ValidationException
- in the event value falls out of range.
-
-