org.w3c.rdf.util.xml
Class FakeLocator

java.lang.Object
  |
  +--org.w3c.rdf.util.xml.FakeLocator
All Implemented Interfaces:
Locator

public class FakeLocator
extends java.lang.Object
implements Locator


Constructor Summary
FakeLocator()
           
 
Method Summary
 int getColumnNumber()
          Return the column number where the current document event ends.
 int getLineNumber()
          Return the line number where the current document event ends.
 java.lang.String getPublicId()
          Return the public identifier for the current document event.
 java.lang.String getSystemId()
          Return the system identifier for the current document event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FakeLocator

public FakeLocator()
Method Detail

getPublicId

public java.lang.String getPublicId()
Description copied from interface: Locator
Return the public identifier for the current document event.

This will be the public identifier

Specified by:
getPublicId in interface Locator
Following copied from interface: org.xml.sax.Locator
Returns:
A string containing the public identifier, or null if none is available.
See Also:
Locator.getSystemId()

getSystemId

public java.lang.String getSystemId()
Description copied from interface: Locator
Return the system identifier for the current document event.

If the system identifier is a URL, the parser must resolve it fully before passing it to the application.

Specified by:
getSystemId in interface Locator
Following copied from interface: org.xml.sax.Locator
Returns:
A string containing the system identifier, or null if none is available.
See Also:
Locator.getPublicId()

getLineNumber

public int getLineNumber()
Description copied from interface: Locator
Return the line number where the current document event ends. Note that this is the line position of the first character after the text associated with the document event.
Specified by:
getLineNumber in interface Locator
Following copied from interface: org.xml.sax.Locator
Returns:
The line number, or -1 if none is available.
See Also:
Locator.getColumnNumber()

getColumnNumber

public int getColumnNumber()
Description copied from interface: Locator
Return the column number where the current document event ends. Note that this is the column number of the first character after the text associated with the document event. The first column in a line is position 1.
Specified by:
getColumnNumber in interface Locator
Following copied from interface: org.xml.sax.Locator
Returns:
The column number, or -1 if none is available.
See Also:
Locator.getLineNumber()