org.openapijsonschematools.client.components.schemas.IfAndThenWithoutElse.java
public class IfAndThenWithoutElse
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
Modifier and Type | Class and Description |
---|---|
sealed interface | IfAndThenWithoutElse.IfAndThenWithoutElse1Boxed sealed interface for validated payloads |
record | IfAndThenWithoutElse.IfAndThenWithoutElse1BoxedVoid boxed class to store validated null payloads |
record | IfAndThenWithoutElse.IfAndThenWithoutElse1BoxedBoolean boxed class to store validated boolean payloads |
record | IfAndThenWithoutElse.IfAndThenWithoutElse1BoxedNumber boxed class to store validated Number payloads |
record | IfAndThenWithoutElse.IfAndThenWithoutElse1BoxedString boxed class to store validated String payloads |
record | IfAndThenWithoutElse.IfAndThenWithoutElse1BoxedList boxed class to store validated List payloads |
record | IfAndThenWithoutElse.IfAndThenWithoutElse1BoxedMap boxed class to store validated Map payloads |
static class | IfAndThenWithoutElse.IfAndThenWithoutElse1 schema class |
sealed interface | IfAndThenWithoutElse.ThenBoxed sealed interface for validated payloads |
record | IfAndThenWithoutElse.ThenBoxedVoid boxed class to store validated null payloads |
record | IfAndThenWithoutElse.ThenBoxedBoolean boxed class to store validated boolean payloads |
record | IfAndThenWithoutElse.ThenBoxedNumber boxed class to store validated Number payloads |
record | IfAndThenWithoutElse.ThenBoxedString boxed class to store validated String payloads |
record | IfAndThenWithoutElse.ThenBoxedList boxed class to store validated List payloads |
record | IfAndThenWithoutElse.ThenBoxedMap boxed class to store validated Map payloads |
static class | IfAndThenWithoutElse.Then schema class |
sealed interface | IfAndThenWithoutElse.IfSchemaBoxed sealed interface for validated payloads |
record | IfAndThenWithoutElse.IfSchemaBoxedVoid boxed class to store validated null payloads |
record | IfAndThenWithoutElse.IfSchemaBoxedBoolean boxed class to store validated boolean payloads |
record | IfAndThenWithoutElse.IfSchemaBoxedNumber boxed class to store validated Number payloads |
record | IfAndThenWithoutElse.IfSchemaBoxedString boxed class to store validated String payloads |
record | IfAndThenWithoutElse.IfSchemaBoxedList boxed class to store validated List payloads |
record | IfAndThenWithoutElse.IfSchemaBoxedMap boxed class to store validated Map payloads |
static class | IfAndThenWithoutElse.IfSchema schema class |
public sealed interface IfAndThenWithoutElse1Boxed
permits
IfAndThenWithoutElse1BoxedVoid,
IfAndThenWithoutElse1BoxedBoolean,
IfAndThenWithoutElse1BoxedNumber,
IfAndThenWithoutElse1BoxedString,
IfAndThenWithoutElse1BoxedList,
IfAndThenWithoutElse1BoxedMap
sealed interface that stores validated payloads using boxed classes
public record IfAndThenWithoutElse1BoxedVoid
implements IfAndThenWithoutElse1Boxed
record that stores validated null payloads, sealed permits implementation
Constructor and Description |
---|
IfAndThenWithoutElse1BoxedVoid(Void data) Creates an instance, private visibility |
Modifier and Type | Method and Description |
---|---|
Void | data() validated payload |
@Nullable Object | getData() validated payload |
public record IfAndThenWithoutElse1BoxedBoolean
implements IfAndThenWithoutElse1Boxed
record that stores validated boolean payloads, sealed permits implementation
Constructor and Description |
---|
IfAndThenWithoutElse1BoxedBoolean(boolean data) Creates an instance, private visibility |
Modifier and Type | Method and Description |
---|---|
boolean | data() validated payload |
@Nullable Object | getData() validated payload |
public record IfAndThenWithoutElse1BoxedNumber
implements IfAndThenWithoutElse1Boxed
record that stores validated Number payloads, sealed permits implementation
Constructor and Description |
---|
IfAndThenWithoutElse1BoxedNumber(Number data) Creates an instance, private visibility |
Modifier and Type | Method and Description |
---|---|
Number | data() validated payload |
@Nullable Object | getData() validated payload |
public record IfAndThenWithoutElse1BoxedString
implements IfAndThenWithoutElse1Boxed
record that stores validated String payloads, sealed permits implementation
Constructor and Description |
---|
IfAndThenWithoutElse1BoxedString(String data) Creates an instance, private visibility |
Modifier and Type | Method and Description |
---|---|
String | data() validated payload |
@Nullable Object | getData() validated payload |
public record IfAndThenWithoutElse1BoxedList
implements IfAndThenWithoutElse1Boxed
record that stores validated List payloads, sealed permits implementation
Constructor and Description |
---|
IfAndThenWithoutElse1BoxedList(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 IfAndThenWithoutElse1BoxedMap
implements IfAndThenWithoutElse1Boxed
record that stores validated Map payloads, sealed permits implementation
Constructor and Description |
---|
IfAndThenWithoutElse1BoxedMap(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 IfAndThenWithoutElse1
extends JsonSchema
A schema class that validates payloads
Modifier and Type | Field and Description |
---|---|
Class<? extends JsonSchema> | if = IfSchema.class |
Class<? extends JsonSchema> | then = Then.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) |
IfAndThenWithoutElse1BoxedString | validateAndBox(String arg, SchemaConfiguration configuration) |
IfAndThenWithoutElse1BoxedVoid | validateAndBox(Void arg, SchemaConfiguration configuration) |
IfAndThenWithoutElse1BoxedNumber | validateAndBox(Number arg, SchemaConfiguration configuration) |
IfAndThenWithoutElse1BoxedBoolean | validateAndBox(boolean arg, SchemaConfiguration configuration) |
IfAndThenWithoutElse1BoxedMap | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) |
IfAndThenWithoutElse1BoxedList | validateAndBox(List<?> arg, SchemaConfiguration configuration) |
IfAndThenWithoutElse1Boxed | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
@Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
public sealed interface ThenBoxed
permits
ThenBoxedVoid,
ThenBoxedBoolean,
ThenBoxedNumber,
ThenBoxedString,
ThenBoxedList,
ThenBoxedMap
sealed interface that stores validated payloads using boxed classes
public record ThenBoxedVoid
implements ThenBoxed
record that stores validated null payloads, sealed permits implementation
Constructor and Description |
---|
ThenBoxedVoid(Void data) Creates an instance, private visibility |
Modifier and Type | Method and Description |
---|---|
Void | data() validated payload |
@Nullable Object | getData() validated payload |
public record ThenBoxedBoolean
implements ThenBoxed
record that stores validated boolean payloads, sealed permits implementation
Constructor and Description |
---|
ThenBoxedBoolean(boolean data) Creates an instance, private visibility |
Modifier and Type | Method and Description |
---|---|
boolean | data() validated payload |
@Nullable Object | getData() validated payload |
public record ThenBoxedNumber
implements ThenBoxed
record that stores validated Number payloads, sealed permits implementation
Constructor and Description |
---|
ThenBoxedNumber(Number data) Creates an instance, private visibility |
Modifier and Type | Method and Description |
---|---|
Number | data() validated payload |
@Nullable Object | getData() validated payload |
public record ThenBoxedString
implements ThenBoxed
record that stores validated String payloads, sealed permits implementation
Constructor and Description |
---|
ThenBoxedString(String data) Creates an instance, private visibility |
Modifier and Type | Method and Description |
---|---|
String | data() validated payload |
@Nullable Object | getData() validated payload |
public record ThenBoxedList
implements ThenBoxed
record that stores validated List payloads, sealed permits implementation
Constructor and Description |
---|
ThenBoxedList(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 ThenBoxedMap
implements ThenBoxed
record that stores validated Map payloads, sealed permits implementation
Constructor and Description |
---|
ThenBoxedMap(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 Then
extends JsonSchema
A schema class that validates payloads
Modifier and Type | Field and Description |
---|---|
Number | minimum = -10 |
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) |
ThenBoxedString | validateAndBox(String arg, SchemaConfiguration configuration) |
ThenBoxedVoid | validateAndBox(Void arg, SchemaConfiguration configuration) |
ThenBoxedNumber | validateAndBox(Number arg, SchemaConfiguration configuration) |
ThenBoxedBoolean | validateAndBox(boolean arg, SchemaConfiguration configuration) |
ThenBoxedMap | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) |
ThenBoxedList | validateAndBox(List<?> arg, SchemaConfiguration configuration) |
ThenBoxed | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
@Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
public sealed interface IfSchemaBoxed
permits
IfSchemaBoxedVoid,
IfSchemaBoxedBoolean,
IfSchemaBoxedNumber,
IfSchemaBoxedString,
IfSchemaBoxedList,
IfSchemaBoxedMap
sealed interface that stores validated payloads using boxed classes
public record IfSchemaBoxedVoid
implements IfSchemaBoxed
record that stores validated null payloads, sealed permits implementation
Constructor and Description |
---|
IfSchemaBoxedVoid(Void data) Creates an instance, private visibility |
Modifier and Type | Method and Description |
---|---|
Void | data() validated payload |
@Nullable Object | getData() validated payload |
public record IfSchemaBoxedBoolean
implements IfSchemaBoxed
record that stores validated boolean payloads, sealed permits implementation
Constructor and Description |
---|
IfSchemaBoxedBoolean(boolean data) Creates an instance, private visibility |
Modifier and Type | Method and Description |
---|---|
boolean | data() validated payload |
@Nullable Object | getData() validated payload |
public record IfSchemaBoxedNumber
implements IfSchemaBoxed
record that stores validated Number payloads, sealed permits implementation
Constructor and Description |
---|
IfSchemaBoxedNumber(Number data) Creates an instance, private visibility |
Modifier and Type | Method and Description |
---|---|
Number | data() validated payload |
@Nullable Object | getData() validated payload |
public record IfSchemaBoxedString
implements IfSchemaBoxed
record that stores validated String payloads, sealed permits implementation
Constructor and Description |
---|
IfSchemaBoxedString(String data) Creates an instance, private visibility |
Modifier and Type | Method and Description |
---|---|
String | data() validated payload |
@Nullable Object | getData() validated payload |
public record IfSchemaBoxedList
implements IfSchemaBoxed
record that stores validated List payloads, sealed permits implementation
Constructor and Description |
---|
IfSchemaBoxedList(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 IfSchemaBoxedMap
implements IfSchemaBoxed
record that stores validated Map payloads, sealed permits implementation
Constructor and Description |
---|
IfSchemaBoxedMap(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 IfSchema
extends JsonSchema
A schema class that validates payloads
Modifier and Type | Field and Description |
---|---|
Number | exclusiveMaximum = 0 |
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) |
IfSchemaBoxedString | validateAndBox(String arg, SchemaConfiguration configuration) |
IfSchemaBoxedVoid | validateAndBox(Void arg, SchemaConfiguration configuration) |
IfSchemaBoxedNumber | validateAndBox(Number arg, SchemaConfiguration configuration) |
IfSchemaBoxedBoolean | validateAndBox(boolean arg, SchemaConfiguration configuration) |
IfSchemaBoxedMap | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) |
IfSchemaBoxedList | validateAndBox(List<?> arg, SchemaConfiguration configuration) |
IfSchemaBoxed | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
@Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |