package selector
Contains a DSL to build a json selector. Start a selector with root and
then chain the rest.
val sel = root.index(10).?.fields("a", "b").compile
- Source
- package.scala
- Alphabetic
- By Inheritance
- selector
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- case class IndicesBuilder[S](predicate: IndexPredicate, strict: Boolean, parent: SelectorBuilder[_, _]) extends SelectorBuilder[NotApplicable, S] with Product with Serializable
- case class IteratorBuilder[S](strict: Boolean, parent: SelectorBuilder[_, _]) extends SelectorBuilder[NotApplicable, S] with Product with Serializable
-
class
Lenient extends AnyRef
Marker class to notify that a selector doesn't require the type of the element it is applied to to be the expected one (array or object)
- sealed trait Lenientable[In, M] extends AnyRef
- sealed trait Mandatoriable[In, S] extends AnyRef
-
class
Mandatory extends AnyRef
Marker class to notify that a selector requires the elements it selects to be present.
- case class NamesBuilder[M, S](predicate: NamePredicate, strict: Boolean, mandatory: Boolean, parent: SelectorBuilder[_, _]) extends SelectorBuilder[M, S] with Product with Serializable
-
class
NotApplicable extends AnyRef
Marker class to notify that a given selector builder capability is not applicable for this case.
-
class
Optional extends AnyRef
Marker class to notify that a selector doesn't require the elements it selects to be present.
-
sealed abstract
class
SelectorBuilder[M, S] extends AnyRef
Selector builder exposes a DSL to build selectors in a type safe manner.
-
class
Strict extends AnyRef
Marker class to notify that a selector requires the type of the element it is applied to to be the expected one (array or object)
Value Members
-
def
root: RootBuilder.type
The root selector builder, selects the root of the stream, i.e.
The root selector builder, selects the root of the stream, i.e. all tokens. This is the entry point for the selector DSL.
- object IndicesBuilder extends Serializable
- object IteratorBuilder extends Serializable
- object Lenientable
- object Mandatoriable
- object NamesBuilder extends Serializable
- object RootBuilder extends SelectorBuilder[NotApplicable, NotApplicable] with Product with Serializable
- object SelectorBuilder