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

io.vertx.mutiny.ext.web.validation.builder.Parameters Maven / Gradle / Ivy

The newest version!
package io.vertx.mutiny.ext.web.validation.builder;

import java.util.Map;
import java.util.stream.Collectors;
import io.smallrye.mutiny.Multi;
import io.smallrye.mutiny.Uni;
import io.smallrye.mutiny.vertx.TypeArg;
import io.vertx.codegen.annotations.Fluent;
import io.smallrye.common.annotation.CheckReturnValue;
import io.vertx.json.schema.common.dsl.ArraySchemaBuilder;
import io.vertx.json.schema.common.dsl.StringSchemaBuilder;
import io.vertx.json.schema.common.dsl.TupleSchemaBuilder;
import io.vertx.json.schema.common.dsl.BooleanSchemaBuilder;
import io.vertx.json.schema.common.dsl.SchemaBuilder;
import io.vertx.json.schema.common.dsl.ObjectSchemaBuilder;
import io.vertx.json.schema.common.dsl.NumberSchemaBuilder;
import io.vertx.ext.web.validation.impl.parser.ValueParser;

/**
 * In this interface you can find all available {@link io.vertx.mutiny.ext.web.validation.builder.ParameterProcessorFactory} to use in {@link io.vertx.mutiny.ext.web.validation.builder.ValidationHandlerBuilder}. 
* * To create new schemas using , look at the docs of vertx-json-schema * *

* NOTE: This class has been automatically generated from the {@link io.vertx.ext.web.validation.builder.Parameters original} non Mutiny-ified interface using Vert.x codegen. */ @io.smallrye.mutiny.vertx.MutinyGen(io.vertx.ext.web.validation.builder.Parameters.class) public class Parameters { public static final io.smallrye.mutiny.vertx.TypeArg __TYPE_ARG = new io.smallrye.mutiny.vertx.TypeArg<>( obj -> new Parameters((io.vertx.ext.web.validation.builder.Parameters) obj), Parameters::getDelegate ); private final io.vertx.ext.web.validation.builder.Parameters delegate; public Parameters(io.vertx.ext.web.validation.builder.Parameters delegate) { this.delegate = delegate; } public Parameters(Object delegate) { this.delegate = (io.vertx.ext.web.validation.builder.Parameters)delegate; } /** * Empty constructor used by CDI, do not use this constructor directly. **/ Parameters() { this.delegate = null; } public io.vertx.ext.web.validation.builder.Parameters getDelegate() { return delegate; } @Override public String toString() { return delegate.toString(); } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; Parameters that = (Parameters) o; return delegate.equals(that.delegate); } @Override public int hashCode() { return delegate.hashCode(); } /** * @param parameterName * @param schemaBuilder * @return */ public static io.vertx.mutiny.ext.web.validation.builder.ParameterProcessorFactory param(String parameterName, io.vertx.json.schema.common.dsl.NumberSchemaBuilder schemaBuilder) { io.vertx.mutiny.ext.web.validation.builder.ParameterProcessorFactory ret = io.vertx.mutiny.ext.web.validation.builder.ParameterProcessorFactory.newInstance((io.vertx.ext.web.validation.builder.ParameterProcessorFactory)io.vertx.ext.web.validation.builder.Parameters.param(parameterName, schemaBuilder)); return ret; } /** * @param parameterName * @param schemaBuilder * @return */ public static io.vertx.mutiny.ext.web.validation.builder.ParameterProcessorFactory optionalParam(String parameterName, io.vertx.json.schema.common.dsl.NumberSchemaBuilder schemaBuilder) { io.vertx.mutiny.ext.web.validation.builder.ParameterProcessorFactory ret = io.vertx.mutiny.ext.web.validation.builder.ParameterProcessorFactory.newInstance((io.vertx.ext.web.validation.builder.ParameterProcessorFactory)io.vertx.ext.web.validation.builder.Parameters.optionalParam(parameterName, schemaBuilder)); return ret; } /** * @param parameterName * @param schemaBuilder * @return */ public static io.vertx.mutiny.ext.web.validation.builder.ParameterProcessorFactory param(String parameterName, io.vertx.json.schema.common.dsl.StringSchemaBuilder schemaBuilder) { io.vertx.mutiny.ext.web.validation.builder.ParameterProcessorFactory ret = io.vertx.mutiny.ext.web.validation.builder.ParameterProcessorFactory.newInstance((io.vertx.ext.web.validation.builder.ParameterProcessorFactory)io.vertx.ext.web.validation.builder.Parameters.param(parameterName, schemaBuilder)); return ret; } /** * @param parameterName * @param schemaBuilder * @return */ public static io.vertx.mutiny.ext.web.validation.builder.ParameterProcessorFactory optionalParam(String parameterName, io.vertx.json.schema.common.dsl.StringSchemaBuilder schemaBuilder) { io.vertx.mutiny.ext.web.validation.builder.ParameterProcessorFactory ret = io.vertx.mutiny.ext.web.validation.builder.ParameterProcessorFactory.newInstance((io.vertx.ext.web.validation.builder.ParameterProcessorFactory)io.vertx.ext.web.validation.builder.Parameters.optionalParam(parameterName, schemaBuilder)); return ret; } /** * @param parameterName * @param schemaBuilder * @return */ public static io.vertx.mutiny.ext.web.validation.builder.ParameterProcessorFactory param(String parameterName, io.vertx.json.schema.common.dsl.BooleanSchemaBuilder schemaBuilder) { io.vertx.mutiny.ext.web.validation.builder.ParameterProcessorFactory ret = io.vertx.mutiny.ext.web.validation.builder.ParameterProcessorFactory.newInstance((io.vertx.ext.web.validation.builder.ParameterProcessorFactory)io.vertx.ext.web.validation.builder.Parameters.param(parameterName, schemaBuilder)); return ret; } /** * @param parameterName * @param schemaBuilder * @return */ public static io.vertx.mutiny.ext.web.validation.builder.ParameterProcessorFactory optionalParam(String parameterName, io.vertx.json.schema.common.dsl.BooleanSchemaBuilder schemaBuilder) { io.vertx.mutiny.ext.web.validation.builder.ParameterProcessorFactory ret = io.vertx.mutiny.ext.web.validation.builder.ParameterProcessorFactory.newInstance((io.vertx.ext.web.validation.builder.ParameterProcessorFactory)io.vertx.ext.web.validation.builder.Parameters.optionalParam(parameterName, schemaBuilder)); return ret; } /** * @param parameterName * @param schemaBuilder * @return */ public static io.vertx.mutiny.ext.web.validation.builder.ParameterProcessorFactory param(String parameterName, io.vertx.json.schema.common.dsl.ArraySchemaBuilder schemaBuilder) { io.vertx.mutiny.ext.web.validation.builder.ParameterProcessorFactory ret = io.vertx.mutiny.ext.web.validation.builder.ParameterProcessorFactory.newInstance((io.vertx.ext.web.validation.builder.ParameterProcessorFactory)io.vertx.ext.web.validation.builder.Parameters.param(parameterName, schemaBuilder)); return ret; } /** * @param parameterName * @param schemaBuilder * @return */ public static io.vertx.mutiny.ext.web.validation.builder.ParameterProcessorFactory optionalParam(String parameterName, io.vertx.json.schema.common.dsl.ArraySchemaBuilder schemaBuilder) { io.vertx.mutiny.ext.web.validation.builder.ParameterProcessorFactory ret = io.vertx.mutiny.ext.web.validation.builder.ParameterProcessorFactory.newInstance((io.vertx.ext.web.validation.builder.ParameterProcessorFactory)io.vertx.ext.web.validation.builder.Parameters.optionalParam(parameterName, schemaBuilder)); return ret; } /** * @param parameterName * @param schemaBuilder * @return */ public static io.vertx.mutiny.ext.web.validation.builder.ParameterProcessorFactory param(String parameterName, io.vertx.json.schema.common.dsl.TupleSchemaBuilder schemaBuilder) { io.vertx.mutiny.ext.web.validation.builder.ParameterProcessorFactory ret = io.vertx.mutiny.ext.web.validation.builder.ParameterProcessorFactory.newInstance((io.vertx.ext.web.validation.builder.ParameterProcessorFactory)io.vertx.ext.web.validation.builder.Parameters.param(parameterName, schemaBuilder)); return ret; } /** * @param parameterName * @param schemaBuilder * @return */ public static io.vertx.mutiny.ext.web.validation.builder.ParameterProcessorFactory optionalParam(String parameterName, io.vertx.json.schema.common.dsl.TupleSchemaBuilder schemaBuilder) { io.vertx.mutiny.ext.web.validation.builder.ParameterProcessorFactory ret = io.vertx.mutiny.ext.web.validation.builder.ParameterProcessorFactory.newInstance((io.vertx.ext.web.validation.builder.ParameterProcessorFactory)io.vertx.ext.web.validation.builder.Parameters.optionalParam(parameterName, schemaBuilder)); return ret; } /** * @param parameterName * @param schemaBuilder * @return */ public static io.vertx.mutiny.ext.web.validation.builder.ParameterProcessorFactory param(String parameterName, io.vertx.json.schema.common.dsl.ObjectSchemaBuilder schemaBuilder) { io.vertx.mutiny.ext.web.validation.builder.ParameterProcessorFactory ret = io.vertx.mutiny.ext.web.validation.builder.ParameterProcessorFactory.newInstance((io.vertx.ext.web.validation.builder.ParameterProcessorFactory)io.vertx.ext.web.validation.builder.Parameters.param(parameterName, schemaBuilder)); return ret; } /** * @param parameterName * @param schemaBuilder * @return */ public static io.vertx.mutiny.ext.web.validation.builder.ParameterProcessorFactory optionalParam(String parameterName, io.vertx.json.schema.common.dsl.ObjectSchemaBuilder schemaBuilder) { io.vertx.mutiny.ext.web.validation.builder.ParameterProcessorFactory ret = io.vertx.mutiny.ext.web.validation.builder.ParameterProcessorFactory.newInstance((io.vertx.ext.web.validation.builder.ParameterProcessorFactory)io.vertx.ext.web.validation.builder.Parameters.optionalParam(parameterName, schemaBuilder)); return ret; } /** * @param parameterName * @param schemaBuilder * @param valueParser * @return */ public static io.vertx.mutiny.ext.web.validation.builder.ParameterProcessorFactory param(String parameterName, io.vertx.json.schema.common.dsl.SchemaBuilder schemaBuilder, io.vertx.ext.web.validation.impl.parser.ValueParser valueParser) { io.vertx.mutiny.ext.web.validation.builder.ParameterProcessorFactory ret = io.vertx.mutiny.ext.web.validation.builder.ParameterProcessorFactory.newInstance((io.vertx.ext.web.validation.builder.ParameterProcessorFactory)io.vertx.ext.web.validation.builder.Parameters.param(parameterName, schemaBuilder, valueParser)); return ret; } /** * @param parameterName * @param schemaBuilder * @param valueParser * @return */ public static io.vertx.mutiny.ext.web.validation.builder.ParameterProcessorFactory optionalParam(String parameterName, io.vertx.json.schema.common.dsl.SchemaBuilder schemaBuilder, io.vertx.ext.web.validation.impl.parser.ValueParser valueParser) { io.vertx.mutiny.ext.web.validation.builder.ParameterProcessorFactory ret = io.vertx.mutiny.ext.web.validation.builder.ParameterProcessorFactory.newInstance((io.vertx.ext.web.validation.builder.ParameterProcessorFactory)io.vertx.ext.web.validation.builder.Parameters.optionalParam(parameterName, schemaBuilder, valueParser)); return ret; } /** * @param parameterName * @param builder * @return */ public static io.vertx.mutiny.ext.web.validation.builder.StyledParameterProcessorFactory jsonParam(String parameterName, io.vertx.json.schema.common.dsl.SchemaBuilder builder) { io.vertx.mutiny.ext.web.validation.builder.StyledParameterProcessorFactory ret = io.vertx.mutiny.ext.web.validation.builder.StyledParameterProcessorFactory.newInstance((io.vertx.ext.web.validation.builder.StyledParameterProcessorFactory)io.vertx.ext.web.validation.builder.Parameters.jsonParam(parameterName, builder)); return ret; } /** * @param parameterName * @param builder * @return */ public static io.vertx.mutiny.ext.web.validation.builder.StyledParameterProcessorFactory optionalJsonParam(String parameterName, io.vertx.json.schema.common.dsl.SchemaBuilder builder) { io.vertx.mutiny.ext.web.validation.builder.StyledParameterProcessorFactory ret = io.vertx.mutiny.ext.web.validation.builder.StyledParameterProcessorFactory.newInstance((io.vertx.ext.web.validation.builder.StyledParameterProcessorFactory)io.vertx.ext.web.validation.builder.Parameters.optionalJsonParam(parameterName, builder)); return ret; } /** * @param parameterName * @param arrayParserFactory * @param schemaBuilder * @return */ public static io.vertx.mutiny.ext.web.validation.builder.StyledParameterProcessorFactory serializedParam(String parameterName, io.vertx.mutiny.ext.web.validation.builder.ArrayParserFactory arrayParserFactory, io.vertx.json.schema.common.dsl.ArraySchemaBuilder schemaBuilder) { io.vertx.mutiny.ext.web.validation.builder.StyledParameterProcessorFactory ret = io.vertx.mutiny.ext.web.validation.builder.StyledParameterProcessorFactory.newInstance((io.vertx.ext.web.validation.builder.StyledParameterProcessorFactory)io.vertx.ext.web.validation.builder.Parameters.serializedParam(parameterName, arrayParserFactory.getDelegate(), schemaBuilder)); return ret; } /** * @param parameterName * @param arrayParserFactory * @param schemaBuilder * @return */ public static io.vertx.mutiny.ext.web.validation.builder.StyledParameterProcessorFactory optionalSerializedParam(String parameterName, io.vertx.mutiny.ext.web.validation.builder.ArrayParserFactory arrayParserFactory, io.vertx.json.schema.common.dsl.ArraySchemaBuilder schemaBuilder) { io.vertx.mutiny.ext.web.validation.builder.StyledParameterProcessorFactory ret = io.vertx.mutiny.ext.web.validation.builder.StyledParameterProcessorFactory.newInstance((io.vertx.ext.web.validation.builder.StyledParameterProcessorFactory)io.vertx.ext.web.validation.builder.Parameters.optionalSerializedParam(parameterName, arrayParserFactory.getDelegate(), schemaBuilder)); return ret; } /** * @param parameterName * @param tupleParserFactory * @param schemaBuilder * @return */ public static io.vertx.mutiny.ext.web.validation.builder.StyledParameterProcessorFactory serializedParam(String parameterName, io.vertx.mutiny.ext.web.validation.builder.TupleParserFactory tupleParserFactory, io.vertx.json.schema.common.dsl.TupleSchemaBuilder schemaBuilder) { io.vertx.mutiny.ext.web.validation.builder.StyledParameterProcessorFactory ret = io.vertx.mutiny.ext.web.validation.builder.StyledParameterProcessorFactory.newInstance((io.vertx.ext.web.validation.builder.StyledParameterProcessorFactory)io.vertx.ext.web.validation.builder.Parameters.serializedParam(parameterName, tupleParserFactory.getDelegate(), schemaBuilder)); return ret; } /** * @param parameterName * @param tupleParserFactory * @param schemaBuilder * @return */ public static io.vertx.mutiny.ext.web.validation.builder.StyledParameterProcessorFactory optionalSerializedParam(String parameterName, io.vertx.mutiny.ext.web.validation.builder.TupleParserFactory tupleParserFactory, io.vertx.json.schema.common.dsl.TupleSchemaBuilder schemaBuilder) { io.vertx.mutiny.ext.web.validation.builder.StyledParameterProcessorFactory ret = io.vertx.mutiny.ext.web.validation.builder.StyledParameterProcessorFactory.newInstance((io.vertx.ext.web.validation.builder.StyledParameterProcessorFactory)io.vertx.ext.web.validation.builder.Parameters.optionalSerializedParam(parameterName, tupleParserFactory.getDelegate(), schemaBuilder)); return ret; } /** * @param parameterName * @param objectParserFactory * @param schemaBuilder * @return */ public static io.vertx.mutiny.ext.web.validation.builder.StyledParameterProcessorFactory serializedParam(String parameterName, io.vertx.mutiny.ext.web.validation.builder.ObjectParserFactory objectParserFactory, io.vertx.json.schema.common.dsl.ObjectSchemaBuilder schemaBuilder) { io.vertx.mutiny.ext.web.validation.builder.StyledParameterProcessorFactory ret = io.vertx.mutiny.ext.web.validation.builder.StyledParameterProcessorFactory.newInstance((io.vertx.ext.web.validation.builder.StyledParameterProcessorFactory)io.vertx.ext.web.validation.builder.Parameters.serializedParam(parameterName, objectParserFactory.getDelegate(), schemaBuilder)); return ret; } /** * @param parameterName * @param objectParserFactory * @param schemaBuilder * @return */ public static io.vertx.mutiny.ext.web.validation.builder.StyledParameterProcessorFactory optionalSerializedParam(String parameterName, io.vertx.mutiny.ext.web.validation.builder.ObjectParserFactory objectParserFactory, io.vertx.json.schema.common.dsl.ObjectSchemaBuilder schemaBuilder) { io.vertx.mutiny.ext.web.validation.builder.StyledParameterProcessorFactory ret = io.vertx.mutiny.ext.web.validation.builder.StyledParameterProcessorFactory.newInstance((io.vertx.ext.web.validation.builder.StyledParameterProcessorFactory)io.vertx.ext.web.validation.builder.Parameters.optionalSerializedParam(parameterName, objectParserFactory.getDelegate(), schemaBuilder)); return ret; } /** * @param parameterName * @param schemaBuilder * @return */ public static io.vertx.mutiny.ext.web.validation.builder.StyledParameterProcessorFactory explodedParam(String parameterName, io.vertx.json.schema.common.dsl.ArraySchemaBuilder schemaBuilder) { io.vertx.mutiny.ext.web.validation.builder.StyledParameterProcessorFactory ret = io.vertx.mutiny.ext.web.validation.builder.StyledParameterProcessorFactory.newInstance((io.vertx.ext.web.validation.builder.StyledParameterProcessorFactory)io.vertx.ext.web.validation.builder.Parameters.explodedParam(parameterName, schemaBuilder)); return ret; } /** * @param parameterName * @param schemaBuilder * @return */ public static io.vertx.mutiny.ext.web.validation.builder.StyledParameterProcessorFactory optionalExplodedParam(String parameterName, io.vertx.json.schema.common.dsl.ArraySchemaBuilder schemaBuilder) { io.vertx.mutiny.ext.web.validation.builder.StyledParameterProcessorFactory ret = io.vertx.mutiny.ext.web.validation.builder.StyledParameterProcessorFactory.newInstance((io.vertx.ext.web.validation.builder.StyledParameterProcessorFactory)io.vertx.ext.web.validation.builder.Parameters.optionalExplodedParam(parameterName, schemaBuilder)); return ret; } /** * @param parameterName * @param schemaBuilder * @return */ public static io.vertx.mutiny.ext.web.validation.builder.StyledParameterProcessorFactory explodedParam(String parameterName, io.vertx.json.schema.common.dsl.TupleSchemaBuilder schemaBuilder) { io.vertx.mutiny.ext.web.validation.builder.StyledParameterProcessorFactory ret = io.vertx.mutiny.ext.web.validation.builder.StyledParameterProcessorFactory.newInstance((io.vertx.ext.web.validation.builder.StyledParameterProcessorFactory)io.vertx.ext.web.validation.builder.Parameters.explodedParam(parameterName, schemaBuilder)); return ret; } /** * @param parameterName * @param schemaBuilder * @return */ public static io.vertx.mutiny.ext.web.validation.builder.StyledParameterProcessorFactory optionalExplodedParam(String parameterName, io.vertx.json.schema.common.dsl.TupleSchemaBuilder schemaBuilder) { io.vertx.mutiny.ext.web.validation.builder.StyledParameterProcessorFactory ret = io.vertx.mutiny.ext.web.validation.builder.StyledParameterProcessorFactory.newInstance((io.vertx.ext.web.validation.builder.StyledParameterProcessorFactory)io.vertx.ext.web.validation.builder.Parameters.optionalExplodedParam(parameterName, schemaBuilder)); return ret; } /** * @param parameterName * @param schemaBuilder * @return */ public static io.vertx.mutiny.ext.web.validation.builder.StyledParameterProcessorFactory explodedParam(String parameterName, io.vertx.json.schema.common.dsl.ObjectSchemaBuilder schemaBuilder) { io.vertx.mutiny.ext.web.validation.builder.StyledParameterProcessorFactory ret = io.vertx.mutiny.ext.web.validation.builder.StyledParameterProcessorFactory.newInstance((io.vertx.ext.web.validation.builder.StyledParameterProcessorFactory)io.vertx.ext.web.validation.builder.Parameters.explodedParam(parameterName, schemaBuilder)); return ret; } /** * @param parameterName * @param schemaBuilder * @return */ public static io.vertx.mutiny.ext.web.validation.builder.StyledParameterProcessorFactory optionalExplodedParam(String parameterName, io.vertx.json.schema.common.dsl.ObjectSchemaBuilder schemaBuilder) { io.vertx.mutiny.ext.web.validation.builder.StyledParameterProcessorFactory ret = io.vertx.mutiny.ext.web.validation.builder.StyledParameterProcessorFactory.newInstance((io.vertx.ext.web.validation.builder.StyledParameterProcessorFactory)io.vertx.ext.web.validation.builder.Parameters.optionalExplodedParam(parameterName, schemaBuilder)); return ret; } /** * @param parameterName * @param schemaBuilder * @return */ public static io.vertx.mutiny.ext.web.validation.builder.StyledParameterProcessorFactory deepObjectParam(String parameterName, io.vertx.json.schema.common.dsl.ObjectSchemaBuilder schemaBuilder) { io.vertx.mutiny.ext.web.validation.builder.StyledParameterProcessorFactory ret = io.vertx.mutiny.ext.web.validation.builder.StyledParameterProcessorFactory.newInstance((io.vertx.ext.web.validation.builder.StyledParameterProcessorFactory)io.vertx.ext.web.validation.builder.Parameters.deepObjectParam(parameterName, schemaBuilder)); return ret; } /** * @param parameterName * @param schemaBuilder * @return */ public static io.vertx.mutiny.ext.web.validation.builder.StyledParameterProcessorFactory optionalDeepObjectParam(String parameterName, io.vertx.json.schema.common.dsl.ObjectSchemaBuilder schemaBuilder) { io.vertx.mutiny.ext.web.validation.builder.StyledParameterProcessorFactory ret = io.vertx.mutiny.ext.web.validation.builder.StyledParameterProcessorFactory.newInstance((io.vertx.ext.web.validation.builder.StyledParameterProcessorFactory)io.vertx.ext.web.validation.builder.Parameters.optionalDeepObjectParam(parameterName, schemaBuilder)); return ret; } public static Parameters newInstance(io.vertx.ext.web.validation.builder.Parameters arg) { return arg != null ? new Parameters(arg) : null; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy