FileDocCategorySizeDatePackage
SimpleLocator.javaAPI DocApache Xerces 3.0.13972Fri Sep 14 20:33:56 BST 2007org.apache.xerces.impl.xs.util

SimpleLocator

public class SimpleLocator extends Object implements org.apache.xerces.xni.XMLLocator
An XMLLocator implementation used for schema error reporting.
xerces.internal
author
Sandy Gao, IBM
version
$Id: SimpleLocator.java 449487 2006-09-24 21:11:28Z mrglavas $

Fields Summary
String
lsid
String
esid
int
line
int
column
int
charOffset
Constructors Summary
public SimpleLocator()

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

        this(lsid, esid, line, column, -1);
    
public SimpleLocator(String lsid, String esid, int line, int column, int offset)

        this.line = line;
        this.column = column;
        this.lsid = lsid;
        this.esid = esid;
        charOffset = offset;
    
Methods Summary
public java.lang.StringgetBaseSystemId()

        return null;
    
public intgetCharacterOffset()

        return charOffset;
    
public intgetColumnNumber()

        return column;
    
public java.lang.StringgetEncoding()
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.

        return null;
    
public java.lang.StringgetExpandedSystemId()

        return esid;
    
public intgetLineNumber()

        return line;
    
public java.lang.StringgetLiteralSystemId()

        return lsid;
    
public java.lang.StringgetPublicId()

        return null;
    
public java.lang.StringgetXMLVersion()

        return null;
    
public voidsetBaseSystemId(java.lang.String systemId)

see
org.apache.xerces.xni.XMLResourceIdentifier#setBaseSystemId(String)

public voidsetCharacterOffset(int offset)

        charOffset = offset;
    
public voidsetColumnNumber(int col)

        this.column = col;
    
public voidsetExpandedSystemId(java.lang.String systemId)

see
org.apache.xerces.xni.XMLResourceIdentifier#setExpandedSystemId(String)

        esid = systemId;
    
public voidsetLineNumber(int line)

        this.line = line;
    
public voidsetLiteralSystemId(java.lang.String systemId)

see
org.apache.xerces.xni.XMLResourceIdentifier#setLiteralSystemId(String)

        lsid = systemId;
    
public voidsetPublicId(java.lang.String publicId)

see
org.apache.xerces.xni.XMLResourceIdentifier#setPublicId(String)

public voidsetValues(java.lang.String lsid, java.lang.String esid, int line, int column)

        setValues(lsid, esid, line, column, -1);
    
public voidsetValues(java.lang.String lsid, java.lang.String esid, int line, int column, int offset)

        this.line = line;
        this.column = column;
        this.lsid = lsid;
        this.esid = esid;
        charOffset = offset;