API

com.ibm.xml.xapi
Interface XSourceLocation


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
 int getEndColumn()
          Get the end column number within the document.
 int getEndLine()
          Get the end line number within the document.
 String getPublicId()
          Get the public identifier for the document.
 int getStartColumn()
          Get the start column number within the document.
 int getStartLine()
          Get the start line number within the document.
 String getSystemId()
          Get the system identifier for the document.
 

Method Detail

getSystemId

String getSystemId()
Get the system identifier for the document. May return null if not known.

Returns:
The system identifier.

getPublicId

String getPublicId()
Get the public identifier for the document. May return null if not known.

Returns:
The public identifier.

getStartLine

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

Returns:
The start line number.

getStartColumn

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

Returns:
The start column number.

getEndLine

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

Returns:
The end line number.

getEndColumn

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

Returns:
The end column number.

IBM Copyright 2004-2008