Package org.opensearch.common.xcontent
Class XContentLocation
- java.lang.Object
-
- org.opensearch.common.xcontent.XContentLocation
-
public final class XContentLocation extends java.lang.ObjectSimple 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
Fields Modifier and Type Field Description intcolumnNumberintlineNumberstatic XContentLocationUNKNOWN
-
Constructor Summary
Constructors Constructor Description XContentLocation(int lineNumber, int columnNumber)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringtoString()
-
-
-
Field Detail
-
UNKNOWN
public static final XContentLocation UNKNOWN
-
lineNumber
public final int lineNumber
-
columnNumber
public final int columnNumber
-
-