Class NamedXContentRegistry.Entry

Enclosing class:

public static class NamedXContentRegistry.Entry
extends java.lang.Object
An entry in the NamedXContentRegistry containing the name of the object and the parser that can parse it.
  • Field Summary

    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 Summary

    Constructor Description
    Entry​(java.lang.Class<T> categoryClass, ParseField name, CheckedFunction<XContentParser,​? extends T,​> 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.
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait