
public.javadoc.org.spincast.plugins.jacksonjson.SpincastJsonManagerConfigDefault.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spincast-website Show documentation
Show all versions of spincast-website Show documentation
Source code for the https://www.spincast.org website.
SpincastJsonManagerConfigDefault (org.spincast:spincast-framework 2.1.1 API)
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 Type
Method
Description
int
The number of space to use as indentation for pretty print.
The newline characters to use for pretty print.
boolean
Should enums be serialized to :
{
"name" : "ENUM_ELEMENT_NAME",
"label" : "result of ENUM_ELEMENT_NAME.toString()"
}
If false, an enum is serialized to its name
only.
-
Constructor Details
-
SpincastJsonManagerConfigDefault
public SpincastJsonManagerConfigDefault()
-
Method Details
-
getPrettyPrinterIndentationSpaceNumber
public int getPrettyPrinterIndentationSpaceNumber()
Description copied from interface: SpincastJsonManagerConfig
The number of space to use as indentation for pretty print.
Defaults to 4.
- Specified by:
getPrettyPrinterIndentationSpaceNumber
in interface SpincastJsonManagerConfig
-
getPrettyPrinterNewlineChars
Description copied from interface: SpincastJsonManagerConfig
The newline characters to use for pretty print.
Defaults to "\n".
- Specified by:
getPrettyPrinterNewlineChars
in interface SpincastJsonManagerConfig
-
isSerializeEnumsToNameAndLabelObjects
public boolean isSerializeEnumsToNameAndLabelObjects()
Description copied from interface: SpincastJsonManagerConfig
Should enums be serialized to :
{
"name" : "ENUM_ELEMENT_NAME",
"label" : "result of ENUM_ELEMENT_NAME.toString()"
}
If false, an enum is serialized to its name
only.
- Specified by:
isSerializeEnumsToNameAndLabelObjects
in interface SpincastJsonManagerConfig
© 2015 - 2025 Weber Informatics LLC | Privacy Policy