Package dk.mada.jaxrs.model.types
Interface TypeValidation
- All Superinterfaces:
Type
- All Known Implementing Classes:
ImmutableTypeValidation
Validation annotations for a type.
This is not a proper type, but just a carrier
-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
Returns true if this type represents validation information, otherwise false.static TypeValidation
of
(Validation validation) Creates a new validation carrier type.Returns the validation carried by this dummy type.Methods inherited from interface dk.mada.jaxrs.model.types.Type
isBigDecimal, isContainer, isDate, isDateTime, isDto, isEnum, isPlainObject, isPrimitive, isPrimitive, isTime, isUUID, isVoid, neededImports, typeName, wrapperTypeName
-
Method Details
-
of
Creates a new validation carrier type.- Parameters:
validation
- the validation object- Returns:
- a dummy type carrying a validation
-
validation
Validation validation()Returns the validation carried by this dummy type.- Returns:
- the validation carried by this dummy type
-
isValidation
default boolean isValidation()Description copied from interface:Type
Returns true if this type represents validation information, otherwise false.- Specified by:
isValidation
in interfaceType
- Returns:
- true if this type represents validation information, otherwise false
-