public class XMLLocationInformation extends LocationInformation
Line and column number are only available if the withLineInformation
parameter in the call to one of the
XMLPropertyListParser
's parse methods was set to true
. The line information is taken from the
Locator
class and thus is only an approximation of the actual location that can only be used
for diagnostic purposes.
Modifier and Type | Method and Description |
---|---|
int |
getColumnNumber()
Gets the column number of the end of the XML node's start tag, if available.
|
String |
getDescription()
Gets a description of the object location.
|
int |
getLineNumber()
Gets the line number of the end of the XML node's start tag, if available.
|
String |
getXPath()
Gets the XPath of the XML node that is the source for the NSObject.
|
boolean |
hasLineInformation()
Gets a value indicating whether line and column number are available.
|
toString
public String getXPath()
public boolean hasLineInformation()
true
, if both line and column number are available; false
, otherwise.public int getLineNumber()
Locator.getLineNumber()
,
hasLineInformation()
public int getColumnNumber()
Locator.getColumnNumber()
,
hasLineInformation()
public String getDescription()
LocationInformation
getDescription
in class LocationInformation
Copyright © 2024. All rights reserved.