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

public final Class XMLLocatorWrapper

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

A light wrapper around an XMLLocator.

Author
Michael Glavassevich, IBM
Version
$Id: XMLLocatorWrapper.java 533423 2007-04-28 20:47:15Z mrglavas $

Field Summary

Modifier and TypeField and Description
private XMLLocator

Constructor Summary

AccessConstructor and Description
public

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 XMLLocator
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
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

fLocatorback to summary
private XMLLocator fLocator

Constructor Detail

XMLLocatorWrapperback to summary
public XMLLocatorWrapper()

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.

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

Returns the encoding of the current entity. Note that, for a given entity, this value can only be considered final once the encoding declaration has been read (or once it has been determined that there is no such declaration) since, no encoding having been specified on the XMLInputSource, the parser will make an initial "guess" which could be in error.

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.

getLocatorback to summary
public XMLLocator getLocator()
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.

setLocatorback to summary
public void setLocator(XMLLocator locator)