FileDocCategorySizeDatePackage
XMLLocatorWrapper.javaAPI DocApache Xerces 3.0.12921Fri Sep 14 20:33:54 BST 2007org.apache.xerces.util

XMLLocatorWrapper

public final class XMLLocatorWrapper extends Object implements org.apache.xerces.xni.XMLLocator

A light wrapper around an XMLLocator.

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

Fields Summary
private org.apache.xerces.xni.XMLLocator
fLocator
Constructors Summary
public XMLLocatorWrapper()

    
      
Methods Summary
public java.lang.StringgetBaseSystemId()

        if (fLocator != null) {
            return fLocator.getBaseSystemId();
        }
        return null;
    
public intgetCharacterOffset()

        if (fLocator != null) {
            return fLocator.getCharacterOffset();
        }
        return -1;
    
public intgetColumnNumber()

        if (fLocator != null) {
            return fLocator.getColumnNumber();
        }
        return -1;
    
public java.lang.StringgetEncoding()

        if (fLocator != null) {
            return fLocator.getEncoding();
        }
        return null;
    
public java.lang.StringgetExpandedSystemId()

        if (fLocator != null) {
            return fLocator.getExpandedSystemId();
        }
        return null;
    
public intgetLineNumber()

        if (fLocator != null) {
            return fLocator.getLineNumber();
        }
        return -1;
    
public java.lang.StringgetLiteralSystemId()

        if (fLocator != null) {
            return fLocator.getLiteralSystemId();
        }
        return null;
    
public org.apache.xerces.xni.XMLLocatorgetLocator()

        return fLocator;
    
public java.lang.StringgetPublicId()

        if (fLocator != null) {
            return fLocator.getPublicId();
        }
        return null;
    
public java.lang.StringgetXMLVersion()

        if (fLocator != null) {
            return fLocator.getXMLVersion();
        }
        return null;
    
public voidsetLocator(org.apache.xerces.xni.XMLLocator locator)

        fLocator = locator;