Package org.apache.batik.dom
Class AbstractDocument.DocumentError.ErrorLocation
java.lang.Object
org.apache.batik.dom.AbstractDocument.DocumentError.ErrorLocation
- All Implemented Interfaces:
DOMLocator
- Enclosing class:
AbstractDocument.DocumentError
protected static class AbstractDocument.DocumentError.ErrorLocation
extends Object
implements DOMLocator
The DOMLocator implementation.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Get the byte offset of the error node.int
Get the column number of the error node.int
Get the line number of the error node.Get the node.getUri()
Get the document URI.int
Get the UTF-16 offset of the error node.
-
Field Details
-
node
The node that caused the error.
-
-
Constructor Details
-
ErrorLocation
Create a new ErrorLocation object.
-
-
Method Details
-
getLineNumber
public int getLineNumber()Get the line number of the error node.- Specified by:
getLineNumber
in interfaceDOMLocator
-
getColumnNumber
public int getColumnNumber()Get the column number of the error node.- Specified by:
getColumnNumber
in interfaceDOMLocator
-
getByteOffset
public int getByteOffset()Get the byte offset of the error node.- Specified by:
getByteOffset
in interfaceDOMLocator
-
getUtf16Offset
public int getUtf16Offset()Get the UTF-16 offset of the error node.- Specified by:
getUtf16Offset
in interfaceDOMLocator
-
getRelatedNode
Get the node.- Specified by:
getRelatedNode
in interfaceDOMLocator
-
getUri
Get the document URI.- Specified by:
getUri
in interfaceDOMLocator
-