public static class ReceivingContentHandler.LocalLocator extends java.lang.Object implements Location
Location interface that wraps the SAX Locator
information. Note that this object is mutable and changes continually as parsing proceeds;
it is therefore necessary to call its saveLocation() method to obtain an
immutable location that still has meaning once parsing is finished.| Modifier and Type | Field and Description |
|---|---|
int |
levelInEntity |
| Constructor and Description |
|---|
LocalLocator(org.xml.sax.Locator saxLocator) |
| Modifier and Type | Method and Description |
|---|---|
int |
getColumnNumber()
Return the character position where the current document event ends.
|
int |
getLineNumber()
Return the line number where the current document event ends.
|
java.lang.String |
getPublicId()
Return the public identifier for the current document event.
|
java.lang.String |
getSystemId()
Return the system identifier for the current document event.
|
Location |
saveLocation()
Get an immutable copy of this Location object.
|
public java.lang.String getSystemId()
getSystemId in interface javax.xml.transform.SourceLocatorgetSystemId in interface LocationgetSystemId in interface org.xml.sax.Locatorpublic java.lang.String getPublicId()
getPublicId in interface javax.xml.transform.SourceLocatorgetPublicId in interface LocationgetPublicId in interface org.xml.sax.Locatorpublic int getLineNumber()
getLineNumber in interface javax.xml.transform.SourceLocatorgetLineNumber in interface LocationgetLineNumber in interface org.xml.sax.Locatorpublic int getColumnNumber()
getColumnNumber in interface javax.xml.transform.SourceLocatorgetColumnNumber in interface LocationgetColumnNumber in interface org.xml.sax.Locatorpublic Location saveLocation()
saveLocation in interface LocationCopyright (c) 2004-2020 Saxonica Limited. All rights reserved.