public class XMLToJsonFn extends SystemFunction implements PushableFunction
Constructor and Description |
---|
XMLToJsonFn() |
Modifier and Type | Method and Description |
---|---|
Sequence |
call(XPathContext context,
Sequence[] arguments)
Invoke the function
|
java.lang.String |
getStreamerName()
Get a name that identifies the class that can be used to evaluate this function
in streaming mode, that is, supplying one item or event at a time as it is
delivered by the parser.
|
static OptionsParameter |
makeOptionsParameter() |
void |
process(Outputter destination,
XPathContext context,
Sequence[] arguments)
Evaluate the function in "push" mode
|
dependsOnContextItem, dynamicCall, equals, export, exportAdditionalArguments, exportAttributes, fixArguments, getArity, getCardinality, getCompilerName, getContextNode, getDescription, getDetails, getErrorCodeForTypeErrors, getFunctionItemType, getFunctionName, getIntegerBounds, getNetCost, getOperandRoles, getRequiredType, getResultItemType, getResultItemType, getRetainedStaticContext, getSpecialProperties, getStaticBaseUriString, 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 static OptionsParameter makeOptionsParameter()
public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException
Function
call
in interface Callable
call
in interface Function
context
- the XPath dynamic evaluation contextarguments
- the actual arguments to be suppliedXPathException
- if a dynamic error occurs within the functionpublic 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 java.lang.String getStreamerName()
SystemFunction
getStreamerName
in class SystemFunction
StreamerMap
. In non-streaming Saxon editions
(HE and PE) the method always returns null.Copyright (c) 2004-2020 Saxonica Limited. All rights reserved.