Skip to content

Latest commit

 

History

History
207 lines (165 loc) · 12.3 KB

PatternpropertiesWithNullValuedInstanceProperties.md

File metadata and controls

207 lines (165 loc) · 12.3 KB

PatternpropertiesWithNullValuedInstanceProperties

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

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 PatternpropertiesWithNullValuedInstanceProperties.PatternpropertiesWithNullValuedInstanceProperties1Boxed
sealed interface for validated payloads
record PatternpropertiesWithNullValuedInstanceProperties.PatternpropertiesWithNullValuedInstanceProperties1BoxedVoid
boxed class to store validated null payloads
record PatternpropertiesWithNullValuedInstanceProperties.PatternpropertiesWithNullValuedInstanceProperties1BoxedBoolean
boxed class to store validated boolean payloads
record PatternpropertiesWithNullValuedInstanceProperties.PatternpropertiesWithNullValuedInstanceProperties1BoxedNumber
boxed class to store validated Number payloads
record PatternpropertiesWithNullValuedInstanceProperties.PatternpropertiesWithNullValuedInstanceProperties1BoxedString
boxed class to store validated String payloads
record PatternpropertiesWithNullValuedInstanceProperties.PatternpropertiesWithNullValuedInstanceProperties1BoxedList
boxed class to store validated List payloads
record PatternpropertiesWithNullValuedInstanceProperties.PatternpropertiesWithNullValuedInstanceProperties1BoxedMap
boxed class to store validated Map payloads
static class PatternpropertiesWithNullValuedInstanceProperties.PatternpropertiesWithNullValuedInstanceProperties1
schema class
sealed interface PatternpropertiesWithNullValuedInstanceProperties.BarBoxed
sealed interface for validated payloads
record PatternpropertiesWithNullValuedInstanceProperties.BarBoxedVoid
boxed class to store validated null payloads
static class PatternpropertiesWithNullValuedInstanceProperties.Bar
schema class

PatternpropertiesWithNullValuedInstanceProperties1Boxed

public sealed interface PatternpropertiesWithNullValuedInstanceProperties1Boxed
permits
PatternpropertiesWithNullValuedInstanceProperties1BoxedVoid, PatternpropertiesWithNullValuedInstanceProperties1BoxedBoolean, PatternpropertiesWithNullValuedInstanceProperties1BoxedNumber, PatternpropertiesWithNullValuedInstanceProperties1BoxedString, PatternpropertiesWithNullValuedInstanceProperties1BoxedList, PatternpropertiesWithNullValuedInstanceProperties1BoxedMap

sealed interface that stores validated payloads using boxed classes

PatternpropertiesWithNullValuedInstanceProperties1BoxedVoid

public record PatternpropertiesWithNullValuedInstanceProperties1BoxedVoid
implements PatternpropertiesWithNullValuedInstanceProperties1Boxed

record that stores validated null payloads, sealed permits implementation

Constructor Summary

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

Method Summary

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

PatternpropertiesWithNullValuedInstanceProperties1BoxedBoolean

public record PatternpropertiesWithNullValuedInstanceProperties1BoxedBoolean
implements PatternpropertiesWithNullValuedInstanceProperties1Boxed

record that stores validated boolean payloads, sealed permits implementation

Constructor Summary

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

Method Summary

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

PatternpropertiesWithNullValuedInstanceProperties1BoxedNumber

public record PatternpropertiesWithNullValuedInstanceProperties1BoxedNumber
implements PatternpropertiesWithNullValuedInstanceProperties1Boxed

record that stores validated Number payloads, sealed permits implementation

Constructor Summary

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

Method Summary

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

PatternpropertiesWithNullValuedInstanceProperties1BoxedString

public record PatternpropertiesWithNullValuedInstanceProperties1BoxedString
implements PatternpropertiesWithNullValuedInstanceProperties1Boxed

record that stores validated String payloads, sealed permits implementation

Constructor Summary

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

Method Summary

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

PatternpropertiesWithNullValuedInstanceProperties1BoxedList

public record PatternpropertiesWithNullValuedInstanceProperties1BoxedList
implements PatternpropertiesWithNullValuedInstanceProperties1Boxed

record that stores validated List payloads, sealed permits implementation

Constructor Summary

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

PatternpropertiesWithNullValuedInstanceProperties1BoxedMap

public record PatternpropertiesWithNullValuedInstanceProperties1BoxedMap
implements PatternpropertiesWithNullValuedInstanceProperties1Boxed

record that stores validated Map payloads, sealed permits implementation

Constructor Summary

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

PatternpropertiesWithNullValuedInstanceProperties1

public static class PatternpropertiesWithNullValuedInstanceProperties1
extends JsonSchema

A schema class that validates payloads

Field Summary

Modifier and Type Field and Description
Map<Pattern, Class<? extends JsonSchema>> patternProperties = Map.ofEntries(
    new AbstractMap.SimpleEntry<>(Pattern.compile("^.*bar$"), Bar.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)
PatternpropertiesWithNullValuedInstanceProperties1BoxedString validateAndBox(String arg, SchemaConfiguration configuration)
PatternpropertiesWithNullValuedInstanceProperties1BoxedVoid validateAndBox(Void arg, SchemaConfiguration configuration)
PatternpropertiesWithNullValuedInstanceProperties1BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration)
PatternpropertiesWithNullValuedInstanceProperties1BoxedBoolean validateAndBox(boolean arg, SchemaConfiguration configuration)
PatternpropertiesWithNullValuedInstanceProperties1BoxedMap validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration)
PatternpropertiesWithNullValuedInstanceProperties1BoxedList validateAndBox(List<?> arg, SchemaConfiguration configuration)
PatternpropertiesWithNullValuedInstanceProperties1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration)
@Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration)

BarBoxed

public sealed interface BarBoxed
permits
BarBoxedVoid

sealed interface that stores validated payloads using boxed classes

BarBoxedVoid

public record BarBoxedVoid
implements BarBoxed

record that stores validated null payloads, sealed permits implementation

Constructor Summary

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

Method Summary

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

Bar

public static class Bar
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]