public static class NamedXContentRegistry.Entry
extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
java.lang.Class<?> |
categoryClass |
The class that this entry can read.
|
ParseField |
name |
A name for the entry which is unique within the
categoryClass. |
| Constructor | Description |
|---|---|
Entry(java.lang.Class<T> categoryClass,
ParseField name,
CheckedFunction<XContentParser,? extends T,java.io.IOException> parser) |
Creates a new entry which can be stored by the registry.
|
Entry(java.lang.Class<T> categoryClass,
ParseField name,
ContextParser<java.lang.Object,? extends T> parser) |
Creates a new entry which can be stored by the registry.
|
public final java.lang.Class<?> categoryClass
public final ParseField name
categoryClass.public Entry(java.lang.Class<T> categoryClass,
ParseField name,
CheckedFunction<XContentParser,? extends T,java.io.IOException> parser)
public Entry(java.lang.Class<T> categoryClass,
ParseField name,
ContextParser<java.lang.Object,? extends T> parser)
Entry(Class, ParseField, CheckedFunction) unless you need a context to carry around while parsing.