use of org.eclipse.wst.xml.xpath2.processor.internal.types.XSTime in project webtools.sourceediting by eclipse.
the class FnTimezoneFromTime method expected_args.
/**
* Obtain a list of expected arguments.
*
* @return Result of operation.
*/
public static synchronized Collection expected_args() {
if (_expected_args == null) {
_expected_args = new ArrayList();
_expected_args.add(new SeqType(new XSTime(), SeqType.OCC_QMARK));
}
return _expected_args;
}
use of org.eclipse.wst.xml.xpath2.processor.internal.types.XSTime in project webtools.sourceediting by eclipse.
the class FnCurrentTime method current_time.
/**
* Current-Time operation.
*
* @param args
* Result from the expressions evaluation.
* @param dc
* Result of dynamic context operation.
* @throws DynamicError
* Dynamic error.
* @return Result of fn:current-time operation.
*/
public static ResultSequence current_time(Collection args, DynamicContext dc) throws DynamicError {
assert args.size() == 0;
Duration d = dc.getTimezoneOffset();
XSDayTimeDuration tz = new XSDayTimeDuration(0, d.getHours(), d.getMinutes(), 0.0, d.getSign() == -1);
AnyType res = new XSTime(dc.getCurrentDateTime(), tz);
return ResultSequenceFactory.create_new(res);
}
use of org.eclipse.wst.xml.xpath2.processor.internal.types.XSTime in project webtools.sourceediting by eclipse.
the class FnDateTime method expected_args.
/**
* Obtain a list of expected arguments.
*
* @return Result of operation.
*/
public static synchronized Collection expected_args() {
if (_expected_args == null) {
_expected_args = new ArrayList();
_expected_args.add(new SeqType(new XSDate(), SeqType.OCC_QMARK));
_expected_args.add(new SeqType(new XSTime(), SeqType.OCC_QMARK));
}
return _expected_args;
}
Aggregations