org.openapijsonschematools.client.components.schemas.ComplexQuadrilateral.java
public class ComplexQuadrilateral
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
- sealed interfaces which store validated payloads, java version of a sum type
- boxed classes which store validated payloads, sealed permits class implementations
- classes to store validated map payloads, extends FrozenMap
- classes to build inputs for map payloads
- enum classes
Modifier and Type | Class and Description |
---|---|
sealed interface | ComplexQuadrilateral.ComplexQuadrilateral1Boxed sealed interface for validated payloads |
record | ComplexQuadrilateral.ComplexQuadrilateral1BoxedVoid boxed class to store validated null payloads |
record | ComplexQuadrilateral.ComplexQuadrilateral1BoxedBoolean boxed class to store validated boolean payloads |
record | ComplexQuadrilateral.ComplexQuadrilateral1BoxedNumber boxed class to store validated Number payloads |
record | ComplexQuadrilateral.ComplexQuadrilateral1BoxedString boxed class to store validated String payloads |
record | ComplexQuadrilateral.ComplexQuadrilateral1BoxedList boxed class to store validated List payloads |
record | ComplexQuadrilateral.ComplexQuadrilateral1BoxedMap boxed class to store validated Map payloads |
static class | ComplexQuadrilateral.ComplexQuadrilateral1 schema class |
sealed interface | ComplexQuadrilateral.Schema1Boxed sealed interface for validated payloads |
record | ComplexQuadrilateral.Schema1BoxedMap boxed class to store validated Map payloads |
static class | ComplexQuadrilateral.Schema1 schema class |
static class | ComplexQuadrilateral.Schema1MapBuilder builder for Map payloads |
static class | ComplexQuadrilateral.Schema1Map output class for Map payloads |
sealed interface | ComplexQuadrilateral.QuadrilateralTypeBoxed sealed interface for validated payloads |
record | ComplexQuadrilateral.QuadrilateralTypeBoxedString boxed class to store validated String payloads |
static class | ComplexQuadrilateral.QuadrilateralType schema class |
enum | ComplexQuadrilateral.StringQuadrilateralTypeEnums String enum |
public sealed interface ComplexQuadrilateral1Boxed
permits
ComplexQuadrilateral1BoxedVoid,
ComplexQuadrilateral1BoxedBoolean,
ComplexQuadrilateral1BoxedNumber,
ComplexQuadrilateral1BoxedString,
ComplexQuadrilateral1BoxedList,
ComplexQuadrilateral1BoxedMap
sealed interface that stores validated payloads using boxed classes
public record ComplexQuadrilateral1BoxedVoid
implements ComplexQuadrilateral1Boxed
record that stores validated null payloads, sealed permits implementation
Constructor and Description |
---|
ComplexQuadrilateral1BoxedVoid(Void data) Creates an instance, private visibility |
Modifier and Type | Method and Description |
---|---|
Void | data() validated payload |
@Nullable Object | getData() validated payload |
public record ComplexQuadrilateral1BoxedBoolean
implements ComplexQuadrilateral1Boxed
record that stores validated boolean payloads, sealed permits implementation
Constructor and Description |
---|
ComplexQuadrilateral1BoxedBoolean(boolean data) Creates an instance, private visibility |
Modifier and Type | Method and Description |
---|---|
boolean | data() validated payload |
@Nullable Object | getData() validated payload |
public record ComplexQuadrilateral1BoxedNumber
implements ComplexQuadrilateral1Boxed
record that stores validated Number payloads, sealed permits implementation
Constructor and Description |
---|
ComplexQuadrilateral1BoxedNumber(Number data) Creates an instance, private visibility |
Modifier and Type | Method and Description |
---|---|
Number | data() validated payload |
@Nullable Object | getData() validated payload |
public record ComplexQuadrilateral1BoxedString
implements ComplexQuadrilateral1Boxed
record that stores validated String payloads, sealed permits implementation
Constructor and Description |
---|
ComplexQuadrilateral1BoxedString(String data) Creates an instance, private visibility |
Modifier and Type | Method and Description |
---|---|
String | data() validated payload |
@Nullable Object | getData() validated payload |
public record ComplexQuadrilateral1BoxedList
implements ComplexQuadrilateral1Boxed
record that stores validated List payloads, sealed permits implementation
Constructor and Description |
---|
ComplexQuadrilateral1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
Modifier and Type | Method and Description |
---|---|
FrozenList<@Nullable Object> | data() validated payload |
@Nullable Object | getData() validated payload |
public record ComplexQuadrilateral1BoxedMap
implements ComplexQuadrilateral1Boxed
record that stores validated Map payloads, sealed permits implementation
Constructor and Description |
---|
ComplexQuadrilateral1BoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
Modifier and Type | Method and Description |
---|---|
FrozenMap<@Nullable Object> | data() validated payload |
@Nullable Object | getData() validated payload |
public static class ComplexQuadrilateral1
extends JsonSchema
A schema class that validates payloads
Modifier and Type | Field and Description |
---|---|
List<Class<? extends JsonSchema>> | allOf = List.of( QuadrilateralInterface.QuadrilateralInterface1.class, Schema1.class ;) |
Modifier and Type | Method and Description |
---|---|
String | validate(String arg, SchemaConfiguration configuration) |
Void | validate(Void arg, SchemaConfiguration configuration) |
int | validate(int arg, SchemaConfiguration configuration) |
long | validate(long arg, SchemaConfiguration configuration) |
float | validate(float arg, SchemaConfiguration configuration) |
double | validate(double arg, SchemaConfiguration configuration) |
Number | validate(Number arg, SchemaConfiguration configuration) |
boolean | validate(boolean arg, SchemaConfiguration configuration) |
FrozenMap<@Nullable Object> | validate(Map<?, ?> arg, SchemaConfiguration configuration) |
FrozenList<@Nullable Object> | validate(List<?> arg, SchemaConfiguration configuration) |
ComplexQuadrilateral1BoxedString | validateAndBox(String arg, SchemaConfiguration configuration) |
ComplexQuadrilateral1BoxedVoid | validateAndBox(Void arg, SchemaConfiguration configuration) |
ComplexQuadrilateral1BoxedNumber | validateAndBox(Number arg, SchemaConfiguration configuration) |
ComplexQuadrilateral1BoxedBoolean | validateAndBox(boolean arg, SchemaConfiguration configuration) |
ComplexQuadrilateral1BoxedMap | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) |
ComplexQuadrilateral1BoxedList | validateAndBox(List<?> arg, SchemaConfiguration configuration) |
ComplexQuadrilateral1Boxed | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
@Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
public sealed interface Schema1Boxed
permits
Schema1BoxedMap
sealed interface that stores validated payloads using boxed classes
public record Schema1BoxedMap
implements Schema1Boxed
record that stores validated Map payloads, sealed permits implementation
Constructor and Description |
---|
Schema1BoxedMap(Schema1Map data) Creates an instance, private visibility |
Modifier and Type | Method and Description |
---|---|
Schema1Map | data() validated payload |
@Nullable Object | getData() validated payload |
public static class Schema1
extends JsonSchema
A schema class that validates payloads
import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags;
import org.openapijsonschematools.client.configurations.SchemaConfiguration;
import org.openapijsonschematools.client.exceptions.ValidationException;
import org.openapijsonschematools.client.schemas.validation.MapUtils;
import org.openapijsonschematools.client.schemas.validation.FrozenList;
import org.openapijsonschematools.client.schemas.validation.FrozenMap;
import org.openapijsonschematools.client.components.schemas.ComplexQuadrilateral;
import java.util.Arrays;
import java.util.List;
import java.util.AbstractMap;
static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build());
// Map validation
ComplexQuadrilateral.Schema1Map validatedPayload =
ComplexQuadrilateral.Schema1.validate(
new ComplexQuadrilateral.Schema1MapBuilder()
.quadrilateralType("ComplexQuadrilateral")
.build(),
configuration
);
Modifier and Type | Field and Description |
---|---|
Set<Class<?>> | type = Set.of(Map.class) |
Map<String, Class<? extends JsonSchema>> | properties = Map.ofEntries( new PropertyEntry("quadrilateralType", QuadrilateralType.class)) ) |
Modifier and Type | Method and Description |
---|---|
Schema1Map | validate(Map<?, ?> arg, SchemaConfiguration configuration) |
Schema1BoxedMap | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) |
Schema1Boxed | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
@Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
public class Schema1MapBuilder
builder for Map<String, @Nullable Object>
A class that builds the Map input type
Constructor and Description |
---|
Schema1MapBuilder() Creates a builder that contains an empty map |
Modifier and Type | Method and Description |
---|---|
Map<String, @Nullable Object> | build() Returns map input that should be used with Schema.validate |
Schema1MapBuilder | quadrilateralType(String value) |
Schema1MapBuilder | quadrilateralType(StringQuadrilateralTypeEnums value) |
Schema1MapBuilder | additionalProperty(String key, Void value) |
Schema1MapBuilder | additionalProperty(String key, boolean value) |
Schema1MapBuilder | additionalProperty(String key, String value) |
Schema1MapBuilder | additionalProperty(String key, int value) |
Schema1MapBuilder | additionalProperty(String key, float value) |
Schema1MapBuilder | additionalProperty(String key, long value) |
Schema1MapBuilder | additionalProperty(String key, double value) |
Schema1MapBuilder | additionalProperty(String key, List<?> value) |
Schema1MapBuilder | additionalProperty(String key, Map<String, ?> value) |
public static class Schema1Map
extends FrozenMap<String, @Nullable Object>
A class to store validated Map payloads
Modifier and Type | Method and Description |
---|---|
static Schema1Map | of(Map<String, ? extends @Nullable Object> arg, SchemaConfiguration configuration) |
String | quadrilateralType() [optional] must be one of ["ComplexQuadrilateral"] |
@Nullable Object | getAdditionalProperty(String name) provides type safety for additional properties |
public sealed interface QuadrilateralTypeBoxed
permits
QuadrilateralTypeBoxedString
sealed interface that stores validated payloads using boxed classes
public record QuadrilateralTypeBoxedString
implements QuadrilateralTypeBoxed
record that stores validated String payloads, sealed permits implementation
Constructor and Description |
---|
QuadrilateralTypeBoxedString(String data) Creates an instance, private visibility |
Modifier and Type | Method and Description |
---|---|
String | data() validated payload |
@Nullable Object | getData() validated payload |
public static class QuadrilateralType
extends JsonSchema
A schema class that validates payloads
import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags;
import org.openapijsonschematools.client.configurations.SchemaConfiguration;
import org.openapijsonschematools.client.exceptions.ValidationException;
import org.openapijsonschematools.client.schemas.validation.MapUtils;
import org.openapijsonschematools.client.schemas.validation.FrozenList;
import org.openapijsonschematools.client.schemas.validation.FrozenMap;
import org.openapijsonschematools.client.components.schemas.ComplexQuadrilateral;
import java.util.Arrays;
import java.util.List;
import java.util.AbstractMap;
static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build());
// String validation
String validatedPayload = ComplexQuadrilateral.QuadrilateralType.validate(
"ComplexQuadrilateral",
configuration
);
Modifier and Type | Field and Description |
---|---|
Set<Class<?>> | type = Set.of( String.class ) |
Set | enumValues = SetMaker.makeSet( "ComplexQuadrilateral" ) |
Modifier and Type | Method and Description |
---|---|
String | validate(String arg, SchemaConfiguration configuration) |
String | validate(StringQuadrilateralTypeEnums arg, SchemaConfiguration configuration) |
QuadrilateralTypeBoxedString | validateAndBox(String arg, SchemaConfiguration configuration) |
QuadrilateralTypeBoxed | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
@Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
public enum StringQuadrilateralTypeEnums
extends Enum<StringQuadrilateralTypeEnums>
A class that stores String enum values
Enum Constant | Description |
---|---|
COMPLEX_QUADRILATERAL | value = "ComplexQuadrilateral" |