object ScalaObjectMapper
- Alphabetic
- By Inheritance
- ScalaObjectMapper
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- case class Builder extends Product with Serializable
A Builder for creating a new ScalaObjectMapper.
A Builder for creating a new ScalaObjectMapper. E.g., to build a new instance of a ScalaObjectMapper.
For example,
ScalaObjectMapper.builder .withPropertyNamingStrategy(new PropertyNamingStrategies.UpperCamelCaseStrategy) .withNumbersAsStrings(true) .withAdditionalJacksonModules(...) .objectMapper
or
val builder = ScalaObjectMapper.builder .withPropertyNamingStrategy(new PropertyNamingStrategies.UpperCamelCaseStrategy) .withNumbersAsStrings(true) .withAdditionalJacksonModules(...) val mapper = builder.objectMapper val camelCaseMapper = builder.camelCaseObjectMapper
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def apply(underlying: JacksonScalaObjectMapperType): ScalaObjectMapper
Creates a new ScalaObjectMapper from an underlying JacksonScalaObjectMapperType.
Creates a new ScalaObjectMapper from an underlying JacksonScalaObjectMapperType.
- underlying
the JacksonScalaObjectMapperType to wrap.
- returns
a new ScalaObjectMapper
- Note
this mutates the underlying mapper to configure it with the ScalaObjectMapper defaults.
- def apply(): ScalaObjectMapper
Returns a new ScalaObjectMapper configured with Builder defaults.
Returns a new ScalaObjectMapper configured with Builder defaults.
- returns
a new ScalaObjectMapper instance.
- See also
com.fasterxml.jackson.databind.InjectableValues
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def builder: Builder
Build a new instance of a ScalaObjectMapper.
Build a new instance of a ScalaObjectMapper.
For example,
ScalaObjectMapper.builder .withPropertyNamingStrategy(new PropertyNamingStrategies.UpperCamelCaseStrategy) .withNumbersAsStrings(true) .withAdditionalJacksonModules(...) .objectMapper
or
val builder = ScalaObjectMapper.builder .withPropertyNamingStrategy(new PropertyNamingStrategies.UpperCamelCaseStrategy) .withNumbersAsStrings(true) .withAdditionalJacksonModules(...) val mapper = builder.objectMapper val camelCaseMapper = builder.camelCaseObjectMapper
- def camelCaseObjectMapper(underlying: JacksonScalaObjectMapperType): ScalaObjectMapper
Utility to create a new ScalaObjectMapper explicitly configured with PropertyNamingStrategies.LOWER_CAMEL_CASE as a
PropertyNamingStrategy
wrapping the given JacksonScalaObjectMapperType.Utility to create a new ScalaObjectMapper explicitly configured with PropertyNamingStrategies.LOWER_CAMEL_CASE as a
PropertyNamingStrategy
wrapping the given JacksonScalaObjectMapperType.- Note
the
underlying
mapper is copied (not mutated) to produce the new ScalaObjectMapper with a PropertyNamingStrategies.LOWER_CAMEL_CASE PropertyNamingStrategy.
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def objectMapper(underlying: JacksonScalaObjectMapperType): ScalaObjectMapper
Utility to create a new ScalaObjectMapper which simply wraps the given JacksonScalaObjectMapperType.
Utility to create a new ScalaObjectMapper which simply wraps the given JacksonScalaObjectMapperType.
- Note
the
underlying
mapper is not mutated to produce the new ScalaObjectMapper
- def snakeCaseObjectMapper(underlying: JacksonScalaObjectMapperType): ScalaObjectMapper
Utility to create a new ScalaObjectMapper explicitly configured with PropertyNamingStrategies.SNAKE_CASE as a
PropertyNamingStrategy
wrapping the given JacksonScalaObjectMapperType.Utility to create a new ScalaObjectMapper explicitly configured with PropertyNamingStrategies.SNAKE_CASE as a
PropertyNamingStrategy
wrapping the given JacksonScalaObjectMapperType.- Note
the
underlying
mapper is copied (not mutated) to produce the new ScalaObjectMapper with a PropertyNamingStrategies.SNAKE_CASE PropertyNamingStrategy.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def yamlObjectMapper(underlying: JacksonScalaObjectMapperType): ScalaObjectMapper
Utility to create a new ScalaObjectMapper explicitly configured to serialize and deserialize YAML using the given JacksonScalaObjectMapperType.
Utility to create a new ScalaObjectMapper explicitly configured to serialize and deserialize YAML using the given JacksonScalaObjectMapperType. The resultant mapper PropertyNamingStrategy will be that configured on the
underlying
mapper.- Note
the
underlying
mapper is copied (not mutated) to produce the new ScalaObjectMapper to negotiate YAML serialization and deserialization.