Package net.sf.saxon.ma.json
Class XMLToJsonFn
java.lang.Object
net.sf.saxon.functions.AbstractFunction
net.sf.saxon.functions.SystemFunction
net.sf.saxon.ma.json.XMLToJsonFn
- All Implemented Interfaces:
Iterable<Function>,Callable,Function,GroundedValue<Function>,Item<Function>,Sequence<Function>
Implement the XML to JSON conversion as a built-in function - fn:xml-to-json()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSequence<?>call(XPathContext context, Sequence[] arguments) Invoke the functionGet 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 OptionsParameterMethods inherited from class net.sf.saxon.functions.SystemFunction
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, typeCheckCallerMethods inherited from class net.sf.saxon.functions.AbstractFunction
atomize, deepEquals, effectiveBooleanValue, getAnnotations, getStringValue, getStringValueCS, isArray, isMap, makeNewContext, simplify, typeCheckMethods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.sf.saxon.om.GroundedValue
asIterable, materializeMethods inherited from interface net.sf.saxon.om.Item
getLength, head, isStreamed, itemAt, iterate, iterator, reduce, subsequenceMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface net.sf.saxon.om.Sequence
makeRepeatable
-
Constructor Details
-
XMLToJsonFn
public XMLToJsonFn()
-
-
Method Details
-
makeOptionsParameter
-
call
Description copied from interface:FunctionInvoke the function- Parameters:
context- the XPath dynamic evaluation contextarguments- the actual arguments to be supplied- Returns:
- the result of invoking the function
- Throws:
XPathException- if a dynamic error occurs within the function
-
getStreamerName
Description copied from class:SystemFunctionGet 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. Special streaming support is generally available in Saxon-EE for all system functions that take a sequence as their argument.- Overrides:
getStreamerNamein classSystemFunction- Returns:
- a name that identifies a class that supports streamed evaluation of this system
function, or null if no such class is available. The mapping of names to classes is
defined in the Saxon-EE class
StreamerMap. In non-streaming Saxon editions (HE and PE) the method always returns null.
-