Class/Object

agora.api.json

JPath

Related Docs: object JPath | package json

Permalink

case class JPath(parts: List[JPart]) extends Product with Serializable

Represents a json path (like an xpath is to xml)

parts

the segments of the path

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JPath
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new JPath(parts: List[JPart])

    Permalink

    parts

    the segments of the path

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def ++(other: JPath): JPath

    Permalink
  4. def +:[T](other: T)(implicit ev: (T) ⇒ JPart): JPath

    Permalink
  5. def :+[T](other: T)(implicit ev: (T) ⇒ JPart): JPath

    Permalink
  6. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  7. def appendTo[T](json: Json, value: T)(implicit arg0: Encoder[T]): Option[Json]

    Permalink

    The json w/ the value appended, if the path existed in the target json

    The json w/ the value appended, if the path existed in the target json

    T

    the value type which can be encoded to json

    json

    the target json to which the value will be appended at this path

    value

    the value to append

    returns

    the updated json if the path existed in the target json

  8. def apply(json: Json): Option[Json]

    Permalink
  9. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  10. def asMatcher: JMatcher

    Permalink
  11. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. def json: Json

    Permalink
  17. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. val parts: List[JPart]

    Permalink

    the segments of the path

  21. def removeFrom(json: Json): Option[Json]

    Permalink

    removes the entry from the given json.

    removes the entry from the given json. any 'array contains' filters are negated, as the intention is to _remove_ matching values, not select (match) them.

    json

    the target json to which the value will be removed

    returns

    the updated json if the path existed in the target json

  22. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  23. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped