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 Instance
instance
The instance from which to retrieve the system data.protected int
nodeId
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Map<net.sf.saxon.s9api.QName,Pair<net.sf.saxon.s9api.ItemType,net.sf.saxon.s9api.OccurrenceIndicator>>
getVariables()
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
-
-
-
-
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 classXPathVariableProvider
- 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 classXPathVariableProvider
- Parameters:
variable
- The variable for which to get the value.- Returns:
- The value of the designated variable.
-
-