Changes

Jump to navigation Jump to search
56 bytes added ,  15:34, 16 July 2021
===Conversion to XQuery===
By default, Java values with the most common types (as shown in the second and third column of the table) are converted to XQuery values. All other values are returned as ''Java items'', which are function items with a wrapped Java value. The results of constructor calls will are always be returned as Java items.
The conversion of the wrapped Java value to XQuery is enforced by invoking the function item: Values in {{Code|Iterator}} and {{Code|Iterable}} instances (Lists, Sets and Collections) are converted to items, and maps are converted to XQuery maps:
</syntaxhighlight>
If no conversion is defined, the value a string is returned, which is returned by resulting from the object’s {{Code|toString()}} methodof the object. This function method is also called if is the string repesentation representation of a Java item is requested:
<syntaxhighlight lang="xquery">
|- valign="top"
| {{Code|none}}
| The All Java values are converted. If no conversion is enforceddefined, a string is returned, and no Java values will be wrappedresulting from the {{Code|toString()}} method.
|- valign="top"
| {{Code|all}}
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu