Interface ObjectParser.NamedObjectParser<T,Context>
- Enclosing class:
- ObjectParser<Value,Context>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public static interface ObjectParser.NamedObjectParser<T,Context>
Functional interface for instantiating and parsing named objects. See ObjectParserTests#NamedObject for the canonical way to
implement this for objects that themselves have a parser.
-
Method Summary
Modifier and Type Method Description T
parse(XContentParser p, Context c, java.lang.String name)
-
Method Details
-
parse
- Throws:
java.io.IOException
-