Top Description Fields Constructors Methods
org.apache.xerces.impl.xs.util

public final Class SimpleLocator

extends Object
implements XMLLocator
Class Inheritance
All Implemented Interfaces
org.apache.xerces.xni.XMLLocator
Imports
org.apache.xerces.xni.XMLLocator

An XMLLocator implementation used for schema error reporting.
Author
Sandy Gao, IBM
Version
$Id: SimpleLocator.java 660072 2008-05-26 02:05:15Z mrglavas $

Field Summary

Modifier and TypeField and Description
private int
private int
private String
private int
private String

Constructor Summary

AccessConstructor and Description
public
public
SimpleLocator(String lsid, String esid, int line, int column)

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

Method Summary

Modifier and TypeMethod and Description
public String
getBaseSystemId()

Implements org.apache.xerces.xni.XMLLocator.getBaseSystemId.

Returns the base system identifier.
public int
getCharacterOffset()

Implements org.apache.xerces.xni.XMLLocator.getCharacterOffset.

Returns the character offset, or -1 if no character offset is available.
public int
getColumnNumber()

Implements org.apache.xerces.xni.XMLLocator.getColumnNumber.

Returns the column number, or -1 if no column number is available.
public String
getEncoding()

Implements org.apache.xerces.xni.XMLLocator.getEncoding.

Returns the encoding of the current entity.
public String
getExpandedSystemId()

Implements org.apache.xerces.xni.XMLLocator.getExpandedSystemId.

Returns the expanded system identifier.
public int
getLineNumber()

Implements org.apache.xerces.xni.XMLLocator.getLineNumber.

Returns the line number, or -1 if no line number is available.
public String
getLiteralSystemId()

Implements org.apache.xerces.xni.XMLLocator.getLiteralSystemId.

Returns the literal system identifier.
public String
getPublicId()

Implements org.apache.xerces.xni.XMLLocator.getPublicId.

Returns the public identifier.
public String
getXMLVersion()

Implements org.apache.xerces.xni.XMLLocator.getXMLVersion.

Returns the XML version of the current entity.
public void
public void
setCharacterOffset(int offset)

public void
setColumnNumber(int col)

public void
public void
setLineNumber(int line)

public void
public void
setPublicId(String publicId)

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

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

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

charOffsetback to summary
private int charOffset
columnback to summary
private int column
esidback to summary
private String esid
lineback to summary
private int line
lsidback to summary
private String lsid

Constructor Detail

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

Method Detail

getBaseSystemIdback to summary
public String getBaseSystemId()

Implements org.apache.xerces.xni.XMLLocator.getBaseSystemId.

Doc from org.apache.xerces.xni.XMLLocator.getBaseSystemId.

Returns the base system identifier.

getCharacterOffsetback to summary
public int getCharacterOffset()

Implements org.apache.xerces.xni.XMLLocator.getCharacterOffset.

Doc from org.apache.xerces.xni.XMLLocator.getCharacterOffset.

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

getColumnNumberback to summary
public int getColumnNumber()

Implements org.apache.xerces.xni.XMLLocator.getColumnNumber.

Doc from org.apache.xerces.xni.XMLLocator.getColumnNumber.

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

getEncodingback to summary
public String getEncoding()

Implements org.apache.xerces.xni.XMLLocator.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.

getExpandedSystemIdback to summary
public String getExpandedSystemId()

Implements org.apache.xerces.xni.XMLLocator.getExpandedSystemId.

Doc from org.apache.xerces.xni.XMLLocator.getExpandedSystemId.

Returns the expanded system identifier.

getLineNumberback to summary
public int getLineNumber()

Implements org.apache.xerces.xni.XMLLocator.getLineNumber.

Doc from org.apache.xerces.xni.XMLLocator.getLineNumber.

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

getLiteralSystemIdback to summary
public String getLiteralSystemId()

Implements org.apache.xerces.xni.XMLLocator.getLiteralSystemId.

Doc from org.apache.xerces.xni.XMLLocator.getLiteralSystemId.

Returns the literal system identifier.

getPublicIdback to summary
public String getPublicId()

Implements org.apache.xerces.xni.XMLLocator.getPublicId.

Doc from org.apache.xerces.xni.XMLLocator.getPublicId.

Returns the public identifier.

getXMLVersionback to summary
public String getXMLVersion()

Implements org.apache.xerces.xni.XMLLocator.getXMLVersion.

Doc from org.apache.xerces.xni.XMLLocator.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.

setBaseSystemIdback to summary
public void setBaseSystemId(String systemId)
See Also
org.apache.xerces.xni.XMLResourceIdentifier#setBaseSystemId(String)
setCharacterOffsetback to summary
public void setCharacterOffset(int offset)
setColumnNumberback to summary
public void setColumnNumber(int col)
setExpandedSystemIdback to summary
public void setExpandedSystemId(String systemId)
See Also
org.apache.xerces.xni.XMLResourceIdentifier#setExpandedSystemId(String)
setLineNumberback to summary
public void setLineNumber(int line)
setLiteralSystemIdback to summary
public void setLiteralSystemId(String systemId)
See Also
org.apache.xerces.xni.XMLResourceIdentifier#setLiteralSystemId(String)
setPublicIdback to summary
public void setPublicId(String publicId)
See Also
org.apache.xerces.xni.XMLResourceIdentifier#setPublicId(String)
setValuesback to summary
public void setValues(String lsid, String esid, int line, int column)
setValuesback to summary
public void setValues(String lsid, String esid, int line, int column, int offset)