Interface CtxValidation


@Immutable public interface CtxValidation
Context for bean validation.
  • 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

      Optional<String> minLength()
      Returns optional validation minimum length.
      Returns:
      optional validation minimum length
    • maxLength

      Optional<String> maxLength()
      Returns optional validation maximum length.
      Returns:
      optional validation maximum length
    • minimum

      Optional<String> minimum()
      Returns optional validation minimum.
      Returns:
      optional validation minimum
    • maximum

      Optional<String> maximum()
      Returns optional validation maximum.
      Returns:
      optional validation maximum
    • decimalMinimum

      Optional<String> decimalMinimum()
      Returns optional validation decimalMinimum.
      Returns:
      optional validation decimalMinimum
    • decimalMaximum

      Optional<String> decimalMaximum()
      Returns optional validation decimalMaximum.
      Returns:
      optional validation decimalMaximum
    • pattern

      Optional<String> pattern()
      Returns optional validation pattern.
      Returns:
      optional validation pattern