Module org.elasticsearch.xcontent
Package org.elasticsearch.xcontent
Class NamedXContentRegistry.Entry
java.lang.Object
org.elasticsearch.xcontent.NamedXContentRegistry.Entry
- Enclosing class:
- NamedXContentRegistry
An entry in the NamedXContentRegistry containing the name of the object and the parser that can parse it.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionfinal Class<?> The class that this entry can read.final ParseFieldA name for the entry which is unique within thecategoryClass.final Predicate<RestApiVersion> 
- 
Constructor SummaryConstructorsConstructorDescriptionEntry(Class<T> categoryClass, ParseField name, CheckedFunction<XContentParser, ? extends T, IOException> parser) Creates a new entry which can be stored by the registry.Entry(Class<T> categoryClass, ParseField name, CheckedFunction<XContentParser, ? extends T, IOException> parser, Predicate<RestApiVersion> restApiCompatibility) Entry(Class<T> categoryClass, ParseField name, ContextParser<Object, ? extends T> parser) Creates a new entry which can be stored by the registry.Entry(Class<T> categoryClass, ParseField name, ContextParser<Object, ? extends T> parser, Predicate<RestApiVersion> restApiCompatibility) 
- 
Method Summary
- 
Field Details- 
categoryClassThe class that this entry can read.
- 
nameA name for the entry which is unique within thecategoryClass.
- 
restApiCompatibility
 
- 
- 
Constructor Details- 
Entrypublic Entry(Class<T> categoryClass, ParseField name, CheckedFunction<XContentParser, ? extends T, IOException> parser) Creates a new entry which can be stored by the registry.
- 
Entrypublic Entry(Class<T> categoryClass, ParseField name, CheckedFunction<XContentParser, ? extends T, IOException> parser, Predicate<RestApiVersion> restApiCompatibility) 
- 
EntryCreates a new entry which can be stored by the registry. PreferEntry(Class, ParseField, CheckedFunction)unless you need a context to carry around while parsing.
- 
Entrypublic Entry(Class<T> categoryClass, ParseField name, ContextParser<Object, ? extends T> parser, Predicate<RestApiVersion> restApiCompatibility) 
 
-