
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 1.2.0 API)
org.spincast.plugins.jacksonjson
Class SpincastJsonManagerConfigDefault
- java.lang.Object
-
- org.spincast.plugins.jacksonjson.SpincastJsonManagerConfigDefault
-
- All Implemented Interfaces:
- SpincastJsonManagerConfig
public class SpincastJsonManagerConfigDefault
extends Object
implements SpincastJsonManagerConfig
Default configuration for the Spincast Json Manager plugin.
-
-
Constructor Summary
Constructors
Constructor and Description
SpincastJsonManagerConfigDefault()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
int
getPrettyPrinterIndentationSpaceNumber()
The number of space to use as indentation for pretty print.
String
getPrettyPrinterNewlineChars()
The newline characters to use for pretty print.
boolean
isSerializeEnumsToNameAndLabelObjects()
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.
-
-
Method Detail
-
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
public String 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
Copyright © 2019. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy