# DOMLocator

public interface **DOMLocator** `DOMLocator` is an interface that describes a location (e.g.
where an error occurred).

See also the [Document Object Model (DOM) Level 3 Core Specification](http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407).

### Public Method Summary

|---|---|
| abstract int | [getByteOffset](https://developers.google.com/j2objc/javadoc/jre/reference/org/w3c/dom/DOMLocator.html#getByteOffset())() The byte offset into the input source this locator is pointing to or `-1` if there is no byte offset available. |
| abstract int | [getColumnNumber](https://developers.google.com/j2objc/javadoc/jre/reference/org/w3c/dom/DOMLocator.html#getColumnNumber())() The column number this locator is pointing to, or `-1` if there is no column number available. |
| abstract int | [getLineNumber](https://developers.google.com/j2objc/javadoc/jre/reference/org/w3c/dom/DOMLocator.html#getLineNumber())() The line number this locator is pointing to, or `-1` if there is no column number available. |
| abstract [Node](https://developers.google.com/j2objc/javadoc/jre/reference/org/w3c/dom/Node.html) | [getRelatedNode](https://developers.google.com/j2objc/javadoc/jre/reference/org/w3c/dom/DOMLocator.html#getRelatedNode())() The node this locator is pointing to, or `null` if no node is available. |
| abstract [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [getUri](https://developers.google.com/j2objc/javadoc/jre/reference/org/w3c/dom/DOMLocator.html#getUri())() The URI this locator is pointing to, or `null` if no URI is available. |
| abstract int | [getUtf16Offset](https://developers.google.com/j2objc/javadoc/jre/reference/org/w3c/dom/DOMLocator.html#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 Methods

#### public abstract int
**getByteOffset**
()

The byte offset into the input source this locator is pointing to or
`-1` if there is no byte offset available.

#### public abstract int
**getColumnNumber**
()

The column number this locator is pointing to, or `-1` if
there is no column number available.

#### public abstract int
**getLineNumber**
()

The line number this locator is pointing to, or `-1` if
there is no column number available.

#### public abstract [Node](https://developers.google.com/j2objc/javadoc/jre/reference/org/w3c/dom/Node.html)
**getRelatedNode**
()

The node this locator is pointing to, or `null` if no node
is available.

#### public abstract [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html)
**getUri**
()

The URI this locator is pointing to, or `null` if no URI is
available.

#### public abstract 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.