Package net.sf.saxon.event
Interface LocationProvider
-
- All Known Subinterfaces:
InstructionInfo
,SaxonLocator
,SourceLocationProvider
- All Known Implementing Classes:
AbsentExtensionElement
,AttributeSet
,DocumentSender
,DOMSender
,ExpressionLocation
,ExpressionParser.TemporaryContainer
,ExtensionInstruction
,IdentityTransformerHandler
,InstructionDetails
,KeyDefinition
,LiteralResultElement
,LocationCopier
,LocationMap
,Procedure
,ReceivingContentHandler
,SaxonAssign
,SaxonCallTemplate
,SaxonCollation
,SaxonDoctype
,SaxonEntityRef
,SaxonImportQuery
,SaxonScript
,SaxonWhile
,SQLClose
,SQLColumn
,SQLConnect
,SQLDelete
,SQLInsert
,SQLQuery
,SQLUpdate
,StaxBridge
,StyleElement
,Template
,TemplatesHandlerImpl
,TraceExpression
,TransformerHandlerImpl
,UserFunction
,XQueryFunction
,XSLAnalyzeString
,XSLApplyImports
,XSLApplyTemplates
,XSLAttribute
,XSLAttributeSet
,XSLCallTemplate
,XSLCharacterMap
,XSLChoose
,XSLComment
,XSLCopy
,XSLCopyOf
,XSLDecimalFormat
,XSLDocument
,XSLElement
,XSLFallback
,XSLForEach
,XSLForEachGroup
,XSLFunction
,XSLGeneralIncorporate
,XSLGeneralVariable
,XSLIf
,XSLImport
,XSLImportSchema
,XSLInclude
,XSLKey
,XSLMatchingSubstring
,XSLMessage
,XSLNamespace
,XSLNamespaceAlias
,XSLNextMatch
,XSLNumber
,XSLOtherwise
,XSLOutput
,XSLOutputCharacter
,XSLParam
,XSLPerformSort
,XSLPreserveSpace
,XSLProcessingInstruction
,XSLResultDocument
,XSLSequence
,XSLSort
,XSLStringConstructor
,XSLStylesheet
,XSLTemplate
,XSLText
,XSLValueOf
,XSLVariable
,XSLVariableDeclaration
,XSLWhen
,XSLWithParam
public interface LocationProvider
LocationProvider: this interface represents an object that provides the location of elements in a source document or instructions in a stylesheet or query. A locationProvider may be passed down the Receiver pipeline as part of the PipelineConfiguration object; on the input pipeline, this will be aSaxonLocator
object, on the output pipeline, it will be aLocationMap
A LocationProvider that represents locations in the source document from which the events are derived (as distinct from locations in a query or stylesheet of the instructions causing the events) will also implement the marker interfaceSourceLocationProvider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getLineNumber(int locationId)
Get the line number within the document or module containing a particular locationjava.lang.String
getSystemId(int locationId)
Get the URI of the document or module containing a particular location
-
-
-
Method Detail
-
getSystemId
java.lang.String getSystemId(int locationId)
Get the URI of the document or module containing a particular location- Parameters:
locationId
- identifier of the location in question (as passed down the Receiver pipeline)- Returns:
- the URI of the document or module.
-
getLineNumber
int getLineNumber(int locationId)
Get the line number within the document or module containing a particular location- Parameters:
locationId
- identifier of the location in question (as passed down the Receiver pipeline)- Returns:
- the line number within the document or module.
-
-