JsonStringTemplate

io.github.cakelier.tuples.space.JsonTemplate$.JsonStringTemplate$
See theJsonStringTemplate companion trait

Companion object to the JsonStringTemplate trait, containing its implementation.

Attributes

Companion
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def apply(values: Option[Set[String]], minLength: Option[Int], maxLength: Option[Int], pattern: Option[Regex]): JsonStringTemplate

Factory method for building a new instance of the JsonStringTemplate trait.

Factory method for building a new instance of the JsonStringTemplate trait.

Value parameters

maxLength

the inclusive maximum length of the JsonElement that is to be matched

minLength

the inclusive minimum length of the JsonElement that is to be matched

pattern

the regular expression matching the JsonElement that is to be matched

values

the Set of values that the JsonElement can assume when is to be matched

Attributes

Returns

a new instance of the JsonStringTemplate trait