public class AttributeLocation extends Object implements Location
| Constructor and Description |
|---|
AttributeLocation(NodeInfo element,
StructuredQName attributeName) |
AttributeLocation(StructuredQName elementName,
StructuredQName attributeName,
Location location) |
| Modifier and Type | Method and Description |
|---|---|
StructuredQName |
getAttributeName()
Get the name of the containing attribute
|
int |
getColumnNumber()
Get the column number.
|
StructuredQName |
getElementName()
Get the name of the containing element
|
int |
getLineNumber()
Get the line number.
|
String |
getPublicId()
Get the Public ID
|
String |
getSystemId()
Get the system ID.
|
Location |
saveLocation()
Get an immutable copy of this Location object.
|
public AttributeLocation(NodeInfo element, StructuredQName attributeName)
public AttributeLocation(StructuredQName elementName, StructuredQName attributeName, Location location)
public StructuredQName getElementName()
public StructuredQName getAttributeName()
public int getColumnNumber()
getColumnNumber in interface SourceLocatorgetColumnNumber in interface LocationgetColumnNumber in interface Locatorpublic String getSystemId()
The system identifier of a node is in general not the same as its base URI. The base URI is affected by xml:base attributes; the system identifier is not.
getSystemId in interface SourceLocatorgetSystemId in interface LocationgetSystemId in interface Locatorpublic String getPublicId()
getPublicId in interface SourceLocatorgetPublicId in interface LocationgetPublicId in interface Locatorpublic int getLineNumber()
getLineNumber in interface SourceLocatorgetLineNumber in interface LocationgetLineNumber in interface Locatorpublic Location saveLocation()
saveLocation in interface LocationCopyright (c) 2004-2014 Saxonica Limited. All rights reserved.