Skip to content

Latest commit

 

History

History
480 lines (387 loc) · 21.1 KB

File metadata and controls

480 lines (387 loc) · 21.1 KB

IfAndThenWithoutElse

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

Nested Class Summary

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

IfAndThenWithoutElse1Boxed

public sealed interface IfAndThenWithoutElse1Boxed
permits
IfAndThenWithoutElse1BoxedVoid, IfAndThenWithoutElse1BoxedBoolean, IfAndThenWithoutElse1BoxedNumber, IfAndThenWithoutElse1BoxedString, IfAndThenWithoutElse1BoxedList, IfAndThenWithoutElse1BoxedMap

sealed interface that stores validated payloads using boxed classes

IfAndThenWithoutElse1BoxedVoid

public record IfAndThenWithoutElse1BoxedVoid
implements IfAndThenWithoutElse1Boxed

record that stores validated null payloads, sealed permits implementation

Constructor Summary

Constructor and Description
IfAndThenWithoutElse1BoxedVoid(Void data)
Creates an instance, private visibility

Method Summary

Modifier and Type Method and Description
Void data()
validated payload
@Nullable Object getData()
validated payload

IfAndThenWithoutElse1BoxedBoolean

public record IfAndThenWithoutElse1BoxedBoolean
implements IfAndThenWithoutElse1Boxed

record that stores validated boolean payloads, sealed permits implementation

Constructor Summary

Constructor and Description
IfAndThenWithoutElse1BoxedBoolean(boolean data)
Creates an instance, private visibility

Method Summary

Modifier and Type Method and Description
boolean data()
validated payload
@Nullable Object getData()
validated payload

IfAndThenWithoutElse1BoxedNumber

public record IfAndThenWithoutElse1BoxedNumber
implements IfAndThenWithoutElse1Boxed

record that stores validated Number payloads, sealed permits implementation

Constructor Summary

Constructor and Description
IfAndThenWithoutElse1BoxedNumber(Number data)
Creates an instance, private visibility

Method Summary

Modifier and Type Method and Description
Number data()
validated payload
@Nullable Object getData()
validated payload

IfAndThenWithoutElse1BoxedString

public record IfAndThenWithoutElse1BoxedString
implements IfAndThenWithoutElse1Boxed

record that stores validated String payloads, sealed permits implementation

Constructor Summary

Constructor and Description
IfAndThenWithoutElse1BoxedString(String data)
Creates an instance, private visibility

Method Summary

Modifier and Type Method and Description
String data()
validated payload
@Nullable Object getData()
validated payload

IfAndThenWithoutElse1BoxedList

public record IfAndThenWithoutElse1BoxedList
implements IfAndThenWithoutElse1Boxed

record that stores validated List payloads, sealed permits implementation

Constructor Summary

Constructor and Description
IfAndThenWithoutElse1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility

Method Summary

Modifier and Type Method and Description
FrozenList<@Nullable Object> data()
validated payload
@Nullable Object getData()
validated payload

IfAndThenWithoutElse1BoxedMap

public record IfAndThenWithoutElse1BoxedMap
implements IfAndThenWithoutElse1Boxed

record that stores validated Map payloads, sealed permits implementation

Constructor Summary

Constructor and Description
IfAndThenWithoutElse1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility

Method Summary

Modifier and Type Method and Description
FrozenMap<@Nullable Object> data()
validated payload
@Nullable Object getData()
validated payload

IfAndThenWithoutElse1

public static class IfAndThenWithoutElse1
extends JsonSchema

A schema class that validates payloads

Field Summary

Modifier and Type Field and Description
Class<? extends JsonSchema> if = IfSchema.class
Class<? extends JsonSchema> then = Then.class

Method Summary

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)

ThenBoxed

public sealed interface ThenBoxed
permits
ThenBoxedVoid, ThenBoxedBoolean, ThenBoxedNumber, ThenBoxedString, ThenBoxedList, ThenBoxedMap

sealed interface that stores validated payloads using boxed classes

ThenBoxedVoid

public record ThenBoxedVoid
implements ThenBoxed

record that stores validated null payloads, sealed permits implementation

Constructor Summary

Constructor and Description
ThenBoxedVoid(Void data)
Creates an instance, private visibility

Method Summary

Modifier and Type Method and Description
Void data()
validated payload
@Nullable Object getData()
validated payload

ThenBoxedBoolean

public record ThenBoxedBoolean
implements ThenBoxed

record that stores validated boolean payloads, sealed permits implementation

Constructor Summary

Constructor and Description
ThenBoxedBoolean(boolean data)
Creates an instance, private visibility

