public class UnparsedText extends UnparsedTextFunction implements PushableFunction
Constructor and Description |
---|
UnparsedText() |
Modifier and Type | Method and Description |
---|---|
ZeroOrOne<StringValue> |
call(XPathContext context,
Sequence[] arguments)
Evaluate the expression
|
static StringValue |
evalUnparsedText(StringValue hrefVal,
java.lang.String base,
java.lang.String encoding,
XPathContext context)
Evaluation of the unparsed-text function
|
static void |
main(java.lang.String[] args) |
void |
process(Outputter destination,
XPathContext context,
Sequence[] arguments)
Evaluate the function in "push" mode
|
getAbsoluteURI, getSpecialProperties, handleIOError, readFile, readFile, readFile
dependsOnContextItem, dynamicCall, equals, export, exportAdditionalArguments, exportAttributes, fixArguments, getArity, getCardinality, getCompilerName, getContextNode, getDescription, getDetails, getErrorCodeForTypeErrors, getFunctionItemType, getFunctionName, getIntegerBounds, getNetCost, getOperandRoles, getRequiredType, getResultItemType, getResultItemType, getRetainedStaticContext, getStaticBaseUriString, getStreamerName, importAttributes, isTrustedResultType, makeCall, makeFunction, makeFunctionCall, makeOptimizedFunctionCall, resultIfEmpty, setArity, setDetails, setRetainedStaticContext, supplyTypeInformation, toShortString, toString, typeCheckCaller
atomize, deepEquals, effectiveBooleanValue, getAnnotations, getStringValue, getStringValueCS, isArray, isMap, makeNewContext, simplify, typeCheck
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
argumentArray, getGenre
getLength, head, isStreamed, itemAt, iterate, reduce, subsequence, toGroundedValue
asIterable, concatenate, containsNode, materialize
makeRepeatable
public ZeroOrOne<StringValue> call(XPathContext context, Sequence[] arguments) throws XPathException
call
in interface Callable
call
in interface Function
context
- the dynamic evaluation contextarguments
- the values of the arguments, supplied as SequenceIteratorsXPathException
- if a dynamic error occurs during the evaluation of the expressionpublic void process(Outputter destination, XPathContext context, Sequence[] arguments) throws XPathException
PushableFunction
process
in interface PushableFunction
destination
- the destination for the function resultcontext
- the dynamic evaluation contextarguments
- the supplied arguments to the functionXPathException
- if a dynamic error occurs during the evaluationpublic static StringValue evalUnparsedText(StringValue hrefVal, java.lang.String base, java.lang.String encoding, XPathContext context) throws XPathException
hrefVal
- the relative URIbase
- the base URIencoding
- the encoding to be usedcontext
- dynamic evaluation contextXPathException
- if evaluation failspublic static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
Copyright (c) 2004-2020 Saxonica Limited. All rights reserved.