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 Details

    • node

      protected Node node
      The node that caused the error.
  • Constructor Details

    • ErrorLocation

      public ErrorLocation(Node n)
      Create a new ErrorLocation object.
  • Method Details

    • getLineNumber

      public int getLineNumber()
      Get the line number of the error node.
      Specified by:
      getLineNumber in interface DOMLocator
    • getColumnNumber

      public int getColumnNumber()
      Get the column number of the error node.
      Specified by:
      getColumnNumber in interface DOMLocator
    • getByteOffset

      public int getByteOffset()
      Get the byte offset of the error node.
      Specified by:
      getByteOffset in interface DOMLocator
    • getUtf16Offset

      public int getUtf16Offset()
      Get the UTF-16 offset of the error node.
      Specified by:
      getUtf16Offset in interface DOMLocator
    • getRelatedNode

      public Node getRelatedNode()
      Get the node.
      Specified by:
      getRelatedNode in interface DOMLocator
    • getUri

      public String getUri()
      Get the document URI.
      Specified by:
      getUri in interface DOMLocator