Package eu.bandm.tools.tpath.runtime
Class Context<N>
java.lang.Object
eu.bandm.tools.tpath.runtime.Context<N>
-
Field Summary
-
Constructor Summary
ConstructorDescriptionContext
(DocumentClient<N> client, N node, Function<NamespaceName, Value<N>> variables, Function<NamespaceName, Function<N>> functions, Function<String, String> namespaces) Context
(NodeSet<N> set, N node, int position, Function<NamespaceName, Value<N>> variables, Function<NamespaceName, Function<N>> functions, Function<String, String> namespaces) -
Method Summary
Modifier and TypeMethodDescriptionexpandNamespacePrefix
(String prefix) getFunction
(String qname) getNode()
int
int
getSize()
getVariable
(String qname) newSequence
(NodeSet<N> set) convenience function: NodeSet requires this only for documentClient, and this only for stringValue()!toString()
withFunctions
(Function<NamespaceName, Function<N>> functions) withNamespaces
(Function<String, String> namespaces) withVariables
(Function<NamespaceName, Value<N>> variables) withVariablesAndNamespaces
(Function<NamespaceName, Value<N>> variables, Function<String, String> namespaces)
-
Field Details
-
getNode
-
-
Constructor Details
-
Context
public Context(DocumentClient<N> client, N node, Function<NamespaceName, Value<N>> variables, Function<NamespaceName, Function<N>> functions, Function<String, String> namespaces) -
Context
-
-
Method Details
-
getDocumentClient
-
getNode
-
getPosition
public int getPosition() -
getSize
public int getSize() -
getNamespaces
-
toString
-
withVariables
-
withFunctions
-
withNamespaces
-
withVariablesAndNamespaces
-
withNode
-
getVariable
-
getFunction
-
newSet
convenience function: NodeSet requires this only for documentClient, and this only for stringValue()! -
newSequence
-
expandNamespacePrefix
-