Class XPathSystemDataProvider

java.lang.Object
de.aristaflow.adept2.model.common.xml.XPathVariableProvider
de.aristaflow.adept2.model.processmodel.xml.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 Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final Instance
    The instance from which to retrieve the system data.
    protected final int
    The ID of the node which is currently being executed to retrieve the performing agent from.

    Fields inherited from class de.aristaflow.adept2.model.common.xml.XPathVariableProvider

    variables
  • Constructor Summary

    Constructors
    Constructor
    Description
    XPathSystemDataProvider(Instance instance, int nodeId)
    Creates a new system data provider for the designated map and the designated node.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected Map<net.sf.saxon.s9api.QName,Pair<net.sf.saxon.s9api.ItemType,net.sf.saxon.s9api.OccurrenceIndicator>>
    Gets all variables provided by this class.
    protected net.sf.saxon.s9api.XdmValue
    getVariableValue(net.sf.saxon.s9api.QName variable)
    Gets the value of the designated variable.

    Methods inherited from class de.aristaflow.adept2.model.common.xml.XPathVariableProvider

    declareVariables, setVariables

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • 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 Details

    • 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 Details

    • 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.