MappingPredicate

grackle.Mapping.MappingPredicate
See theMappingPredicate companion trait

Attributes

Companion
trait
Source
mapping.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

case class PathMatch(path: Path) extends MappingPredicate

A predicate that matches the given Path as the suffix of the context path.

A predicate that matches the given Path as the suffix of the context path.

Note that a Path corresponds to an initial type, followed by a sequence of field selectors. The type found by following the field selectors from the initial type determines the final type to which the predicate applies.

This predicate is thus a slightly more restrictive variant of PrefixedTypeMatch which will match in any context with the given path and final type, irrespective of the initial type.

In practice PathMatch is more convenient to use in most circumstances and should be preferred to PrefixedTypeMatch unless the semantics of the latter are absolutely required.

Attributes

Source
mapping.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

A predicate that matches a specific type with a given path prefix.

A predicate that matches a specific type with a given path prefix.

This predicate corresponds to the semantics of the PrefixedMapping in earlier releases.

Attributes

Source
mapping.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class TypeMatch(tpe: NamedType) extends MappingPredicate

A predicate that matches a specific type in any context

A predicate that matches a specific type in any context

Attributes

Source
mapping.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Value members

Concrete methods

Extend the given context by the given path, if possible, navigating through interfaces and unions as necessary.

Extend the given context by the given path, if possible, navigating through interfaces and unions as necessary.

Attributes

Source
mapping.scala