Class RestrictedScaleLevelForDateDataTypeValidator
java.lang.Object
eu.dzhw.fdz.metadatamanagement.variablemanagement.domain.validation.RestrictedScaleLevelForDateDataTypeValidator
- All Implemented Interfaces:
javax.validation.ConstraintValidator<RestrictedScaleLevelForDateDataType,Variable>
public class RestrictedScaleLevelForDateDataTypeValidator extends Object implements javax.validation.ConstraintValidator<RestrictedScaleLevelForDateDataType,Variable>
Validator which ensures that date variables have only a nominal, ordinal or interval scale level.
- Author:
- René Reitmann
-
Constructor Summary
Constructors Constructor Description RestrictedScaleLevelForDateDataTypeValidator()
-
Method Summary
Modifier and Type Method Description void
initialize(RestrictedScaleLevelForDateDataType constraintAnnotation)
boolean
isValid(Variable variable, javax.validation.ConstraintValidatorContext context)
-
Constructor Details
-
RestrictedScaleLevelForDateDataTypeValidator
public RestrictedScaleLevelForDateDataTypeValidator()
-
-
Method Details
-
initialize
- Specified by:
initialize
in interfacejavax.validation.ConstraintValidator<RestrictedScaleLevelForDateDataType,Variable>
-
isValid
- Specified by:
isValid
in interfacejavax.validation.ConstraintValidator<RestrictedScaleLevelForDateDataType,Variable>
-