StringTemplate

io.github.cakelier.tuples.space.dsl.StringTemplate$

The object collecting all DSL templates for creating new instances of JsonStringTemplates.

Any new "string" template starts as "empty", meaning that only the type of the element will be checked for matching and the template will be capable of matching any string. Then, for further specifying the template, the user can decide whether to add some values to which the string should be equal, or a regular expression which should match the string, or an inclusive range of lengths for the string to match. The interval can be half-open on both ends and those can be specified in either order.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

class CompleteStringTemplate(values: Option[Set[String]], minLength: Option[Int], maxLength: Option[Int], pattern: Option[Regex]) extends Template

The "terminal" string template, for which no more information can be specified for building a JsonStringTemplate.

The "terminal" string template, for which no more information can be specified for building a JsonStringTemplate.

Attributes

Supertypes
trait Template
class Object
trait Matchable
class Any

The base template, capable of matching any string value.

The base template, capable of matching any string value.

Attributes

Supertypes
trait Template
class Object
trait Matchable
class Any
class WithMaximumStringTemplate(maxLength: Int) extends Template

The string template for which only the inclusive maximum length has been specified.

The string template for which only the inclusive maximum length has been specified.

Attributes

Supertypes
trait Template
class Object
trait Matchable
class Any
class WithMinimumStringTemplate(minLength: Int) extends Template

The string template for which only the inclusive minimum length has been specified.

The string template for which only the inclusive minimum length has been specified.

Attributes

Supertypes
trait Template
class Object
trait Matchable
class Any