org.exist.xquery.functions
Class FunGetDurationComponent

java.lang.Object
  extended byorg.exist.xquery.AbstractExpression
      extended byorg.exist.xquery.PathExpr
          extended byorg.exist.xquery.Function
              extended byorg.exist.xquery.BasicFunction
                  extended byorg.exist.xquery.functions.FunGetDurationComponent
All Implemented Interfaces:
CompiledExpression, CompiledXQuery, Expression

public class FunGetDurationComponent
extends BasicFunction


Field Summary
static FunctionSignature fnDaysFromDuration
           
static FunctionSignature fnHoursFromDuration
           
static FunctionSignature fnMinutesFromDuration
           
static FunctionSignature fnMonthsFromDuration
           
static FunctionSignature fnSecondsFromDuration
           
static FunctionSignature fnYearsFromDuration
           
 
Fields inherited from class org.exist.xquery.Function
BUILTIN_FUNCTION_NS
 
Fields inherited from interface org.exist.xquery.Expression
DOT_TEST, EXPRESSION_ID_INVALID, IGNORE_CONTEXT, IN_PREDICATE, IN_UPDATE, IN_WHERE_CLAUSE, NO_CONTEXT_ID, SINGLE_STEP_EXECUTION
 
Constructor Summary
FunGetDurationComponent(XQueryContext context, FunctionSignature signature)
           
 
Method Summary
 Sequence eval(Sequence[] args, Sequence contextSequence)
          Process the function.
 
Methods inherited from class org.exist.xquery.BasicFunction
eval
 
Methods inherited from class org.exist.xquery.Function
analyze, createFunction, dump, getArgument, getArgumentCount, getArguments, getASTNode, getCardinality, getDependencies, getName, getParent, getSignature, isCalledAs, returnsType, setArguments, setASTNode, setParent, setPrimaryAxis, toString
 
Methods inherited from class org.exist.xquery.PathExpr
accept, add, add, addPath, addPredicate, dump, getContext, getDocumentSet, getExpression, getLastExpression, getLength, getLiteralValue, getSource, isValid, replaceLastExpression, reset, resetState, setContext, setSource
 
Methods inherited from class org.exist.xquery.AbstractExpression
eval, getContextDocSet, getContextId, getExpressionId, setContextDocSet
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.exist.xquery.CompiledXQuery
eval
 

Field Detail

fnDaysFromDuration

public static final FunctionSignature fnDaysFromDuration

fnHoursFromDuration

public static final FunctionSignature fnHoursFromDuration

fnMinutesFromDuration

public static final FunctionSignature fnMinutesFromDuration

fnSecondsFromDuration

public static final FunctionSignature fnSecondsFromDuration

fnMonthsFromDuration

public static final FunctionSignature fnMonthsFromDuration

fnYearsFromDuration

public static final FunctionSignature fnYearsFromDuration
Constructor Detail

FunGetDurationComponent

public FunGetDurationComponent(XQueryContext context,
                               FunctionSignature signature)
Method Detail

eval

public Sequence eval(Sequence[] args,
                     Sequence contextSequence)
              throws XPathException
Description copied from class: BasicFunction
Process the function. All arguments are passed in the array args. The number of arguments, their type and cardinality have already been checked to match the function signature.

Specified by:
eval in class BasicFunction
Parameters:
args -
contextSequence -
Throws:
XPathException


Copyright (C) Wolfgang Meier. All rights reserved.