Skip to content

Latest commit

 

History

History
362 lines (290 loc) · 17.9 KB

NestedOneofToCheckValidationSemantics.md

File metadata and controls

362 lines (290 loc) · 17.9 KB

NestedOneofToCheckValidationSemantics

org.openapijsonschematools.client.components.schemas.NestedOneofToCheckValidationSemantics.java public class NestedOneofToCheckValidationSemantics

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 NestedOneofToCheckValidationSemantics.NestedOneofToCheckValidationSemantics1Boxed
sealed interface for validated payloads
record NestedOneofToCheckValidationSemantics.NestedOneofToCheckValidationSemantics1BoxedVoid
boxed class to store validated null payloads
record NestedOneofToCheckValidationSemantics.NestedOneofToCheckValidationSemantics1BoxedBoolean
boxed class to store validated boolean payloads
record NestedOneofToCheckValidationSemantics.NestedOneofToCheckValidationSemantics1BoxedNumber
boxed class to store validated Number payloads
record NestedOneofToCheckValidationSemantics.NestedOneofToCheckValidationSemantics1BoxedString
boxed class to store validated String payloads
record NestedOneofToCheckValidationSemantics.NestedOneofToCheckValidationSemantics1BoxedList
boxed class to store validated List payloads
record NestedOneofToCheckValidationSemantics.NestedOneofToCheckValidationSemantics1BoxedMap
boxed class to store validated Map payloads
static class NestedOneofToCheckValidationSemantics.NestedOneofToCheckValidationSemantics1
schema class
sealed interface NestedOneofToCheckValidationSemantics.Schema0Boxed
sealed interface for validated payloads
record NestedOneofToCheckValidationSemantics.Schema0BoxedVoid
boxed class to store validated null payloads
record NestedOneofToCheckValidationSemantics.Schema0BoxedBoolean
boxed class to store validated boolean payloads
record NestedOneofToCheckValidationSemantics.Schema0BoxedNumber
boxed class to store validated Number payloads
record NestedOneofToCheckValidationSemantics.Schema0BoxedString
boxed class to store validated String payloads
record NestedOneofToCheckValidationSemantics.Schema0BoxedList
boxed class to store validated List payloads
record NestedOneofToCheckValidationSemantics.Schema0BoxedMap
boxed class to store validated Map payloads
static class NestedOneofToCheckValidationSemantics.Schema0
schema class
sealed interface NestedOneofToCheckValidationSemantics.Schema01Boxed
sealed interface for validated payloads
record NestedOneofToCheckValidationSemantics.Schema01BoxedVoid
boxed class to store validated null payloads
static class NestedOneofToCheckValidationSemantics.Schema01
schema class

NestedOneofToCheckValidationSemantics1Boxed

public sealed interface NestedOneofToCheckValidationSemantics1Boxed
permits
NestedOneofToCheckValidationSemantics1BoxedVoid, NestedOneofToCheckValidationSemantics1BoxedBoolean, NestedOneofToCheckValidationSemantics1BoxedNumber, NestedOneofToCheckValidationSemantics1BoxedString, NestedOneofToCheckValidationSemantics1BoxedList, NestedOneofToCheckValidationSemantics1BoxedMap

sealed interface that stores validated payloads using boxed classes

NestedOneofToCheckValidationSemantics1BoxedVoid

public record NestedOneofToCheckValidationSemantics1BoxedVoid
implements NestedOneofToCheckValidationSemantics1Boxed

record that stores validated null payloads, sealed permits implementation

Constructor Summary

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

Method Summary

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

NestedOneofToCheckValidationSemantics1BoxedBoolean

public record NestedOneofToCheckValidationSemantics1BoxedBoolean
implements NestedOneofToCheckValidationSemantics1Boxed

record that stores validated boolean payloads, sealed permits implementation

Constructor Summary

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

Method Summary

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

NestedOneofToCheckValidationSemantics1BoxedNumber

public record NestedOneofToCheckValidationSemantics1BoxedNumber
implements NestedOneofToCheckValidationSemantics1Boxed

record that stores validated Number payloads, sealed permits implementation

Constructor Summary

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

Method Summary

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

NestedOneofToCheckValidationSemantics1BoxedString

public record NestedOneofToCheckValidationSemantics1BoxedString
implements NestedOneofToCheckValidationSemantics1Boxed

record that stores validated String payloads, sealed permits implementation

Constructor Summary

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

Method Summary

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

