Package com.steadystate.css.parser
Class LocatorImpl
- java.lang.Object
-
- com.steadystate.css.parser.LocatorImpl
-
- All Implemented Interfaces:
java.io.Serializable,org.w3c.css.sac.Locator
public class LocatorImpl extends java.lang.Object implements org.w3c.css.sac.Locator, java.io.SerializableImplementation ofLocator.- Version:
- $Id: LocatorImpl.java,v 1.2 2008/03/26 02:08:55 sdanig Exp $
- Author:
- David Schweinsberg
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LocatorImpl()LocatorImpl(java.lang.String uri, int line, int column)Creates new LocatorImpl
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetColumnNumber()Return the column number where the current document event ends.intgetLineNumber()Return the line number where the current document event ends.java.lang.StringgetUri()java.lang.StringgetURI()Return the URI for the current document event.voidsetColumnNumber(int column)voidsetLineNumber(int line)voidsetUri(java.lang.String uri)
-
-
-
Method Detail
-
getUri
public java.lang.String getUri()
-
setUri
public void setUri(java.lang.String uri)
-
setLineNumber
public void setLineNumber(int line)
-
setColumnNumber
public void setColumnNumber(int column)
-
getLineNumber
public int getLineNumber()
Return the line number where the current document event ends. Note that this is the line position of the first character after the text associated with the document event.- Specified by:
getLineNumberin interfaceorg.w3c.css.sac.Locator- Returns:
- The line number, or -1 if none is available.
- See Also:
getColumnNumber()
-
getURI
public java.lang.String getURI()
Return the URI for the current document event.The parser must resolve the URI fully before passing it to the application.
- Specified by:
getURIin interfaceorg.w3c.css.sac.Locator- Returns:
- A string containing the URI, or null if none is available.
-
getColumnNumber
public int getColumnNumber()
Return the column number where the current document event ends. Note that this is the column number of the first character after the text associated with the document event. The first column in a line is position 1.- Specified by:
getColumnNumberin interfaceorg.w3c.css.sac.Locator- Returns:
- The column number, or -1 if none is available.
- See Also:
getLineNumber()
-
-