org.openapijsonschematools.client.components.schemas.StringSchema.java
public class StringSchema
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 | StringSchema.StringSchema1Boxed sealed interface for validated payloads |
| record | StringSchema.StringSchema1BoxedString boxed class to store validated String payloads |
| static class | StringSchema.StringSchema1 schema class |
public sealed interface StringSchema1Boxed
permits
StringSchema1BoxedString
sealed interface that stores validated payloads using boxed classes
public record StringSchema1BoxedString
implements StringSchema1Boxed
record that stores validated String payloads, sealed permits implementation
| Constructor and Description |
|---|
| StringSchema1BoxedString(String data) Creates an instance, private visibility |
| Modifier and Type | Method and Description |
|---|---|
| String | data() validated payload |
| @Nullable Object | getData() validated payload |
public static class StringSchema1
extends StringJsonSchema.StringJsonSchema1
A schema class that validates payloads
| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 |
|---|
| validate |
| validateAndBox |