Uses of Class
jsonvalues.spec.StrSchema
Packages that use StrSchema
Package
Description
The `jsonvalues.spec` package provides classes and interfaces for defining and working with JSON specifications
(specs) and parsers.
-
Uses of StrSchema in jsonvalues.spec
Methods in jsonvalues.spec that return StrSchemaModifier and TypeMethodDescriptionSets a format for string values based on predefined formats.StrSchema.setMaxLength
(int maxLength) Sets the maximum length for string values in the schema.StrSchema.setMinLength
(int minLength) Sets the minimum length for string values in the schema.StrSchema.setPattern
(String pattern) Sets a pattern that the string values must match.static StrSchema
StrSchema.withLength
(int minLength, int maxLength) static StrSchema
StrSchema.withMaxLength
(int maxLength) static StrSchema
StrSchema.withMinLength
(int minLength) static StrSchema
StrSchema.withPattern
(String pattern) Methods in jsonvalues.spec with parameters of type StrSchemaModifier and TypeMethodDescriptionstatic JsArraySpec
JsSpecs.arrayOfStr
(StrSchema schema) Returns a specification for a non-nullable array of strings, where each element of the array satisfies the given schema.static JsArraySpec
JsSpecs.arrayOfStr
(StrSchema elemSchema, ArraySchema arraySchema) Returns a specification for an array of strings with a specified minimum and maximum length, and each element conforming to the given element schema.static JsSpec
static JsSpec
non-nullable string Each element of the array must satisfy the given schema.