Package com.saxonica.functions.qt4
Class DateTimeRecordFn
java.lang.Object
net.sf.saxon.functions.AbstractFunction
net.sf.saxon.functions.SystemFunction
com.saxonica.functions.qt4.DateTimeRecordFn
- All Implemented Interfaces:
Callable,IFunctionWithRetainedParameterNames,FunctionItem,GroundedValue,Item,Sequence
Implements the implicit constructor for the built-in
named record type
fn:dateTime-record.
This record type is returned by fn:parts-of-dateTime
and accepted as the sole input into fn:build-dateTime.
Initially proposed by XPath 4.0.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final RecordTypeDefine the fn:dateTime-record item type.static final ShapePrepare a shape for creating new instances offn:dateTime-recordstatic final List<SequenceType> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncall(XPathContext context, Sequence[] arguments) Call this function with seven argumentsstatic MapItemmakeDateTimeRecord(IntegerValue year, IntegerValue month, IntegerValue day, IntegerValue hours, IntegerValue minutes, DecimalValue seconds, DayTimeDurationValue timezone) Create an fn:dateTime-record from its component parts.Methods inherited from class net.sf.saxon.functions.SystemFunction
dependsOnContextItem, dynamicCall, equals, export, exportAdditionalArguments, exportAttributes, fixArguments, getArity, getCardinality, getContextNode, getDescription, getDetails, getElaborator, getErrorCodeForTypeErrors, getFunctionItemType, getFunctionName, getNetCost, getOperandRoles, getParameterNames, getRequiredType, getResultItemType, getResultItemType, getRetainedStaticContext, getSpecialProperties, getStaticBaseUriString, getStreamerName, getUniqueIdentifier, getUniStringArg, hashCode, importAttributes, isSequenceVariadic, isTrustedResultType, makeCall, makeFunction, makeFunction40, makeFunctionCall, makeOptimizedFunctionCall, makeTrueFunctionCall, resultIfEmpty, setArity, setDetails, setRetainedStaticContext, supplyTypeInformation, toShortString, toString, typeCheckCallerMethods inherited from class net.sf.saxon.functions.AbstractFunction
atomize, deepEqual40, deepEquals, effectiveBooleanValue, getAnnotations, getUnicodeStringValue, isArray, isMap, makeNewContext, simplify, typeCheckMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.sf.saxon.om.FunctionItem
getGenreMethods inherited from interface net.sf.saxon.om.GroundedValue
asIterable, concatenate, containsNode, materializeMethods inherited from interface net.sf.saxon.om.Item
getLabel, getLength, getStringValue, head, isStreamed, itemAt, iterate, reduce, subsequenceMethods inherited from interface net.sf.saxon.om.Sequence
makeRepeatable
-
Field Details
-
FIELD_NAMES
-
FIELD_TYPES
-
DATE_TIME_RECORD_ITEM_TYPE
Define the fn:dateTime-record item type. -
DATE_TIME_RECORD_SHAPE
Prepare a shape for creating new instances offn:dateTime-record
-
-
Constructor Details
-
DateTimeRecordFn
public DateTimeRecordFn()
-
-
Method Details
-
call
Call this function with seven arguments- Parameters:
context- the dynamic evaluation contextarguments- seven arguments (year, month, day, hours, minutes, seconds, timezone)- Returns:
- the result of the function call
- Throws:
XPathException- if the call fails with a dynamic error
-
makeDateTimeRecord
public static MapItem makeDateTimeRecord(IntegerValue year, IntegerValue month, IntegerValue day, IntegerValue hours, IntegerValue minutes, DecimalValue seconds, DayTimeDurationValue timezone) Create an fn:dateTime-record from its component parts. No validation checks are applied on creation or modification of a fn:dateTime-record. Null fields supplied as arguments result in an absent entry in the returned record.- Parameters:
year- - year number (maybe null)month- - month number (maybe null)day- - day number (maybe null)hours- - hour number (maybe null)minutes- - minute number (maybe null)seconds- - fractional second number (maybe null)timezone- - timezone string (maybe null)- Returns:
- an instance of fn:dateTime-record
-