public class JsonToXMLFn extends SystemFunction
Modifier and Type | Field and Description |
---|---|
static OptionsParameter |
OPTION_DETAILS |
Constructor and Description |
---|
JsonToXMLFn() |
Modifier and Type | Method and Description |
---|---|
Sequence<?> |
call(XPathContext context,
Sequence[] arguments)
Evaluate the expression
|
protected Item |
eval(java.lang.String input,
MapItem options,
XPathContext context)
Parse the JSON string according to supplied options
|
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, 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, iterator, reduce, subsequence, toGroundedValue
asIterable, materialize
makeRepeatable
public static OptionsParameter OPTION_DETAILS
public Sequence<?> call(XPathContext context, Sequence[] arguments) throws XPathException
context
- the dynamic evaluation contextarguments
- the values of the arguments, supplied as SequenceIteratorsXPathException
- if a dynamic error occurs during the evaluation of the expressionprotected Item eval(java.lang.String input, MapItem options, XPathContext context) throws XPathException
input
- JSON input stringoptions
- options for the conversion as a map of xs:string : value pairscontext
- XPath evaluation contextXPathException
- if the syntax of the input is incorrectCopyright (c) 2004-2020 Saxonica Limited. All rights reserved.