public class DOMLocatorImpl extends Object implements 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 |
fByteOffset
The byte offset into the input source this locator is pointing to or -1 if
there is no byte offset available
|
int |
fColumnNumber
The column number where the error occured, or -1 if there is no column number
available.
|
int |
fLineNumber
The line number where the error occured, or -1 if there is no line number
available.
|
Node |
fRelatedNode
related data node
|
String |
fUri
The URI where the error occured, or null if there is no URI available.
|
int |
fUtf16Offset
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.
|
| Constructor and Description |
|---|
DOMLocatorImpl() |
DOMLocatorImpl(int lineNumber,
int columnNumber,
int utf16Offset,
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.
|
Node |
getRelatedNode() |
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 final Node fRelatedNode
public String fUri
public final int fByteOffset
public int fUtf16Offset
public DOMLocatorImpl()
public DOMLocatorImpl(int lineNumber,
int columnNumber,
int utf16Offset,
String uri)
public int getLineNumber()
getLineNumber in interface DOMLocatorpublic int getColumnNumber()
getColumnNumber in interface DOMLocatorpublic String getUri()
getUri in interface DOMLocatorpublic Node getRelatedNode()
getRelatedNode in interface DOMLocatorpublic int getByteOffset()
getByteOffset in interface DOMLocatorpublic int getUtf16Offset()
getUtf16Offset in interface DOMLocatorCopyright © 2023 HtmlUnit. All rights reserved.