public class ClauseInfo extends java.lang.Object implements InstructionInfo
Constructor and Description |
---|
ClauseInfo(Clause clause,
Container container) |
Modifier and Type | Method and Description |
---|---|
Clause |
getClause()
Get the clause being traced
|
int |
getColumnNumber()
Return the column number where the current document event ends.
|
int |
getColumnNumber(long locationId)
Get the column number within the document, entity, or module containing a particular location
|
int |
getConstructType()
Get the type of construct.
|
int |
getLineNumber()
Get the line number of the instruction in the source stylesheet module.
|
int |
getLineNumber(long locationId)
Get the line number within the document, entity or module containing a particular location
|
NamespaceResolver |
getNamespaceResolver()
Get the namespace bindings from the static context of the clause
|
StructuredQName |
getObjectName()
Get a name identifying the object of the expression, for example a function name, template name,
variable name, key name, element name, etc.
|
java.util.Iterator<java.lang.String> |
getProperties()
Get an iterator over all the properties available.
|
java.lang.Object |
getProperty(java.lang.String name)
Get the value of a particular property of the instruction.
|
java.lang.String |
getPublicId()
Return the public identifier for the current document event.
|
java.lang.String |
getSystemId()
Get the system identifier (URI) of the source stylesheet or query module containing
the instruction.
|
java.lang.String |
getSystemId(long locationId)
Get the URI of the document, entity, or module containing a particular location
|
void |
setNamespaceResolver(NamespaceResolver nsResolver)
Set the namespace bindings from the static context of the clause
|
public Clause getClause()
public int getConstructType()
StandardNames
: all less than 1024)
or it will be a constant in class Location
.getConstructType
in interface InstructionInfo
public StructuredQName getObjectName()
getObjectName
in interface InstructionInfo
public NamespaceResolver getNamespaceResolver()
public void setNamespaceResolver(NamespaceResolver nsResolver)
nsResolver
- a namespace resolver that reflects the in scope namespaces of the clausepublic java.lang.String getSystemId()
getSystemId
in interface javax.xml.transform.SourceLocator
getSystemId
in interface InstructionInfo
getSystemId
in interface org.xml.sax.Locator
public int getLineNumber()
getLineNumber
in interface javax.xml.transform.SourceLocator
getLineNumber
in interface InstructionInfo
getLineNumber
in interface org.xml.sax.Locator
public java.lang.Object getProperty(java.lang.String name)
getProperty
in interface InstructionInfo
name
- The name of the required propertypublic java.util.Iterator<java.lang.String> getProperties()
getProperties
in interface InstructionInfo
public java.lang.String getSystemId(long locationId)
getSystemId
in interface LocationProvider
locationId
- identifier of the location in question (as passed down the Receiver pipeline)public int getLineNumber(long locationId)
getLineNumber
in interface LocationProvider
locationId
- identifier of the location in question (as passed down the Receiver pipeline)public int getColumnNumber(long locationId)
getColumnNumber
in interface LocationProvider
locationId
- identifier of the location in question (as passed down the Receiver pipeline)public java.lang.String getPublicId()
The return value is the public identifier of the document entity or of the external parsed entity in which the markup triggering the event appears.
getPublicId
in interface javax.xml.transform.SourceLocator
getPublicId
in interface org.xml.sax.Locator
getSystemId()
public int getColumnNumber()
char
values since
the last line end.
Warning: The return value from the method is intended only as an approximation for the sake of diagnostics; it is not intended to provide sufficient information to edit the character content of the original XML document. For example, when lines contain combining character sequences, wide characters, surrogate pairs, or bi-directional text, the value may not correspond to the column in a text editor's display.
The return value is an approximation of the column number in the document entity or external parsed entity where the markup triggering the event appears.
If possible, the SAX driver should provide the line position of the first character after the text associated with the document event. The first column in each line is column 1.
getColumnNumber
in interface javax.xml.transform.SourceLocator
getColumnNumber
in interface org.xml.sax.Locator
getLineNumber()