FileDocCategorySizeDatePackage
SimpleLocator.javaAPI DocJava SE 6 API3955Tue Jun 10 00:22:48 BST 2008com.sun.org.apache.xerces.internal.impl.xs.util

SimpleLocator

public class SimpleLocator extends Object implements XMLLocator
An XMLLocator implementation used for schema error reporting.
xerces.internal
author
Sandy Gao, IBM
version
$Id: SimpleLocator.java,v 1.2.6.1 2005/09/09 07:28:11 sunithareddy Exp $

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
com.sun.org.apache.xerces.internal.xni.XMLResourceIdentifier#setBaseSystemId(String)

public voidsetCharacterOffset(int offset)

        charOffset = offset;
    
public voidsetColumnNumber(int col)

see
com.sun.org.apache.xerces.internal.xni.XMLLocator#setColumnNumber(int)

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

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

        esid = systemId;
    
public voidsetLineNumber(int line)

see
com.sun.org.apache.xerces.internal.xni.XMLLocator#setLineNumber(int)

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

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

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

see
com.sun.org.apache.xerces.internal.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;