Class ObjectParserHelper<Value,​Context>

org.elasticsearch.common.xcontent.ObjectParserHelper<Value,​Context>

public final class ObjectParserHelper<Value,​Context> extends
This class provides helpers for ObjectParser that allow dealing with classes outside of the xcontent dependencies.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    declareRawObject​(org.elasticsearch.common.xcontent.AbstractObjectParser<Value,​Context> parser, <Value,​BytesReference> consumer, org.elasticsearch.common.xcontent.ParseField field)
    Helper to declare an object that will be parsed into a BytesReference
    void
    declareRawObjectOrNull​(org.elasticsearch.common.xcontent.AbstractObjectParser<Value,​Context> parser, <Value,​BytesReference> consumer, org.elasticsearch.common.xcontent.ParseField field)
     

    Methods inherited from class java.lang.

    , , , , , , , , , ,
  • Constructor Details

    • ObjectParserHelper

      public ObjectParserHelper()
  • Method Details

    • declareRawObject

      public void declareRawObject(org.elasticsearch.common.xcontent.AbstractObjectParser<Value,​Context> parser, <Value,​BytesReference> consumer, org.elasticsearch.common.xcontent.ParseField field)
      Helper to declare an object that will be parsed into a BytesReference
    • declareRawObjectOrNull

      public void declareRawObjectOrNull(org.elasticsearch.common.xcontent.AbstractObjectParser<Value,​Context> parser, <Value,​BytesReference> consumer, org.elasticsearch.common.xcontent.ParseField field)