Class XPathSystemDataProvider
java.lang.Object
de.aristaflow.adept2.model.common.xml.XPathVariableProvider
de.aristaflow.adept2.model.processmodel.xml.XPathSystemDataProvider
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
FieldsModifier and TypeFieldDescriptionprotected final InstanceThe instance from which to retrieve the system data.protected final intThe 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
ConstructorsConstructorDescriptionXPathSystemDataProvider(Instance instance, int nodeId) Creates a new system data provider for the designated map and the designated node. -
Method Summary
Modifier and TypeMethodDescriptionprotected 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.XdmValuegetVariableValue(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 Details
-
instance
The instance from which to retrieve the system data. -
nodeId
protected final int nodeIdThe ID of the node which is currently being executed to retrieve the performing agent from.
-
-
Constructor Details
-
XPathSystemDataProvider
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, getVariables()net.sf.saxon.s9api.OccurrenceIndicator>> Description copied from class:XPathVariableProviderGets all variables provided by this class. The type and occurrence indicator are optional. If not provided, defaults will be used.- Specified by:
getVariablesin 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:XPathVariableProviderGets the value of the designated variable.- Specified by:
getVariableValuein classXPathVariableProvider- Parameters:
variable- The variable for which to get the value.- Returns:
- The value of the designated variable.
-