Class NamedXContentRegistry.Entry

  • Enclosing class:
    NamedXContentRegistry

    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

      Fields 
      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

      Constructors 
      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.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • categoryClass

        public final java.lang.Class<?> categoryClass
        The class that this entry can read.