NestedOneofToCheckValidationSemantics1BoxedList

public record NestedOneofToCheckValidationSemantics1BoxedList
implements NestedOneofToCheckValidationSemantics1Boxed

record that stores validated List payloads, sealed permits implementation

Constructor Summary

Constructor and Description
NestedOneofToCheckValidationSemantics1BoxedList(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

NestedOneofToCheckValidationSemantics1BoxedMap

public record NestedOneofToCheckValidationSemantics1BoxedMap
implements NestedOneofToCheckValidationSemantics1Boxed

record that stores validated Map payloads, sealed permits implementation

Constructor Summary

Constructor and Description
NestedOneofToCheckValidationSemantics1BoxedMap(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

NestedOneofToCheckValidationSemantics1

public static class NestedOneofToCheckValidationSemantics1
extends JsonSchema

A schema class that validates payloads

Field Summary

Modifier and Type Field and Description
List<Class<? extends JsonSchema>> oneOf = List.of(
    Schema0.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)
NestedOneofToCheckValidationSemantics1BoxedString validateAndBox(String arg, SchemaConfiguration configuration)
NestedOneofToCheckValidationSemantics1BoxedVoid validateAndBox(Void arg, SchemaConfiguration configuration)
NestedOneofToCheckValidationSemantics1BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration)
NestedOneofToCheckValidationSemantics1BoxedBoolean validateAndBox(boolean arg, SchemaConfiguration configuration)
NestedOneofToCheckValidationSemantics1BoxedMap validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration)
NestedOneofToCheckValidationSemantics1BoxedList validateAndBox(List<?> arg, SchemaConfiguration configuration)
NestedOneofToCheckValidationSemantics1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration)
@Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration)

Schema0Boxed

public sealed interface Schema0Boxed
permits
Schema0BoxedVoid, Schema0BoxedBoolean, Schema0BoxedNumber, Schema0BoxedString, Schema0BoxedList, Schema0BoxedMap

sealed interface that stores validated payloads using boxed classes

Schema0BoxedVoid

public record Schema0BoxedVoid
implements Schema0Boxed

record that stores validated null payloads, sealed permits implementation

Constructor Summary

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

Method Summary

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

Schema0BoxedBoolean

public record Schema0BoxedBoolean
implements Schema0Boxed

record that stores validated boolean payloads, sealed permits implementation

Constructor Summary

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

Method Summary

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

Schema0BoxedNumber

public record Schema0BoxedNumber
implements Schema0Boxed

record that stores validated Number payloads, sealed permits implementation

Constructor Summary

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

Method Summary

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

Schema0BoxedString

public record Schema0BoxedString
implements Schema0Boxed

record that stores validated String payloads, sealed permits implementation

Constructor Summary

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

Method Summary

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

Schema0BoxedList

public record Schema0BoxedList
implements Schema0Boxed

record that stores validated List payloads, sealed permits implementation

Constructor Summary

Constructor and Description
Schema0BoxedList(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

Schema0BoxedMap

public record Schema0BoxedMap
implements Schema0Boxed

record that stores validated Map payloads, sealed permits implementation

Constructor Summary

Constructor and Description
Schema0BoxedMap(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

Schema0

public static class Schema0
extends JsonSchema

A schema class that validates payloads

Field Summary

Modifier and Type Field and Description
List<Class<? extends JsonSchema>> oneOf = List.of(
    Schema01.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)
Schema0BoxedString validateAndBox(String arg, SchemaConfiguration configuration)
Schema0BoxedVoid validateAndBox(Void arg, SchemaConfiguration configuration)
Schema0BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration)
Schema0BoxedBoolean validateAndBox(boolean arg, SchemaConfiguration configuration)
Schema0BoxedMap validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration)
Schema0BoxedList validateAndBox(List<?> arg, SchemaConfiguration configuration)
Schema0Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration)
@Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration)

Schema01Boxed

public sealed interface Schema01Boxed
permits
Schema01BoxedVoid

sealed interface that stores validated payloads using boxed classes

Schema01BoxedVoid

public record Schema01BoxedVoid
implements Schema01Boxed

record that stores validated null payloads, sealed permits implementation

Constructor Summary

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

Method Summary

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

Schema01

public static class Schema01
extends NullJsonSchema.NullJsonSchema1

A schema class that validates payloads

Methods Inherited from class org.openapijsonschematools.client.schemas.NullJsonSchema.NullJsonSchema1
validate
validateAndBox

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