use of org.eclipse.wst.xml.xpath2.processor.internal.SeqType in project webtools.sourceediting by eclipse.
the class FnMonthFromDateTime 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 XSDateTime(), SeqType.OCC_QMARK));
}
return _expected_args;
}
use of org.eclipse.wst.xml.xpath2.processor.internal.SeqType in project webtools.sourceediting by eclipse.
the class FnName 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();
SeqType arg = new SeqType(SeqType.OCC_QMARK);
_expected_args.add(arg);
}
return _expected_args;
}
use of org.eclipse.wst.xml.xpath2.processor.internal.SeqType in project webtools.sourceediting by eclipse.
the class Function method convert_arguments.
// convert arguments
// returns collection of arguments
/**
* Convert arguments.
*
* @param args
* input arguments.
* @param expected
* expected arguments.
* @throws DynamicError
* Dynamic error.
* @return Converted arguments.
*/
public static Collection convert_arguments(Collection args, Collection expected) throws DynamicError {
Collection result = new ArrayList();
assert args.size() <= expected.size();
Iterator argi = args.iterator();
Iterator expi = expected.iterator();
// convert all arguments
while (argi.hasNext()) {
result.add(convert_argument((org.eclipse.wst.xml.xpath2.api.ResultSequence) argi.next(), (SeqType) expi.next()));
}
return result;
}
use of org.eclipse.wst.xml.xpath2.processor.internal.SeqType in project webtools.sourceediting by eclipse.
the class FnError method expected_args1.
/**
* Obtain a list of expected arguments.
*
* @return Result of operation.
*/
public static synchronized Collection expected_args1() {
if (_expected_args1 == null) {
_expected_args1 = new ArrayList();
_expected_args1.add(new SeqType(new QName(), SeqType.OCC_NONE));
}
return _expected_args1;
}
use of org.eclipse.wst.xml.xpath2.processor.internal.SeqType in project webtools.sourceediting by eclipse.
the class FnMatches 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();
SeqType arg = new SeqType(new XSString(), SeqType.OCC_QMARK);
_expected_args.add(arg);
_expected_args.add(new SeqType(new XSString(), SeqType.OCC_NONE));
_expected_args.add(new SeqType(new XSString(), SeqType.OCC_NONE));
}
return _expected_args;
}
Aggregations