Class XContentLocation


public class XContentLocation
extends java.lang.Object
Simple data structure representing the line and column number of a position in some XContent e.g. JSON. Locations are typically used to communicate the position of a parsing error to end users and consequently have line and column numbers starting from 1.
  • Field Summary

    Modifier and Type Field Description
    int columnNumber  
    int lineNumber  
  • Constructor Summary

    Constructor Description
    XContentLocation​(int lineNumber, int columnNumber)  
  • Method Summary

    Modifier and Type Method Description
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • XContentLocation

      public XContentLocation​(int lineNumber, int columnNumber)
  • Method Details

    • toString

      public java.lang.String toString()
      toString in class java.lang.Object