public interface SourceLocator
extends javax.xml.transform.SourceLocator, org.xml.sax.Locator
Modifier and Type | Interface and Description |
---|---|
static class |
SourceLocator.Simple |
Modifier and Type | Method and Description |
---|---|
int |
getColumnNumber()
Return current column number.
|
int |
getEndColumn()
Column (one-origin) of end of range; unknown/unspecified is -1.
|
int |
getEndLine()
Line number (one-origin) of end of range; unknown/unspecified is -1.
|
java.lang.String |
getFileName()
Normally same as getSystemId.
|
int |
getLineNumber()
Return current line number.
|
java.lang.String |
getPublicId() |
int |
getStartColumn()
Column (one-origin) of start of range; unknown/unspecified is -1.
|
int |
getStartLine()
Line number (one-origin) of start of range; unknown/unspecified is -1.
|
java.lang.String |
getSystemId() |
boolean |
isStableSourceLocation()
True if position is unlikely to change.
|
int getLineNumber()
getStartLine()
.
The "first" line is line 1; unknown is -1.getLineNumber
in interface org.xml.sax.Locator
getLineNumber
in interface javax.xml.transform.SourceLocator
int getColumnNumber()
getStartColumn()
.
The "first" column is column 1; unknown is -1.getColumnNumber
in interface org.xml.sax.Locator
getColumnNumber
in interface javax.xml.transform.SourceLocator
int getStartLine()
int getStartColumn()
int getEndLine()
int getEndColumn()
java.lang.String getPublicId()
getPublicId
in interface org.xml.sax.Locator
getPublicId
in interface javax.xml.transform.SourceLocator
java.lang.String getSystemId()
getSystemId
in interface org.xml.sax.Locator
getSystemId
in interface javax.xml.transform.SourceLocator
java.lang.String getFileName()
boolean isStableSourceLocation()