org.openapijsonschematools.client.components.schemas.PropertiesWithNullValuedInstanceProperties.java
public class PropertiesWithNullValuedInstanceProperties
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
public sealed interface PropertiesWithNullValuedInstanceProperties1Boxed
permits
PropertiesWithNullValuedInstanceProperties1BoxedVoid,
PropertiesWithNullValuedInstanceProperties1BoxedBoolean,
PropertiesWithNullValuedInstanceProperties1BoxedNumber,
PropertiesWithNullValuedInstanceProperties1BoxedString,
PropertiesWithNullValuedInstanceProperties1BoxedList,
PropertiesWithNullValuedInstanceProperties1BoxedMap
sealed interface that stores validated payloads using boxed classes
public record PropertiesWithNullValuedInstanceProperties1BoxedVoid
implements PropertiesWithNullValuedInstanceProperties1Boxed
record that stores validated null payloads, sealed permits implementation
Constructor and Description |
---|
PropertiesWithNullValuedInstanceProperties1BoxedVoid(Void data) Creates an instance, private visibility |
Modifier and Type | Method and Description |
---|---|
Void | data() validated payload |
@Nullable Object | getData() validated payload |
public record PropertiesWithNullValuedInstanceProperties1BoxedBoolean
implements PropertiesWithNullValuedInstanceProperties1Boxed
record that stores validated boolean payloads, sealed permits implementation
Constructor and Description |
---|
PropertiesWithNullValuedInstanceProperties1BoxedBoolean(boolean data) Creates an instance, private visibility |
Modifier and Type | Method and Description |
---|---|
boolean | data() validated payload |
@Nullable Object | getData() validated payload |
public record PropertiesWithNullValuedInstanceProperties1BoxedNumber
implements PropertiesWithNullValuedInstanceProperties1Boxed
record that stores validated Number payloads, sealed permits implementation
Constructor and Description |
---|
PropertiesWithNullValuedInstanceProperties1BoxedNumber(Number data) Creates an instance, private visibility |
Modifier and Type | Method and Description |
---|---|
Number | data() validated payload |
@Nullable Object | getData() validated payload |
public record PropertiesWithNullValuedInstanceProperties1BoxedString
implements PropertiesWithNullValuedInstanceProperties1Boxed
record that stores validated String payloads, sealed permits implementation
Constructor and Description |
---|
PropertiesWithNullValuedInstanceProperties1BoxedString(String data) Creates an instance, private visibility |
Modifier and Type | Method and Description |
---|---|
String | data() validated payload |
@Nullable Object | getData() validated payload |
public record PropertiesWithNullValuedInstanceProperties1BoxedList
implements PropertiesWithNullValuedInstanceProperties1Boxed
record that stores validated List payloads, sealed permits implementation
Constructor and Description |
---|
PropertiesWithNullValuedInstanceProperties1BoxedList(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 PropertiesWithNullValuedInstanceProperties1BoxedMap
implements PropertiesWithNullValuedInstanceProperties1Boxed
record that stores validated Map payloads, sealed permits implementation
Constructor and Description |
---|
PropertiesWithNullValuedInstanceProperties1BoxedMap(PropertiesWithNullValuedInstancePropertiesMap data) Creates an instance, private visibility |
Modifier and Type | Method and Description |
---|---|
PropertiesWithNullValuedInstancePropertiesMap | data() validated payload |
@Nullable Object | getData() validated payload |
public static class PropertiesWithNullValuedInstanceProperties1
extends JsonSchema
A schema class that validates payloads
Modifier and Type | Field and Description |
---|---|
Map<String, Class<? extends JsonSchema>> | properties = Map.ofEntries( new PropertyEntry("foo", Foo.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) |
PropertiesWithNullValuedInstancePropertiesMap | validate(Map<?, ?> arg, SchemaConfiguration configuration) |
FrozenList<@Nullable Object> | validate(List<?> arg, SchemaConfiguration configuration) |
PropertiesWithNullValuedInstanceProperties1BoxedString | validateAndBox(String arg, SchemaConfiguration configuration) |
PropertiesWithNullValuedInstanceProperties1BoxedVoid | validateAndBox(Void arg, SchemaConfiguration configuration) |
PropertiesWithNullValuedInstanceProperties1BoxedNumber | validateAndBox(Number arg, SchemaConfiguration configuration) |
PropertiesWithNullValuedInstanceProperties1BoxedBoolean | validateAndBox(boolean arg, SchemaConfiguration configuration) |
PropertiesWithNullValuedInstanceProperties1BoxedMap | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) |
PropertiesWithNullValuedInstanceProperties1BoxedList | validateAndBox(List<?> arg, SchemaConfiguration configuration) |
PropertiesWithNullValuedInstanceProperties1Boxed | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
@Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
public class PropertiesWithNullValuedInstancePropertiesMapBuilder
builder for Map<String, @Nullable Object>
A class that builds the Map input type
Constructor and Description |
---|
PropertiesWithNullValuedInstancePropertiesMapBuilder() 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 |
PropertiesWithNullValuedInstancePropertiesMapBuilder | foo(Void value) |
PropertiesWithNullValuedInstancePropertiesMapBuilder | additionalProperty(String key, Void value) |
PropertiesWithNullValuedInstancePropertiesMapBuilder | additionalProperty(String key, boolean value) |
PropertiesWithNullValuedInstancePropertiesMapBuilder | additionalProperty(String key, String value) |
PropertiesWithNullValuedInstancePropertiesMapBuilder | additionalProperty(String key, int value) |
PropertiesWithNullValuedInstancePropertiesMapBuilder | additionalProperty(String key, float value) |
PropertiesWithNullValuedInstancePropertiesMapBuilder | additionalProperty(String key, long value) |
PropertiesWithNullValuedInstancePropertiesMapBuilder | additionalProperty(String key, double value) |
PropertiesWithNullValuedInstancePropertiesMapBuilder | additionalProperty(String key, List<?> value) |
PropertiesWithNullValuedInstancePropertiesMapBuilder | additionalProperty(String key, Map<String, ?> value) |
public static class PropertiesWithNullValuedInstancePropertiesMap
extends FrozenMap<String, @Nullable Object>
A class to store validated Map payloads
Modifier and Type | Method and Description |
---|---|
static PropertiesWithNullValuedInstancePropertiesMap | of(Map<String, ? extends @Nullable Object> arg, SchemaConfiguration configuration) |
Void | foo() [optional] |
@Nullable Object | getAdditionalProperty(String name) provides type safety for additional properties |
public sealed interface FooBoxed
permits
FooBoxedVoid
sealed interface that stores validated payloads using boxed classes
public record FooBoxedVoid
implements FooBoxed
record that stores validated null payloads, sealed permits implementation
Constructor and Description |
---|
FooBoxedVoid(Void data) Creates an instance, private visibility |
Modifier and Type | Method and Description |
---|---|
Void | data() validated payload |
@Nullable Object | getData() validated payload |
public static class Foo
extends NullJsonSchema.NullJsonSchema1
A schema class that validates payloads
Methods Inherited from class org.openapijsonschematools.client.schemas.NullJsonSchema.NullJsonSchema1 |
---|
validate |
validateAndBox |