Packages

trait ScalaObjectMapper extends scala.ScalaObjectMapper

Self Type
ScalaObjectMapper with ObjectMapper
Annotations
@deprecated
Deprecated

(Since version 2.12.1) use com.fasterxml.jackson.module.scala.ScalaObjectMapper

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ScalaObjectMapper
  2. ScalaObjectMapper
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def acceptJsonFormatVisitor[T](visitor: JsonFormatVisitorWrapper)(implicit arg0: Manifest[T]): Unit

    Method for visiting type hierarchy for given type, using specified visitor.

    Method for visiting type hierarchy for given type, using specified visitor.

    This method can be used for things like generating Json Schema instance for specified type.

    T

    Type to generate schema for (possibly with generic signature)

    Definition Classes
    ScalaObjectMapper
    Since

    2.1

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. def constructType[T](implicit m: Manifest[T]): JavaType

    Convenience method for constructing com.fasterxml.jackson.databind.JavaType out of given type (typically java.lang.Class), but without explicit context.

    Convenience method for constructing com.fasterxml.jackson.databind.JavaType out of given type (typically java.lang.Class), but without explicit context.

    Definition Classes
    ScalaObjectMapper
  8. def convertValue[T](fromValue: Any)(implicit arg0: Manifest[T]): T

    Convenience method for doing two-step conversion from given value, into instance of given value type.

    Convenience method for doing two-step conversion from given value, into instance of given value type. This is functionality equivalent to first serializing given value into JSON, then binding JSON data into value of given type, but may be executed without fully serializing into JSON. Same converters (serializers, deserializers) will be used as for data binding, meaning same object mapper configuration works.

    Definition Classes
    ScalaObjectMapper
    Exceptions thrown

    IllegalArgumentException If conversion fails due to incompatible type; if so, root cause will contain underlying checked exception data binding functionality threw

  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. def readValue[T](src: Array[Byte], offset: Int, len: Int)(implicit arg0: Manifest[T]): T
    Definition Classes
    ScalaObjectMapper
  19. def readValue[T](src: Array[Byte])(implicit arg0: Manifest[T]): T
    Definition Classes
    ScalaObjectMapper
  20. def readValue[T](src: InputStream)(implicit arg0: Manifest[T]): T
    Definition Classes
    ScalaObjectMapper
  21. def readValue[T](src: Reader)(implicit arg0: Manifest[T]): T
    Definition Classes
    ScalaObjectMapper
  22. def readValue[T](content: String)(implicit arg0: Manifest[T]): T
    Definition Classes
    ScalaObjectMapper
  23. def readValue[T](src: URL)(implicit arg0: Manifest[T]): T
    Definition Classes
    ScalaObjectMapper
  24. def readValue[T](src: File)(implicit arg0: Manifest[T]): T
    Definition Classes
    ScalaObjectMapper
  25. def readValue[T](jp: JsonParser)(implicit arg0: Manifest[T]): T

    Method to deserialize JSON content into a Java type, reference to which is passed as argument.

    Method to deserialize JSON content into a Java type, reference to which is passed as argument. Type is passed using so-called "super type token" (see ) and specifically needs to be used if the root type is a parameterized (generic) container type.

    Definition Classes
    ScalaObjectMapper
  26. def readValues[T](jp: JsonParser)(implicit arg0: Manifest[T]): MappingIterator[T]

    Method for reading sequence of Objects from parser stream.

    Method for reading sequence of Objects from parser stream. Sequence can be either root-level "unwrapped" sequence (without surrounding JSON array), or a sequence contained in a JSON Array. In either case com.fasterxml.jackson.core.JsonParser must point to the first token of the first element, OR not point to any token (in which case it is advanced to the next token). This means, specifically, that for wrapped sequences, parser MUST NOT point to the surrounding START_ARRAY but rather to the token following it.

    Note that com.fasterxml.jackson.databind.ObjectReader has more complete set of variants.

    Definition Classes
    ScalaObjectMapper
  27. def readerFor[T](implicit arg0: Manifest[T]): ObjectReader

    Factory method for constructing com.fasterxml.jackson.databind.ObjectReader that will read or update instances of specified type

    Factory method for constructing com.fasterxml.jackson.databind.ObjectReader that will read or update instances of specified type

    Definition Classes
    ScalaObjectMapper
  28. def readerWithView[T](implicit arg0: Manifest[T]): ObjectReader

    Factory method for constructing com.fasterxml.jackson.databind.ObjectReader that will deserialize objects using specified JSON View (filter).

    Factory method for constructing com.fasterxml.jackson.databind.ObjectReader that will deserialize objects using specified JSON View (filter).

    Definition Classes
    ScalaObjectMapper
  29. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  30. def toString(): String
    Definition Classes
    AnyRef → Any
  31. def treeToValue[T](n: TreeNode)(implicit arg0: Manifest[T]): T

    Convenience conversion method that will bind data given JSON tree contains into specific value (usually bean) type.

    Convenience conversion method that will bind data given JSON tree contains into specific value (usually bean) type.

    Equivalent to:

    objectMapper.convertValue(n, valueClass);
    

    Definition Classes
    ScalaObjectMapper
  32. def updateValue[T](valueToUpdate: T, src: Array[Byte], offset: Int, len: Int)(implicit arg0: Manifest[T]): T
    Definition Classes
    ScalaObjectMapper
  33. def updateValue[T](valueToUpdate: T, src: Array[Byte])(implicit arg0: Manifest[T]): T
    Definition Classes
    ScalaObjectMapper
  34. def updateValue[T](valueToUpdate: T, src: InputStream)(implicit arg0: Manifest[T]): T
    Definition Classes
    ScalaObjectMapper
  35. def updateValue[T](valueToUpdate: T, src: Reader)(implicit arg0: Manifest[T]): T
    Definition Classes
    ScalaObjectMapper
  36. def updateValue[T](valueToUpdate: T, content: String)(implicit arg0: Manifest[T]): T
    Definition Classes
    ScalaObjectMapper
  37. def updateValue[T](valueToUpdate: T, src: URL)(implicit arg0: Manifest[T]): T
    Definition Classes
    ScalaObjectMapper
  38. def updateValue[T](valueToUpdate: T, src: File)(implicit arg0: Manifest[T]): T
    Definition Classes
    ScalaObjectMapper
  39. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  40. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  41. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  42. def writerFor[T](implicit arg0: Manifest[T]): ObjectWriter

    Factory method for constructing com.fasterxml.jackson.databind.ObjectWriter that will serialize objects using specified root type, instead of actual runtime type of value.

    Factory method for constructing com.fasterxml.jackson.databind.ObjectWriter that will serialize objects using specified root type, instead of actual runtime type of value. Type must be a super-type of runtime type.

    Main reason for using this method is performance, as writer is able to pre-fetch serializer to use before write, and if writer is used more than once this avoids addition per-value serializer lookups.

    Definition Classes
    ScalaObjectMapper
    Since

    2.5

  43. def writerWithView[T](implicit arg0: Manifest[T]): ObjectWriter

    Factory method for constructing com.fasterxml.jackson.databind.ObjectWriter that will serialize objects using specified JSON View (filter).

    Factory method for constructing com.fasterxml.jackson.databind.ObjectWriter that will serialize objects using specified JSON View (filter).

    Definition Classes
    ScalaObjectMapper

