com.ibm.xml.xapi

Interface XSourceLocation


  1. public interface XSourceLocation
Represents a location in a document. Passed to the XMessageHandler report method to indicate the location of the error or message.
See Also:
XMessageHandler

Method Summary

Modifier and Type Method and Description
  1. int
getEndColumn()
Get the end column number within the document.
  1. int
getEndLine()
Get the end line number within the document.
  1. java.lang.String
getPublicId()
Get the public identifier for the document.
  1. int
getStartColumn()
Get the start column number within the document.
  1. int
getStartLine()
Get the start line number within the document.
  1. java.lang.String
getSystemId()
Get the system identifier for the document.

Method Detail

getSystemId

  1. java.lang.String getSystemId()
Get the system identifier for the document. May return null if not known.
Returns:
The system identifier.

getPublicId

  1. java.lang.String getPublicId()
Get the public identifier for the document. May return null if not known.
Returns:
The public identifier.

getStartLine

  1. int getStartLine()
Get the start line number within the document. May return -1 if not known.
Returns:
The start line number.

getStartColumn

  1. int getStartColumn()
Get the start column number within the document. May return -1 if not known.
Returns:
The start column number.

getEndLine

  1. int getEndLine()
Get the end line number within the document. May return -1 if not known.
Returns:
The end line number.

getEndColumn

  1. int getEndColumn()
Get the end column number within the document. May return -1 if not known.
Returns:
The end column number.