Package com.volantis.xml.expression.sequence

Examples of com.volantis.xml.expression.sequence.Item


                                    String[] strings) throws Exception {
        assertTrue("Sequence length should be " + strings.length +
                ", was " + retSeq.getLength(),
                retSeq.getLength() == strings.length);
        for (int i = 1; i <= strings.length; i++) {
            Item item = retSeq.getItem(i);
            assertTrue("Item " + i + " should be same string",
                    strings[i - 1].equals(item.stringValue().asJavaString()));
        }
    }
View Full Code Here


                            if (s.getLength() != 1) {
                                buffer.append('(');

                                for (int i = 0; i < s.getLength(); i++) {
                                   Item item = s.getItem(i+1);

                                   addTo(buffer, item);
                                   if (i<s.getLength()-1) {
                                       buffer.append(", ");
                                   }
View Full Code Here

            // Allocate enough space for the return sequence as we know the
            // maximum number of possible matches.
            final Item [] items = new Item[inputSequence.getLength()];
            int numMatches = 0;
            for (int i = 1; i <= inputSequence.getLength(); i++) {
                Item item = inputSequence.getItem(i);
                if (searchStr.equals(item.stringValue().asJavaString())) {

                    // save a match
                    items[numMatches++] = factory.createIntValue(i);
                }
            }
View Full Code Here

        // check the sequence is of lenght 1
        assertEquals("Unexpected sequence length",
                     1,
                     seq.getLength());

        Item item = seq.getItem(1);

        // Value returned should be a StringValue
        assertTrue("Item in list should be a StringValue instance",
                  item instanceof StringValue);
View Full Code Here

        // check the sequence is of lenght 1
        assertEquals("Unexpected sequence length",
                     1,
                     seq.getLength());

        Item item = seq.getItem(1);

        // Value returned should be a StringValue
        assertTrue("Item in list should be a StringValue instance",
                  item instanceof StringValue);
View Full Code Here

        // check the sequence is of lenght 1
        assertEquals("Unexpected sequence length",
                     1,
                     seq.getLength());

        Item item = seq.getItem(1);

        // Value returned should be a StringValue
        assertTrue("Item in list should be a StringValue instance",
                  item instanceof StringValue);
View Full Code Here

TOP

Related Classes of com.volantis.xml.expression.sequence.Item

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.