Interface Validation


@Immutable public interface Validation
Models the validation requirements for a type/property/parameter.
  • Field Details

    • NO_VALIDATION

      static final Validation NO_VALIDATION
      No validation input.
    • REQUIRED_VALIDATION

      static final Validation REQUIRED_VALIDATION
      Simple required validation.
  • Method Details

    • builder

      static dk.mada.jaxrs.model.ImmutableValidation.Builder builder()
      Returns a builder for this type.
      Returns:
      a builder for this type
    • isEmptyValidation

      default boolean isEmptyValidation()
      Returns true if this is an empty validation, otherwise false.
      Returns:
      true if this is an empty validation, otherwise false
    • isRequired

      Optional<Boolean> isRequired()
      Returns optional required state for the reference.
      Returns:
      optional required state for the reference
    • isNullable

      Optional<Boolean> isNullable()
      Returns optional nullable state for the reference.
      Returns:
      optional nullable state for the reference
    • isReadonly

      Optional<Boolean> isReadonly()
      Returns optional read-only state for the reference.
      Returns:
      optional read-only state for the reference
    • minItems

      Optional<Integer> minItems()
      Returns optional validation minimum items.
      Returns:
      optional validation minimum items
    • maxItems

      Optional<Integer> maxItems()
      Returns optional validation maximum items.
      Returns:
      optional validation maximum items
    • minLength

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

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

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

      Optional<BigDecimal> maximum()
      Returns optional validation maximum.
      Returns:
      optional validation maximum
    • pattern

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