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
|
NodeInfo |
getElementNode()
Get the reference to the containing element node, if available.
|
int |
getLineNumber()
Get the line number.
|
java.lang.String |
getPublicId()
Get the Public ID
|
java.lang.String |
getSystemId()
Get the system ID.
|
Location |
saveLocation()
Get an immutable copy of this Location object.
|
void |
setElementNode(NodeInfo node)
Add a reference to the containing element node.
|
public AttributeLocation(NodeInfo element, StructuredQName attributeName)
public AttributeLocation(StructuredQName elementName, StructuredQName attributeName, Location location)
public void setElementNode(NodeInfo node)
public NodeInfo getElementNode()
public StructuredQName getElementName()
public StructuredQName getAttributeName()
public int getColumnNumber()
getColumnNumber
in interface javax.xml.transform.SourceLocator
getColumnNumber
in interface Location
getColumnNumber
in interface org.xml.sax.Locator
public java.lang.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 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 Location saveLocation()
saveLocation
in interface Location
Copyright (c) 2004-2020 Saxonica Limited. All rights reserved.