Method Summary

Modifier and Type Method and Description
boolean data()
validated payload
@Nullable Object getData()
validated payload

ThenBoxedNumber

public record ThenBoxedNumber
implements ThenBoxed

record that stores validated Number payloads, sealed permits implementation

Constructor Summary

Constructor and Description
ThenBoxedNumber(Number data)
Creates an instance, private visibility

Method Summary

Modifier and Type Method and Description
Number data()
validated payload
@Nullable Object getData()
validated payload

ThenBoxedString

public record ThenBoxedString
implements ThenBoxed

record that stores validated String payloads, sealed permits implementation

Constructor Summary

Constructor and Description
ThenBoxedString(String data)
Creates an instance, private visibility

Method Summary

Modifier and Type Method and Description
String data()
validated payload
@Nullable Object getData()
validated payload

ThenBoxedList

public record ThenBoxedList
implements ThenBoxed

record that stores validated List payloads, sealed permits implementation

Constructor Summary

Constructor and Description
ThenBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility

Method Summary

Modifier and Type Method and Description
FrozenList<@Nullable Object> data()
validated payload
@Nullable Object getData()
validated payload

ThenBoxedMap

public record ThenBoxedMap
implements ThenBoxed

record that stores validated Map payloads, sealed permits implementation

Constructor Summary

Constructor and Description
ThenBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility

Method Summary

Modifier and Type Method and Description
FrozenMap<@Nullable Object> data()
validated payload
@Nullable Object getData()
validated payload

Then

public static class Then
extends JsonSchema

A schema class that validates payloads

Field Summary

Modifier and Type Field and Description
Number minimum = -10

Method Summary

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)

IfSchemaBoxed

public sealed interface IfSchemaBoxed
permits
IfSchemaBoxedVoid, IfSchemaBoxedBoolean, IfSchemaBoxedNumber, IfSchemaBoxedString, IfSchemaBoxedList, IfSchemaBoxedMap

sealed interface that stores validated payloads using boxed classes

IfSchemaBoxedVoid

public record IfSchemaBoxedVoid
implements IfSchemaBoxed

record that stores validated null payloads, sealed permits implementation

Constructor Summary

Constructor and Description
IfSchemaBoxedVoid(Void data)
Creates an instance, private visibility

Method Summary

Modifier and Type Method and Description
Void data()
validated payload
@Nullable Object getData()
validated payload

IfSchemaBoxedBoolean

public record IfSchemaBoxedBoolean
implements IfSchemaBoxed

record that stores validated boolean payloads, sealed permits implementation

Constructor Summary

Constructor and Description
IfSchemaBoxedBoolean(boolean data)
Creates an instance, private visibility

Method Summary

Modifier and Type Method and Description
boolean data()
validated payload
@Nullable Object getData()
validated payload

IfSchemaBoxedNumber

public record IfSchemaBoxedNumber
implements IfSchemaBoxed

record that stores validated Number payloads, sealed permits implementation

Constructor Summary

Constructor and Description
IfSchemaBoxedNumber(Number data)
Creates an instance, private visibility

Method Summary

Modifier and Type Method and Description
Number data()
validated payload
@Nullable Object getData()
validated payload

IfSchemaBoxedString

public record IfSchemaBoxedString
implements IfSchemaBoxed

record that stores validated String payloads, sealed permits implementation

Constructor Summary

Constructor and Description
IfSchemaBoxedString(String data)
Creates an instance, private visibility

Method Summary

Modifier and Type Method and Description
String data()
validated payload
@Nullable Object getData()
validated payload

IfSchemaBoxedList

public record IfSchemaBoxedList
implements IfSchemaBoxed

record that stores validated List payloads, sealed permits implementation

Constructor Summary

Constructor and Description
IfSchemaBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility

Method Summary

Modifier and Type Method and Description
FrozenList<@Nullable Object> data()
validated payload
@Nullable Object getData()
validated payload

IfSchemaBoxedMap

public record IfSchemaBoxedMap
implements IfSchemaBoxed

record that stores validated Map payloads, sealed permits implementation

Constructor Summary

Constructor and Description
IfSchemaBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility

Method Summary

Modifier and Type Method and Description
FrozenMap<@Nullable Object> data()
validated payload
@Nullable Object getData()
validated payload

IfSchema

public static class IfSchema
extends JsonSchema

A schema class that validates payloads

Field Summary

Modifier and Type Field and Description
Number exclusiveMaximum = 0

Method Summary

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)

[Back to top] [Back to Component Schemas] [Back to README]