Deprecated Value Members

  1. final def addMixInAnnotations[Target, MixinSource]()(implicit arg0: Manifest[Target], arg1: Manifest[MixinSource]): ObjectMapper

    Definition Classes
    ScalaObjectMapper
    Annotations
    @deprecated
    Deprecated

    (Since version 2.5) use addMixIn

  2. final def addMixin[Target, MixinSource]()(implicit arg0: Manifest[Target], arg1: Manifest[MixinSource]): ObjectMapper

    Method to use for adding mix-in annotations to use for augmenting specified class or interface.

    Method to use for adding mix-in annotations to use for augmenting specified class or interface. All annotations from mixinSource are taken to override annotations that target (or its supertypes) has.

    Target

    Class (or interface) whose annotations to effectively override

    MixinSource

    Class (or interface) whose annotations are to be "added" to target's annotations, overriding as necessary

    Definition Classes
    ScalaObjectMapper
    Annotations
    @deprecated
    Deprecated

    (Since version 2.12.2) this support in jackson-databind is moving to the MapperBuilder

  3. def canDeserialize[T](implicit arg0: Manifest[T]): Boolean

    Method that can be called to check whether mapper thinks it could deserialize an Object of given type.

    Method that can be called to check whether mapper thinks it could deserialize an Object of given type. Check is done by checking whether a deserializer can be found for the type.

    returns

    True if mapper can find a serializer for instances of given class (potentially serializable), false otherwise (not serializable)

    Definition Classes
    ScalaObjectMapper
    Annotations
    @deprecated
    Deprecated

    (Since version 2.12.1) jackson-databind will not implement this in v3.0.0

  4. def canSerialize[T](implicit arg0: Manifest[T]): Boolean

    Method that can be called to check whether mapper thinks it could serialize an instance of given Class.

    Method that can be called to check whether mapper thinks it could serialize an instance of given Class. Check is done by checking whether a serializer can be found for the type.

    returns

    True if mapper can find a serializer for instances of given class (potentially serializable), false otherwise (not serializable)

    Definition Classes
    ScalaObjectMapper
    Annotations
    @deprecated
    Deprecated

    (Since version 2.12.1) jackson-databind will not implement this in v3.0.0

  5. final def findMixInClassFor[T](implicit arg0: Manifest[T]): Class[_]
    Definition Classes
    ScalaObjectMapper
    Annotations
    @deprecated
    Deprecated

    (Since version 2.12.2) this support in jackson-databind is moving to the MapperBuilder

  6. def generateJsonSchema[T](implicit arg0: Manifest[T]): JsonSchema

    Generate Json-schema instance for specified class.

    Generate Json-schema instance for specified class.

    T

    The class to generate schema for

    returns

    Constructed JSON schema.

    Definition Classes
    ScalaObjectMapper
    Annotations
    @deprecated
    Deprecated

    (Since version 2.2.2) JsonSchema is deprecated in favor of JsonFormatVisitor

  7. def reader[T](implicit arg0: Manifest[T]): ObjectReader

    Factory method for constructing com.fasterxml.jackson.databind.ObjectReader that will read or update instances of specified type

    Factory method for constructing com.fasterxml.jackson.databind.ObjectReader that will read or update instances of specified type

    Definition Classes
    ScalaObjectMapper
    Annotations
    @deprecated
    Deprecated

    (Since version 2.6) Replaced with readerFor

  8. def writerWithType[T](implicit arg0: Manifest[T]): ObjectWriter

    Definition Classes
    ScalaObjectMapper
    Annotations
    @deprecated
    Deprecated

    (Since version 2.5) Replaced with writerFor

Inherited from AnyRef

Inherited from Any

Ungrouped