SchemaCriterion

Companion object, which contains custom constructors for SchemaCriterion.

Companion:
class
trait Product
trait Mirror
class Object
trait Matchable
class Any

Type members

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Inherited from:
Mirror

Value members

Concrete methods

def apply(vendor: String, name: String, format: String, model: Int, revision: Int, addition: Int): SchemaCriterion

Constructs a comprehensive SchemaCriterion.

Constructs a comprehensive SchemaCriterion.

Returns:

the constructed SchemaCriterion.

def apply(vendor: String, name: String, format: String, model: Int, revision: Int): SchemaCriterion

Constructs a SchemaCriterion with everything except ADDITION.

Constructs a SchemaCriterion with everything except ADDITION.

Returns:

the constructed SchemaCriterion.

def apply(vendor: String, name: String, format: String, model: Int): SchemaCriterion

Constructs a SchemaCriterion, which is agnostic about REVISION and ADDITION (restricted to MODEL only).

Constructs a SchemaCriterion, which is agnostic about REVISION and ADDITION (restricted to MODEL only).

Returns:

the constructed SchemaCriterion.

def parse(criterion: String): Option[SchemaCriterion]

A custom constructor for a SchemaCriterion from a string like: "iglu:com.vendor/schema_name/jsonschema/1--".

A custom constructor for a SchemaCriterion from a string like: "iglu:com.vendor/schema_name/jsonschema/1--".

An Iglu schema URI is the default for schema lookup.

Value parameters:
criterion

The string to convert to a SchemaCriterion.

Returns:

A SchemaCriterion if the string satisfies the format.

Concrete fields

val criterionRegex: Regex

Canonical regular expression to extract SchemaCriterion.

Canonical regular expression to extract SchemaCriterion.