Interface CtxValidation
@Immutable
public interface CtxValidation
Context for bean validation.
-
Method Summary
Modifier and TypeMethodDescriptionstatic dk.mada.jaxrs.generator.mpclient.dto.tmpl.ImmutableCtxValidation.Builder
builder()
Returns a builder for this type.Returns optional validation decimalMaximum.Returns optional validation decimalMinimum.maximum()
Returns optional validation maximum.Returns optional validation maximum length.minimum()
Returns optional validation minimum.Returns optional validation minimum length.pattern()
Returns optional validation pattern.boolean
Returns true if bean validation annotations should be rendered, otherwise false.boolean
required()
Returns true if the value is required (NotNull), otherwise false.boolean
valid()
Returns true if the property must be valid, otherwise false.
-
Method Details
-
builder
static dk.mada.jaxrs.generator.mpclient.dto.tmpl.ImmutableCtxValidation.Builder builder()Returns a builder for this type.- Returns:
- a builder for this type
-
renderAnnotations
boolean renderAnnotations()Returns true if bean validation annotations should be rendered, otherwise false.- Returns:
- true if bean validation annotations should be rendered, otherwise false
-
valid
boolean valid()Returns true if the property must be valid, otherwise false.- Returns:
- true if the property must be valid, otherwise false
-
required
boolean required()Returns true if the value is required (NotNull), otherwise false.- Returns:
- true if the value is required (NotNull), otherwise false
-
minLength
Returns optional validation minimum length.- Returns:
- optional validation minimum length
-
maxLength
Returns optional validation maximum length.- Returns:
- optional validation maximum length
-
minimum
Returns optional validation minimum.- Returns:
- optional validation minimum
-
maximum
Returns optional validation maximum.- Returns:
- optional validation maximum
-
decimalMinimum
Returns optional validation decimalMinimum.- Returns:
- optional validation decimalMinimum
-
decimalMaximum
Returns optional validation decimalMaximum.- Returns:
- optional validation decimalMaximum
-
pattern
Returns optional validation pattern.- Returns:
- optional validation pattern
-