ToXContentpublic interface ToXContentObject extends ToXContent
XContentBuilder. The difference between ToXContentFragment
and ToXContentObject is that the former outputs a fragment that
requires to start and end a new anonymous object externally, while the latter
guarantees that what gets printed out is fully valid syntax without any
external addition.ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_PARAMS| Modifier and Type | Method | Description |
|---|---|---|
default boolean |
isFragment() |
toXContentdefault boolean isFragment()
isFragment in interface ToXContent