org.openxml.parser
Interface SourceLocation

All Known Implementing Classes:
ParseException

Deprecated. Replaced with Locator

public abstract interface SourceLocation

Identifies a source document and a location in that source. This interface is used to locate an error or to track progress through the source. All methods are thread-safe.

getSourceURI() is called to obtain the URI identification of the source. getSourcePosition() returns the current position in that source, whereas getLineNumber() returns that position as a line number (beginning at one).

Version:
$Revision: 1.3 $ $Date: 1999/04/18 01:52:13 $
Author:
Assaf Arkin

Method Summary
 int getLineNumber()
          Deprecated. Returns the current line number in the source.
 int getSourcePosition()
          Deprecated. Returns the current character position in the source.
 java.lang.String getSourceURI()
          Deprecated. Returns the source URI.
 

Method Detail

getLineNumber

public int getLineNumber()
Deprecated. 
Returns the current line number in the source. This method is called to locate an error, or track progress through the source. It is thread-safe.
Returns:
The line number in the source (1..n)

getSourcePosition

public int getSourcePosition()
Deprecated. 
Returns the current character position in the source. This method is called to track progress through the source. It is thread-safe.
Returns:
The character position in the source (0..n)

getSourceURI

public java.lang.String getSourceURI()
Deprecated. 
Returns the source URI. This method is called to locate an error, or track progress through the source. It is thread-safe. It returns the URI that identifies the source, or null if unknown.
Returns:
The source URI or null