public final class SimpleLocator extends Object implements XMLLocator
Constructor and Description |
---|
SimpleLocator() |
SimpleLocator(String lsid,
String esid,
int line,
int column) |
SimpleLocator(String lsid,
String esid,
int line,
int column,
int offset) |
Modifier and Type | Method and Description |
---|---|
String |
getBaseSystemId()
Returns the base system identifier.
|
int |
getCharacterOffset()
Returns the character offset, or
-1 if no character offset is available. |
int |
getColumnNumber()
Returns the column number, or
-1 if no column number is available. |
String |
getEncoding()
Returns the encoding of the current entity.
|
String |
getExpandedSystemId()
Returns the expanded system identifier.
|
int |
getLineNumber()
Returns the line number, or
-1 if no line number is available. |
String |
getLiteralSystemId()
Returns the literal system identifier.
|
String |
getPublicId()
Returns the public identifier.
|
String |
getXMLVersion()
Returns the XML version of the current entity.
|
void |
setBaseSystemId(String systemId) |
void |
setCharacterOffset(int offset) |
void |
setColumnNumber(int col) |
void |
setExpandedSystemId(String systemId) |
void |
setLineNumber(int line) |
void |
setLiteralSystemId(String systemId) |
void |
setPublicId(String publicId) |
void |
setValues(String lsid,
String esid,
int line,
int column) |
void |
setValues(String lsid,
String esid,
int line,
int column,
int offset) |
public int getLineNumber()
XMLLocator
-1
if no line number is available.getLineNumber
in interface XMLLocator
public int getColumnNumber()
XMLLocator
-1
if no column number is available.getColumnNumber
in interface XMLLocator
public int getCharacterOffset()
XMLLocator
-1
if no character offset is available.getCharacterOffset
in interface XMLLocator
public String getPublicId()
XMLLocator
getPublicId
in interface XMLLocator
public String getExpandedSystemId()
XMLLocator
getExpandedSystemId
in interface XMLLocator
public String getLiteralSystemId()
XMLLocator
getLiteralSystemId
in interface XMLLocator
public String getBaseSystemId()
XMLLocator
getBaseSystemId
in interface XMLLocator
public void setColumnNumber(int col)
public void setLineNumber(int line)
public void setCharacterOffset(int offset)
public void setBaseSystemId(String systemId)
public void setExpandedSystemId(String systemId)
public void setLiteralSystemId(String systemId)
public void setPublicId(String publicId)
public String getEncoding()
getEncoding
in interface XMLLocator
public String getXMLVersion()
XMLLocator
getXMLVersion
in interface XMLLocator
Copyright © 2017 JBoss by Red Hat. All rights reserved.