ToXContentFragment
, ToXContentObject
public interface ToXContent
XContentBuilder
.
The output may or may not be a value object. Objects implementing ToXContentObject
output a valid value
but those that don't may or may not require emitting a startObject and an endObject.Modifier and Type | Interface | Description |
---|---|---|
static class |
ToXContent.DelegatingMapParams |
|
static class |
ToXContent.MapParams |
|
static interface |
ToXContent.Params |
Modifier and Type | Field | Description |
---|---|---|
static ToXContent.Params |
EMPTY_PARAMS |
Modifier and Type | Method | Description |
---|---|---|
default boolean |
isFragment() |
|
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
static final ToXContent.Params EMPTY_PARAMS
XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
java.io.IOException
default boolean isFragment()