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.SourceLocator
getSystemId
in interface Location
getSystemId
in interface org.xml.sax.Locator
public java.lang.String getPublicId()
getPublicId
in interface javax.xml.transform.SourceLocator
getPublicId
in interface Location
getPublicId
in interface org.xml.sax.Locator
public int getLineNumber()
getLineNumber
in interface javax.xml.transform.SourceLocator
getLineNumber
in interface Location
getLineNumber
in interface org.xml.sax.Locator
public int getColumnNumber()
getColumnNumber
in interface javax.xml.transform.SourceLocator
getColumnNumber
in interface Location
getColumnNumber
in interface org.xml.sax.Locator
public Location saveLocation()
saveLocation
in interface Location
Copyright (c) 2004-2020 Saxonica Limited. All rights reserved.