Class XContentLocation


  • public class XContentLocation
    extends 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 Detail

      • lineNumber

        public final int lineNumber
      • columnNumber

        public final int columnNumber
    • Constructor Detail

      • XContentLocation

        public XContentLocation​(int lineNumber,
                                int columnNumber)