Examples of itemAt()


Examples of org.exist.xquery.value.Sequence.itemAt()

   
    @Test
    public void nodeProxy_getParents() throws XPathException, SAXException, PermissionDeniedException {
        Sequence smallSet = executeQuery(broker, "//SPEECH/LINE[fn:contains(., 'perturbed spirit')]/ancestor::SPEECH", 1, null);
       
        NodeProxy proxy = (NodeProxy) smallSet.itemAt(0);
       
        NodeSet result = proxy.getParents(-1);
        assertEquals(1, result.getLength());
       
        NameTest test = new NameTest(Type.ELEMENT, new QName("SPEAKER", ""));
View Full Code Here

Examples of org.exist.xquery.value.ValueSequence.itemAt()

                    item = i.nextItem();
                    tmp.add(item);
                }
                result = new ValueSequence();
                for (int i = seq.getItemCount() - 1; i >= 0; i--) {
                    result.add(tmp.itemAt(i));
                }
        }

        if (context.getProfiler().isEnabled())
            {context.getProfiler().end(this, "", result);}
View Full Code Here

Examples of org.jboss.soa.esb.message.Attachment.itemAt()

        int attachmentCount = attachments.getUnnamedCount();
        StringBuffer assemblyBuffer = new StringBuffer();

        for (int i = 0; i < attachmentCount; i++) {
            try {
                Message aggrMessage = Util.deserialize((Serializable) attachments.itemAt(i));
                String payload = aggrMessage.getBody().get().toString();
               
                assemblyBuffer.append("**** Payload from Message Attachment " + i + ":\n");
                assemblyBuffer.append(payload + "\n");
            } catch (Exception e) {
View Full Code Here

Examples of org.pdf4j.saxon.om.GroundedValue.itemAt()

            SequenceIterator base = argument[0].iterate(context);
            if (intindex == 1) {
                return base.next();
            } else if (base instanceof GroundedIterator) {
                GroundedValue value = ((GroundedIterator)base).materialize();
                return value.itemAt(intindex-1);
            } else {
                SequenceIterator tail = TailIterator.make(base, intindex);
                return tail.next();
            }
        } else {
View Full Code Here

Examples of org.pdf4j.saxon.value.Value.itemAt()

                count += length;
                if (count > 1) {
                    return false;
                }
                if (length != 0) {
                    AtomicValue av = (AtomicValue)atomizedValue.itemAt(0);
                    if (!isCastable(av, targetType, context)) {
                        return false;
                    }
                }
            } else {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.