public class LocatorImpl extends Object implements Locator, Serializable
Locator
.Constructor and Description |
---|
LocatorImpl(String uri,
int line,
int column)
Creates new LocatorImpl
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
getColumnNumber()
Return the column number where the current document event ends.
|
int |
getLineNumber()
Return the line number where the current document event ends.
|
String |
getUri() |
String |
getURI()
Return the URI for the current document event.
|
int |
hashCode() |
void |
setColumnNumber(int column)
Set the columnNumber to a new value.
|
void |
setLineNumber(int line)
Set the lineNumber to a new value.
|
void |
setUri(String uri)
Set the uri to a new value.
|
String |
toString() |
public LocatorImpl(String uri, int line, int column)
uri
- the uriline
- the lineNumbercolumn
- the columnNumberpublic String getURI()
The parser must resolve the URI fully before passing it to the application.
public String getUri()
public void setUri(String uri)
uri
- the new urigetURI()
public int getColumnNumber()
getColumnNumber
in interface Locator
getLineNumber()
public void setColumnNumber(int column)
column
- the new columnNumberpublic int getLineNumber()
getLineNumber
in interface Locator
getColumnNumber()
public void setLineNumber(int line)
line
- the new lineNumberCopyright © 1999–2022. All rights reserved.