Interface ToXContentFragment
-
- All Superinterfaces:
ToXContent
public interface ToXContentFragment extends ToXContent
An interface allowing to transfer an object to "XContent" using anXContentBuilder
. The difference betweenToXContentFragment
andToXContentObject
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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
-
Field Summary
-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Method Summary
Modifier and Type Method Description default boolean
isFragment()
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContent
toXContent
-
-
-
-
Method Detail
-
isFragment
default boolean isFragment()
- Specified by:
isFragment
in interfaceToXContent
-
-