PathMatch
grackle.Mapping.MappingPredicate.PathMatch
case class PathMatch(path: Path) extends MappingPredicate
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
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait MappingPredicateclass Objecttrait Matchableclass Any
Members list
In this article