All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dk.mada.jaxrs.generator.mpclient.dto.tmpl.CtxValidation Maven / Gradle / Ivy

package dk.mada.jaxrs.generator.mpclient.dto.tmpl;

import java.util.Optional;

import org.immutables.value.Value.Immutable;

/**
 * Context for bean validation.
 */
@Immutable
public interface CtxValidation {
    /** {@return a builder for this type} */
    static ImmutableCtxValidation.Builder builder() {
        return ImmutableCtxValidation.builder();
    }

    /** {@return true if bean validation annotations should be rendered, otherwise false} */
    boolean renderAnnotations();

    /** {@return true if the property must be valid, otherwise false} */
    boolean valid();

    /** {@return true if the value must be NotNull, otherwise false} */
    boolean notNull();

    /** {@return optional validation minimum length} */
    Optional minLength();

    /** {@return optional validation maximum length} */
    Optional maxLength();

    /** {@return optional validation minimum} */
    Optional minimum();

    /** {@return optional validation maximum} */
    Optional maximum();

    /** {@return optional validation decimalMinimum} */
    Optional decimalMinimum();

    /** {@return optional validation decimalMaximum} */
    Optional decimalMaximum();

    /** {@return optional validation pattern} */
    Optional pattern();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy