Object

com.snowplowanalytics.iglu.core.json4s

AttachToData

Related Doc: package json4s

Permalink

object AttachToData extends AttachTo[JValue] with ToData[JValue] with ExtractFromData

AttachTo instance for JValue data instance

By importing this instance and making it implicit you'll have: + attachSchemaKey for all JValue objects + toData derived from ToData trait + getSchemaKey derived from ExtractFrom

Linear Supertypes
ExtractFromData, ToData[JValue], ExtractContent[JValue], AttachTo[JValue], ExtractFrom[JValue], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AttachToData
  2. ExtractFromData
  3. ToData
  4. ExtractContent
  5. AttachTo
  6. ExtractFrom
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def attachSchemaKey(schemaKey: SchemaKey, instance: JValue): JValue

    Permalink

    Attach SchemaKey to undescribed JSON instance

    Attach SchemaKey to undescribed JSON instance

    schemaKey

    Schema description or reference to it

    instance

    undescribed JSON

    returns

    updated entity with attached SchemaKey

    Definition Classes
    AttachToData → AttachTo
  6. def clone(): AnyRef

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

    Permalink
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. def extractSchemaKey(entity: JValue): Option[SchemaKey]

    Permalink

    Extract SchemaKey from JValue data isntance

    Extract SchemaKey from JValue data isntance

    entity

    self-describing JValue data instance

    returns

    SchemaKey if JValue was self-describing

    Definition Classes
    ExtractFromData → ExtractFrom
  10. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  12. def getContent(json: JValue): Option[JValue]

    Permalink

    Get data itself from self-describing JSON data instance

    Get data itself from self-describing JSON data instance

    json

    self-describing JSON

    returns

    entity without SchemaKey

    Definition Classes
    AttachToData → ExtractContent
  13. def getContentPair(entity: JValue): Option[(SchemaKey, JValue)]

    Permalink
    Definition Classes
    ExtractContent
  14. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  19. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  20. def toData(entity: JValue): Option[SelfDescribingData[JValue]]

    Permalink
    Definition Classes
    ToData
  21. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  22. final def wait(): Unit

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

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

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

Inherited from ExtractFromData

Inherited from ToData[JValue]

Inherited from ExtractContent[JValue]

Inherited from AttachTo[JValue]

Inherited from ExtractFrom[JValue]

Inherited from AnyRef

Inherited from Any

Ungrouped