|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.jersey.api.json.JSONConfiguration.Builder
com.sun.jersey.api.json.JSONConfiguration.NaturalBuilder
public static class JSONConfiguration.NaturalBuilder
Builder class for constructing JSONConfiguration
options
for the JSONConfiguration.Notation.NATURAL
convention.
Field Summary |
---|
Fields inherited from class com.sun.jersey.api.json.JSONConfiguration.Builder |
---|
arrays, attrsAsElems, humanReadableFormatting, jsonXml2JsonNs, namespaceSeparator, nonStrings, rootUnwrapping, usePrefixAtNaturalAttributes |
Method Summary | |
---|---|
JSONConfiguration.NaturalBuilder |
humanReadableFormatting(boolean humanReadableFormatting)
If set to true, generated JSON will contain new-line characters and indentation, so that the output is easy to read for people. |
JSONConfiguration.NaturalBuilder |
rootUnwrapping(boolean rootUnwrapping)
Setter for XML root element unwrapping. |
JSONConfiguration.NaturalBuilder |
usePrefixesAtNaturalAttributes()
JSON names corresponding to XML attributes will be written using a '@' prefix This property is valid for the JSONConfiguration.Notation.NATURAL notation only. |
Methods inherited from class com.sun.jersey.api.json.JSONConfiguration.Builder |
---|
build |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public JSONConfiguration.NaturalBuilder rootUnwrapping(boolean rootUnwrapping)
JSONConfiguration.Notation.MAPPED
and JSONConfiguration.Notation.NATURAL
notations only.
If set to true, JSON code corresponding to the XML root element will be stripped out
The default value is false.
rootUnwrapping
- if set to true, JSON code corresponding to the
XML root element will be stripped out.
public JSONConfiguration.NaturalBuilder humanReadableFormatting(boolean humanReadableFormatting)
JSONConfiguration.Notation.NATURAL
notation only.
The default value is false.
humanReadableFormatting
- whether the output should be formatted to be readable by humans easily.
public JSONConfiguration.NaturalBuilder usePrefixesAtNaturalAttributes()
JSONConfiguration.Notation.NATURAL
notation only.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |