Class XPathSystemDataProvider


  • public class XPathSystemDataProvider
    extends XPathVariableProvider
    This class provides the usual system data:
    • {} (xs:long)
    • {} (xs:long)
    • {} (xs:long)
    • {} (xs:long)
    • {} (xs:long)
    • {} (xs:long)
    • {} (xs:long)
    • {} (xs:long)
    • {} (xs:dateTime)
    • Field Detail

      • instance

        protected final Instance instance
        The instance from which to retrieve the system data.
      • nodeId

        protected final int nodeId
        The ID of the node which is currently being executed to retrieve the performing agent from.
    • Constructor Detail

      • XPathSystemDataProvider

        public XPathSystemDataProvider​(Instance instance,
                                       int nodeId)
        Creates a new system data provider for the designated map and the designated node.
        Parameters:
        instance - The instance from which to retrieve the system data.
        nodeId - The ID of the node which is currently being executed to retrieve the performing agent from.
    • Method Detail

      • getVariables

        protected Map<net.sf.saxon.s9api.QName,​Pair<net.sf.saxon.s9api.ItemType,​net.sf.saxon.s9api.OccurrenceIndicator>> getVariables()
        Description copied from class: XPathVariableProvider
        Gets all variables provided by this class. The type and occurrence indicator are optional. If not provided, defaults will be used.
        Specified by:
        getVariables in class XPathVariableProvider
        Returns:
        The variables to be replaced within an XPath. The variable name is required, the map values are optional. If a variable has no value in the map it will be declared with default type and occurrence indicator.
        See Also:
        XPathCompiler.declareVariable(QName)
      • getVariableValue

        protected net.sf.saxon.s9api.XdmValue getVariableValue​(net.sf.saxon.s9api.QName variable)
        Description copied from class: XPathVariableProvider
        Gets the value of the designated variable.
        Specified by:
        getVariableValue in class XPathVariableProvider
        Parameters:
        variable - The variable for which to get the value.
        Returns:
        The value of the designated variable.