FileDocCategorySizeDatePackage
SimpleLocator.javaAPI DocJava SE 5 API5279Fri Aug 26 14:55:52 BST 2005com.sun.org.apache.xerces.internal.impl.xs.util

SimpleLocator

public class SimpleLocator extends Object implements XMLLocator
An XMLLocator implementation used for schema error reporting.
author
Sandy Gao, IBM
version
$Id: SimpleLocator.java,v 1.3 2003/03/26 04:19:23 neilg Exp $

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

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

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

        return null;
    
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 voidsetBaseSystemId(java.lang.String systemId)

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

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)

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