Package org.elasticsearch.common.xcontent
package org.elasticsearch.common.xcontent
-
Interface SummaryInterfaceDescriptionContextParser<Context,T>Reads an object from a parser using some context.Callback for notifying the creator of the
XContentParser
that parsing hit a deprecated field.Extension point to customize the error message for unknown fields.ObjectParser.NamedObjectParser<T,Context>Functional interface for instantiating and parsing named objects.ObjectParser.Parser<Value,Context>Defines how to consume a parsed undefined fieldAn interface allowing to transfer an object to "XContent" using anXContentBuilder
.An interface allowing to transfer an object to "XContent" using anXContentBuilder
.An interface allowing to transfer an object to "XContent" using anXContentBuilder
.A generic abstraction on top of handling content, inspired by JSON and pull parsing.Interface for transforming complex objects into their "raw" equivalents for human-readable fieldsThis interface provides a way for non-JDK classes to plug in a way to serialize to xcontent.Interface for pull - parsingXContent
seeXContentType
for supported types. -
Class SummaryClassDescriptionAbstractObjectParser<Value,Context>Superclass for
ObjectParser
andConstructingObjectParser
.ConstructingObjectParser<Value,Context>LikeObjectParser
but works with objects that have constructors whose arguments are mixed in with its other settings.Filters an existing XContentParser by using a delegateInstantiatingObjectParser<Value,Context>LikeConstructingObjectParser
but works with objects which have a constructor that matches declared fields.InstantiatingObjectParser.Builder<Value,Context>An entry in the NamedXContentRegistry containing the name of the object and the parser that can parse it.ObjectParser<Value,Context>A declarative, stateless parser that turns XContent into setter calls.Helper class to navigate nested objects using dot notationHolds a field that can be found in a request while parsing and its different variants, which may be deprecated.A utility to build XContent (ie json).A one stop to useXContent
andXContentBuilder
.Simple data structure representing the line and column number of a position in some XContent e.g.Wrapper for a XContentParser that makes a single object/array look like a complete document. -
Enum Class Summary
-
Exception SummaryExceptionDescriptionThrown when
NamedXContentRegistry
cannot locate a named object to parse for a particular nameThrown when one of the XContent parsers cannot parse something. -
Annotation Interfaces SummaryAnnotation InterfaceDescriptionMarks the constructor that should be used by InstantiatingObjectParser if multiple constructors with the same number of arguments exist.