public class

SimpleLocator

extends Object
implements XMLLocator
java.lang.Object
   ↳ org.apache.xerces.impl.xs.util.SimpleLocator

Class Overview

An XMLLocator implementation used for schema error reporting.

Summary

Public Constructors
SimpleLocator()
SimpleLocator(String lsid, String esid, int line, int column)
SimpleLocator(String lsid, String esid, int line, int column, int offset)
Public Methods
String getBaseSystemId()
Returns the base system identifier.
int getCharacterOffset()
Returns the character offset, or -1 if no character offset is available.
int getColumnNumber()
Returns the column number, or -1 if no column number is available.
String getEncoding()
Returns the encoding of the current entity.
String getExpandedSystemId()
Returns the expanded system identifier.
int getLineNumber()
Returns the line number, or -1 if no line number is available.
String getLiteralSystemId()
Returns the literal system identifier.
String getPublicId()
Returns the public identifier.
String getXMLVersion()
Returns the XML version of the current entity.
void setBaseSystemId(String systemId)
void setCharacterOffset(int offset)
void setColumnNumber(int col)
void setExpandedSystemId(String systemId)
void setLineNumber(int line)
void setLiteralSystemId(String systemId)
void setPublicId(String publicId)
void setValues(String lsid, String esid, int line, int column, int offset)
void setValues(String lsid, String esid, int line, int column)
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.apache.xerces.xni.XMLLocator

Public Constructors

public SimpleLocator ()

public SimpleLocator (String lsid, String esid, int line, int column)

public SimpleLocator (String lsid, String esid, int line, int column, int offset)

Public Methods

public String getBaseSystemId ()

Returns the base system identifier.

public int getCharacterOffset ()

Returns the character offset, or -1 if no character offset is available.

public int getColumnNumber ()

Returns the column number, or -1 if no column number is available.

public String getEncoding ()

Returns the encoding of the current entity. Since these locators are used in the construction of XMLParseExceptions, which know nothing about encodings, there is no point in having this object deal intelligently with encoding information.

public String getExpandedSystemId ()

Returns the expanded system identifier.

public int getLineNumber ()

Returns the line number, or -1 if no line number is available.

public String getLiteralSystemId ()

Returns the literal system identifier.

public String getPublicId ()

Returns the public identifier.

public String getXMLVersion ()

Returns the XML version of the current entity. This will normally be the value from the XML or text declaration or defaulted by the parser. Note that that this value may be different than the version of the processing rules applied to the current entity. For instance, an XML 1.1 document may refer to XML 1.0 entities. In such a case the rules of XML 1.1 are applied to the entire document. Also note that, for a given entity, this value can only be considered final once the XML or text declaration has been read or once it has been determined that there is no such declaration.

public void setBaseSystemId (String systemId)

public void setCharacterOffset (int offset)

public void setColumnNumber (int col)

public void setExpandedSystemId (String systemId)

public void setLineNumber (int line)

public void setLiteralSystemId (String systemId)

public void setPublicId (String publicId)

public void setValues (String lsid, String esid, int line, int column, int offset)

public void setValues (String lsid, String esid, int line, int column)