- All Known Subinterfaces:
- ToXContentFragment,- ToXContentObject
public interface ToXContent
An interface allowing to transfer an object to "XContent" using an 
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.- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic classstatic classstatic interface
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptiondefault booleantoXContent(XContentBuilder builder, ToXContent.Params params) 
- 
Field Details- 
EMPTY_PARAMS
- 
EMPTY
 
- 
- 
Method Details- 
toXContent- Throws:
- IOException
 
- 
isFragmentdefault boolean isFragment()
 
-