Package org.apache.xmlbeans
Class XmlLineNumber
java.lang.Object
org.apache.xmlbeans.XmlCursor.XmlBookmark
org.apache.xmlbeans.XmlLineNumber
public class XmlLineNumber extends XmlCursor.XmlBookmark
A subclass of XmlBookmark that holds line number information.
If a document is parsed with line numbers
enabled, these bookmarks will be placed at appropriate locations
within the document.
- See Also:
XmlOptions.setLoadLineNumbers()
-
Field Summary
-
Constructor Summary
Constructors Constructor Description XmlLineNumber(int line)
Constructs a line number with no column or offset information.XmlLineNumber(int line, int column)
Constructs a line number and column with no file offset information.XmlLineNumber(int line, int column, int offset)
Constructs a line number and column with no file offset information. -
Method Summary
Methods inherited from class org.apache.xmlbeans.XmlCursor.XmlBookmark
createCursor, getKey, toBookmark
-
Constructor Details
-
XmlLineNumber
public XmlLineNumber(int line)Constructs a line number with no column or offset information.- Parameters:
line
- the line number - the first line is 1
-
XmlLineNumber
public XmlLineNumber(int line, int column)Constructs a line number and column with no file offset information.- Parameters:
line
- the line number - the first line is 1line
- the column number - the first column is 1
-
XmlLineNumber
public XmlLineNumber(int line, int column, int offset)Constructs a line number and column with no file offset information.- Parameters:
line
- the line number - the first line is 1line
- the column number - the first column is 1line
- the file character offset - the first character in the file is 0
-
-
Method Details