public interface DOMLocator
| org.w3c.dom.DOMLocator |
DOMLocator是描述位置的接口(例如发生错误的位置)。
另见 Document Object Model (DOM) Level 3 Core Specification 。
公共方法(Public methods) |
|
|---|---|
abstract int |
getByteOffset() 如果没有可用的字节偏移量,则该定位器指向的输入源中的字节偏移量或 |
abstract int |
getColumnNumber() 如果没有可用的列号,则该定位器指向的列号或 |
abstract int |
getLineNumber() 如果没有可用的列号,则该定位器指向的行号,或 |
abstract Node |
getRelatedNode() 此定位器指向的节点,或者 |
abstract String |
getUri() 这个定位器指向的URI,或者 |
abstract int |
getUtf16Offset() UTF-16,如[ISO / IEC 10646]的[Unicode]和修正1中所定义的,偏移到该定位器所指向的输入源或 |
int getByteOffset ()
如果没有可用的字节偏移量,则该定位器指向的输入源中的字节偏移量或 -1 。
| 返回(Returns) | |
|---|---|
int |
|
int getColumnNumber ()
如果没有可用的列号,则该定位器所指向的列号或 -1 。
| 返回(Returns) | |
|---|---|
int |
|
Node getRelatedNode ()
此定位器指向的节点,或者 null如果没有节点可用)。
| 返回(Returns) | |
|---|---|
Node |
|
int getUtf16Offset ()
UTF-16,如[ISO / IEC 10646]的[Unicode]和修正1中所定义,偏移到该定位器所指向的输入源或 -1如果没有可用的UTF-16偏移量。
| 返回(Returns) | |
|---|---|
int |
|