Package org.spincast.plugins.jacksonjson
Class SpincastJsonManagerConfigDefault
java.lang.Object
org.spincast.plugins.jacksonjson.SpincastJsonManagerConfigDefault
- All Implemented Interfaces:
SpincastJsonManagerConfig
Default configuration for the Spincast Json Manager plugin.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintThe number of space to use as indentation for pretty print.The newline characters to use for pretty print.booleanShould enums be serialized to :{ "name" : "ENUM_ELEMENT_NAME", "label" : "result of ENUM_ELEMENT_NAME.toString()" }If false, an enum is serialized to itsnameonly.
-
Constructor Details
-
SpincastJsonManagerConfigDefault
public SpincastJsonManagerConfigDefault()
-
-
Method Details
-
getPrettyPrinterIndentationSpaceNumber
public int getPrettyPrinterIndentationSpaceNumber()Description copied from interface:SpincastJsonManagerConfigThe number of space to use as indentation for pretty print. Defaults to 4.- Specified by:
getPrettyPrinterIndentationSpaceNumberin interfaceSpincastJsonManagerConfig
-
getPrettyPrinterNewlineChars
Description copied from interface:SpincastJsonManagerConfigThe newline characters to use for pretty print. Defaults to "\n".- Specified by:
getPrettyPrinterNewlineCharsin interfaceSpincastJsonManagerConfig
-
isSerializeEnumsToNameAndLabelObjects
public boolean isSerializeEnumsToNameAndLabelObjects()Description copied from interface:SpincastJsonManagerConfigShould enums be serialized to :{ "name" : "ENUM_ELEMENT_NAME", "label" : "result of ENUM_ELEMENT_NAME.toString()" }If false, an enum is serialized to itsnameonly.- Specified by:
isSerializeEnumsToNameAndLabelObjectsin interfaceSpincastJsonManagerConfig
-