net.sf.joost.trax
Class SourceLocatorImpl

java.lang.Object
  extended by net.sf.joost.trax.SourceLocatorImpl
All Implemented Interfaces:
SourceLocator

public class SourceLocatorImpl
extends Object
implements SourceLocator

Implementation of the SourceLocator

Version:
$Revision: 1.5 $ $Date: 2005/01/23 19:47:30 $
Author:
Anatolij Zubow

Field Summary
private  int columnNo
          Indicates the column number in the document
private  int lineNo
          Indicates the line number in the document
private  String publicId
          Unique public key
private  String systemId
          Unique system key
 
Constructor Summary
SourceLocatorImpl(Locator locator)
          Constructor
SourceLocatorImpl(String publicId, String systemId, int lineNo, int colNo)
          Constructor
 
Method Summary
 int getColumnNumber()
          Getting the attribute columnNo
 int getLineNumber()
          Getting the attribute lineNo
 String getPublicId()
          Getting the attribute publicId
 String getSystemId()
          Getting the attribute systemId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

publicId

private String publicId
Unique public key


systemId

private String systemId
Unique system key


lineNo

private int lineNo
Indicates the line number in the document


columnNo

private int columnNo
Indicates the column number in the document

Constructor Detail

SourceLocatorImpl

public SourceLocatorImpl(Locator locator)
Constructor

Parameters:
locator - Locator

SourceLocatorImpl

public SourceLocatorImpl(String publicId,
                         String systemId,
                         int lineNo,
                         int colNo)
Constructor

Parameters:
publicId - Unique public key
systemId - Unique system key for path resolution
lineNo - Line number
colNo - Column number
Method Detail

getPublicId

public String getPublicId()
Getting the attribute publicId

Specified by:
getPublicId in interface SourceLocator
Returns:
A string containing the public identifier, or null if none is available

getSystemId

public String getSystemId()
Getting the attribute systemId

Specified by:
getSystemId in interface SourceLocator
Returns:
A string containing the system identifier, or null if none is available

getLineNumber

public int getLineNumber()
Getting the attribute lineNo

Specified by:
getLineNumber in interface SourceLocator
Returns:
The line number, or -1 if none is available

getColumnNumber

public int getColumnNumber()
Getting the attribute columnNo

Specified by:
getColumnNumber in interface SourceLocator
Returns:
The column number, or -1 if none is available