Search in sources :

Example 56 with SeqType

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;
}
Also used : XSDateTime(org.eclipse.wst.xml.xpath2.processor.internal.types.XSDateTime) SeqType(org.eclipse.wst.xml.xpath2.processor.internal.SeqType) ArrayList(java.util.ArrayList)

Example 57 with SeqType

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;
}
Also used : SeqType(org.eclipse.wst.xml.xpath2.processor.internal.SeqType) ArrayList(java.util.ArrayList)

Example 58 with SeqType

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;
}
Also used : ResultSequence(org.eclipse.wst.xml.xpath2.processor.ResultSequence) SeqType(org.eclipse.wst.xml.xpath2.processor.internal.SeqType) ArrayList(java.util.ArrayList) Iterator(java.util.Iterator) Collection(java.util.Collection)

Example 59 with SeqType

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;
}
Also used : SeqType(org.eclipse.wst.xml.xpath2.processor.internal.SeqType) QName(org.eclipse.wst.xml.xpath2.processor.internal.types.QName) ArrayList(java.util.ArrayList)

Example 60 with SeqType

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;
}
Also used : SeqType(org.eclipse.wst.xml.xpath2.processor.internal.SeqType) ArrayList(java.util.ArrayList) XSString(org.eclipse.wst.xml.xpath2.processor.internal.types.XSString)

Aggregations

SeqType (org.eclipse.wst.xml.xpath2.processor.internal.SeqType)75 ArrayList (java.util.ArrayList)74 XSString (org.eclipse.wst.xml.xpath2.processor.internal.types.XSString)30 XSDateTime (org.eclipse.wst.xml.xpath2.processor.internal.types.XSDateTime)8 XSDate (org.eclipse.wst.xml.xpath2.processor.internal.types.XSDate)6 XSDuration (org.eclipse.wst.xml.xpath2.processor.internal.types.XSDuration)6 XSTime (org.eclipse.wst.xml.xpath2.processor.internal.types.XSTime)6 QName (org.eclipse.wst.xml.xpath2.processor.internal.types.QName)5 XSDayTimeDuration (org.eclipse.wst.xml.xpath2.processor.internal.types.XSDayTimeDuration)3 Collection (java.util.Collection)2 Iterator (java.util.Iterator)2 ResultSequence (org.eclipse.wst.xml.xpath2.processor.ResultSequence)2 AnyAtomicType (org.eclipse.wst.xml.xpath2.processor.internal.types.AnyAtomicType)2 AnyType (org.eclipse.wst.xml.xpath2.processor.internal.types.AnyType)2 ElementType (org.eclipse.wst.xml.xpath2.processor.internal.types.ElementType)2 XSDouble (org.eclipse.wst.xml.xpath2.processor.internal.types.XSDouble)2 XSInteger (org.eclipse.wst.xml.xpath2.processor.internal.types.XSInteger)2 ResultBuffer (org.eclipse.wst.xml.xpath2.api.ResultBuffer)1 ResultSequence (org.eclipse.wst.xml.xpath2.api.ResultSequence)1 SequenceType (org.eclipse.wst.xml.xpath2.processor.internal.ast.SequenceType)1