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

public Class SimpleLocator

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

An XMLLocator implementation used for schema error reporting.
Author
Sandy Gao, IBM

Field Summary

Modifier and TypeField and Description
pack-priv int
pack-priv int
pack-priv String
pack-priv int
pack-priv 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
public int
getCharacterOffset()

Implements com.sun.org.apache.xerces.internal.xni.XMLLocator.getCharacterOffset.

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

Implements com.sun.org.apache.xerces.internal.xni.XMLLocator.getColumnNumber.

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

Implements com.sun.org.apache.xerces.internal.xni.XMLLocator.getEncoding.

Returns the encoding of the current entity.
public String
public int
getLineNumber()

Implements com.sun.org.apache.xerces.internal.xni.XMLLocator.getLineNumber.

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

Implements com.sun.org.apache.xerces.internal.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
pack-priv int charOffset
columnback to summary
pack-priv int column
esidback to summary
pack-priv String esid
lineback to summary
pack-priv int line
lsidback to summary
pack-priv 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 com.sun.org.apache.xerces.internal.xni.XMLLocator.getBaseSystemId.

Doc from com.sun.org.apache.xerces.internal.xni.XMLLocator.getBaseSystemId.

Returns the base system identifier.

getCharacterOffsetback to summary
public int getCharacterOffset()

Implements com.sun.org.apache.xerces.internal.xni.XMLLocator.getCharacterOffset.

Doc from com.sun.org.apache.xerces.internal.xni.XMLLocator.getCharacterOffset.

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

getColumnNumberback to summary
public int getColumnNumber()

Implements com.sun.org.apache.xerces.internal.xni.XMLLocator.getColumnNumber.

Doc from com.sun.org.apache.xerces.internal.xni.XMLLocator.getColumnNumber.

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

getEncodingback to summary
public String getEncoding()

Implements com.sun.org.apache.xerces.internal.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 com.sun.org.apache.xerces.internal.xni.XMLLocator.getExpandedSystemId.

Doc from com.sun.org.apache.xerces.internal.xni.XMLLocator.getExpandedSystemId.

Returns the expanded system identifier.

getLineNumberback to summary
public int getLineNumber()

Implements com.sun.org.apache.xerces.internal.xni.XMLLocator.getLineNumber.

Doc from com.sun.org.apache.xerces.internal.xni.XMLLocator.getLineNumber.

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

getLiteralSystemIdback to summary
public String getLiteralSystemId()

Implements com.sun.org.apache.xerces.internal.xni.XMLLocator.getLiteralSystemId.

Doc from com.sun.org.apache.xerces.internal.xni.XMLLocator.getLiteralSystemId.

Returns the literal system identifier.

getPublicIdback to summary
public String getPublicId()

Implements com.sun.org.apache.xerces.internal.xni.XMLLocator.getPublicId.

Doc from com.sun.org.apache.xerces.internal.xni.XMLLocator.getPublicId.

Returns the public identifier.

getXMLVersionback to summary
public String getXMLVersion()

Implements com.sun.org.apache.xerces.internal.xni.XMLLocator.getXMLVersion.

Doc from com.sun.org.apache.xerces.internal.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
com.sun.org.apache.xerces.internal.xni.XMLResourceIdentifier#setBaseSystemId(String)
setCharacterOffsetback to summary
public void setCharacterOffset(int offset)
setColumnNumberback to summary
public void setColumnNumber(int col)
See Also
com.sun.org.apache.xerces.internal.xni.XMLLocator#setColumnNumber(int)
setExpandedSystemIdback to summary
public void setExpandedSystemId(String systemId)
See Also
com.sun.org.apache.xerces.internal.xni.XMLResourceIdentifier#setExpandedSystemId(String)
setLineNumberback to summary
public void setLineNumber(int line)
See Also
com.sun.org.apache.xerces.internal.xni.XMLLocator#setLineNumber(int)
setLiteralSystemIdback to summary
public void setLiteralSystemId(String systemId)
See Also
com.sun.org.apache.xerces.internal.xni.XMLResourceIdentifier#setLiteralSystemId(String)
setPublicIdback to summary
public void setPublicId(String publicId)
See Also
com.sun.org.apache.xerces.internal.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)