public class Context<N> extends Object
Constructor and Description |
---|
Context(DocumentClient<N> client,
N node,
Function<NamespaceName,Value<N>> variables,
Function<NamespaceName,Function<N>> functions,
Function<String,String> namespaces) |
Modifier and Type | Method and Description |
---|---|
String |
expandNamespacePrefix(String prefix) |
DocumentClient<N> |
getDocumentClient() |
Function<N> |
getFunction(String qname) |
Function<String,String> |
getNamespaces() |
N |
getNode() |
int |
getPosition() |
int |
getSize() |
Value<N> |
getVariable(String qname) |
ContextSequence<N> |
newSequence(NodeSet<N> set) |
NodeSet<N> |
newSet(N... nodes)
convenience function: NodeSet requires this only for documentClient, and
this only for stringValue()!
|
String |
toString() |
Context<N> |
withFunctions(Function<NamespaceName,Function<N>> functions) |
Context<N> |
withNamespaces(Function<String,String> namespaces) |
Context<N> |
withNode(N node) |
Context<N> |
withVariables(Function<NamespaceName,Value<N>> variables) |
Context<N> |
withVariablesAndNamespaces(Function<NamespaceName,Value<N>> variables,
Function<String,String> namespaces) |
public Context(DocumentClient<N> client, N node, Function<NamespaceName,Value<N>> variables, Function<NamespaceName,Function<N>> functions, Function<String,String> namespaces)
public DocumentClient<N> getDocumentClient()
public N getNode()
public int getPosition()
public int getSize()
public Context<N> withVariablesAndNamespaces(Function<NamespaceName,Value<N>> variables, Function<String,String> namespaces)
@SafeVarargs public final NodeSet<N> newSet(N... nodes)
public ContextSequence<N> newSequence(NodeSet<N> set)
see also the complete user documentation .