org.zkoss.idom.util
Class SimpleLocator

java.lang.Object
  extended by org.zkoss.idom.util.SimpleLocator
All Implemented Interfaces:
Serializable, SourceLocator, Locator

public class SimpleLocator
extends Object
implements Locator, Serializable

The locator implementation. Useful to assign the location information to vertices.

Author:
tomyeh
See Also:
Item, Serialized Form

Field Summary
protected  int _colno
           
protected  int _lnno
           
protected  String _pubId
           
protected  String _sysId
           
 
Constructor Summary
SimpleLocator(int colno, int lnno, String pubId, String sysId)
          Constructor.
SimpleLocator(Locator loc)
          Constructor with another locator.
SimpleLocator(SourceLocator loc)
          Constructor with another locator.
 
Method Summary
 int getColumnNumber()
           
 int getLineNumber()
           
 String getPublicId()
           
 String getSystemId()
           
 String toString()
           
static String toString(Locator loc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_colno

protected int _colno

_lnno

protected int _lnno

_pubId

protected String _pubId

_sysId

protected String _sysId
Constructor Detail

SimpleLocator

public SimpleLocator(Locator loc)
Constructor with another locator.


SimpleLocator

public SimpleLocator(SourceLocator loc)
Constructor with another locator.


SimpleLocator

public SimpleLocator(int colno,
                     int lnno,
                     String pubId,
                     String sysId)
Constructor.

Method Detail

toString

public static final String toString(Locator loc)

getColumnNumber

public final int getColumnNumber()
Specified by:
getColumnNumber in interface SourceLocator
Specified by:
getColumnNumber in interface Locator

getLineNumber

public final int getLineNumber()
Specified by:
getLineNumber in interface SourceLocator
Specified by:
getLineNumber in interface Locator

getPublicId

public final String getPublicId()
Specified by:
getPublicId in interface SourceLocator
Specified by:
getPublicId in interface Locator

getSystemId

public final String getSystemId()
Specified by:
getSystemId in interface SourceLocator
Specified by:
getSystemId in interface Locator

toString

public final String toString()
Overrides:
toString in class Object


Copyright © 2012. All Rights Reserved.