public class DOMLocatorImpl
extends java.lang.Object
implements org.w3c.dom.DOMLocator
DOMLocatorImpl is an implementaion that describes a location (e.g. 
 where an error occured).
 See also the Document Object Model (DOM) Level 3 Core Specification.
| Modifier and Type | Field and Description | 
|---|---|
| int | fByteOffsetThe byte offset into the input source this locator is pointing to or -1 
 if there is no byte offset available | 
| int | fColumnNumberThe column number where the error occured, 
 or -1 if there is no column number available. | 
| int | fLineNumberThe line number where the error occured, 
 or -1 if there is no line number available. | 
| org.w3c.dom.Node | fRelatedNoderelated data node | 
| java.lang.String | fUriThe URI where the error occured, 
 or null if there is no URI available. | 
| int | fUtf16OffsetThe UTF-16, as defined in [Unicode] and Amendment 1 of [ISO/IEC 10646], 
 offset into the input source this locator is pointing to or -1 if there 
 is no UTF-16 offset available. | 
| Constructor and Description | 
|---|
| DOMLocatorImpl() | 
| DOMLocatorImpl(int lineNumber,
              int columnNumber,
              int byteoffset,
              org.w3c.dom.Node relatedData,
              java.lang.String uri) | 
| DOMLocatorImpl(int lineNumber,
              int columnNumber,
              int byteoffset,
              org.w3c.dom.Node relatedData,
              java.lang.String uri,
              int utf16Offset) | 
| DOMLocatorImpl(int lineNumber,
              int columnNumber,
              int utf16Offset,
              java.lang.String uri) | 
| DOMLocatorImpl(int lineNumber,
              int columnNumber,
              java.lang.String uri) | 
| Modifier and Type | Method and Description | 
|---|---|
| int | getByteOffset()The byte offset into the input source this locator is pointing to or -1 
 if there is no byte offset available | 
| int | getColumnNumber()The column number where the error occured, or -1 if there is no column 
 number available. | 
| int | getLineNumber()The line number where the error occured, or -1 if there is no line 
 number available. | 
| org.w3c.dom.Node | getRelatedNode()The node this locator is pointing to, or  nullif no node 
 is available. | 
| java.lang.String | getUri()The URI where the error occured, or null if there is no URI available. | 
| int | getUtf16Offset()The UTF-16, as defined in [Unicode] and Amendment 1 of [ISO/IEC 10646], 
 offset into the input source this locator is pointing to or -1 if there 
 is no UTF-16 offset available. | 
public int fColumnNumber
public int fLineNumber
public org.w3c.dom.Node fRelatedNode
public java.lang.String fUri
public int fByteOffset
public int fUtf16Offset
public DOMLocatorImpl()
public DOMLocatorImpl(int lineNumber,
              int columnNumber,
              java.lang.String uri)
public DOMLocatorImpl(int lineNumber,
              int columnNumber,
              int utf16Offset,
              java.lang.String uri)
public DOMLocatorImpl(int lineNumber,
              int columnNumber,
              int byteoffset,
              org.w3c.dom.Node relatedData,
              java.lang.String uri)
public DOMLocatorImpl(int lineNumber,
              int columnNumber,
              int byteoffset,
              org.w3c.dom.Node relatedData,
              java.lang.String uri,
              int utf16Offset)
public int getLineNumber()
getLineNumber in interface org.w3c.dom.DOMLocatorpublic int getColumnNumber()
getColumnNumber in interface org.w3c.dom.DOMLocatorpublic java.lang.String getUri()
getUri in interface org.w3c.dom.DOMLocatorpublic org.w3c.dom.Node getRelatedNode()
org.w3c.dom.DOMLocatornull if no node 
 is available.getRelatedNode in interface org.w3c.dom.DOMLocatorpublic int getByteOffset()
getByteOffset in interface org.w3c.dom.DOMLocatorpublic int getUtf16Offset()
getUtf16Offset in interface org.w3c.dom.DOMLocatorCopyright © 1999-2022 The Apache Software Foundation. All Rights Reserved.