public class Doc extends SystemFunction implements Callable
| Constructor and Description |
|---|
Doc() |
| Modifier and Type | Method and Description |
|---|---|
ZeroOrOne<NodeInfo> |
call(XPathContext context,
Sequence[] arguments)
Evaluate the expression
|
int |
getCardinality(Expression[] arguments)
Get the cardinality, given knowledge of the actual arguments
|
ParseOptions |
getParseOptions()
Get the parsing options set via setParseOptions()
|
int |
getSpecialProperties(Expression[] arguments)
Get the static properties of this expression (other than its type).
|
boolean |
isReadOnce()
Ask whether this document has been marked as being read once only.
|
void |
sendDocument(XPathContext context,
Expression[] args,
Receiver out)
Copy the document identified by this expression to a given Receiver.
|
void |
setParseOptions(ParseOptions parseOptions)
Set options to be used for the parsing operation.
|
void |
setReadOnce(boolean once)
Indicate that the document will be read once only (or that it should be treated as if it
is read once only.
|
equals, export, exportAttributes, getArity, getContextNode, getDescription, getDetails, getErrorCodeForTypeErrors, getExpressionCompiler, getFunctionItemType, getFunctionName, getIntegerBounds, getOperandRoles, getRequiredType, getResultItemType, getResultItemType, getRetainedStaticContext, getStaticBaseUriString, getStreamingAdjunct, importAttributes, makeCall, makeFunction, makeFunctionCall, makeOptimizedFunctionCall, resultIfEmpty, setArity, setDetails, setRetainedStaticContext, supplyTypeInformation, typeCheckCalleratomize, deepEquals, effectiveBooleanValue, getStringValue, getStringValueCS, isArray, isMap, optimize, simplify, typeCheckgetLength, head, itemAt, iterate, reduce, subsequenceclone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLength, head, itemAt, reduce, subsequencepublic void setReadOnce(boolean once)
once - true if this document is to be treated as being read once onlypublic boolean isReadOnce()
public ParseOptions getParseOptions()
public void setParseOptions(ParseOptions parseOptions)
parseOptions - the parsing options to be used. Currently only affects the behaviour of the sendDocument()
method (used in streamed merging)public int getCardinality(Expression[] arguments)
SystemFunctiongetCardinality in class SystemFunctionarguments - the actual arguments suppliedpublic ZeroOrOne<NodeInfo> call(XPathContext context, Sequence[] arguments) throws XPathException
call in interface Callablecall in interface Functioncontext - the dynamic evaluation contextarguments - the values of the arguments, supplied as SequenceIteratorsXPathException - if a dynamic error occurs during the evaluation of the expressionpublic int getSpecialProperties(Expression[] arguments)
getSpecialProperties in class SystemFunctionarguments - public void sendDocument(XPathContext context, Expression[] args, Receiver out) throws XPathException
context - the XPath dynamic contextargs - the arguments to the doc functionout - the destination to which the document will be sentXPathException - if a failure occursCopyright (c) 2004-2014 Saxonica Limited. All rights reserved.