Examples of nextSibling()


Examples of xbird.xquery.dm.dtm.IDocumentTable.nextSibling()

            if(_id == 0L) {
                return null;
            }
            final IDocumentTable store = documentTable();
            final DocumentTableModel model = getDataModel();
            for(long nid = store.nextSibling(_id); nid != 0L; nid = store.nextSibling(nid)) {
                byte nodekind = store.getNodeKindAt(nid);
                DTMNodeBase probe = getPrototype(model, nodekind, nid);
                if(filter.accepts(probe)) {
                    return model.createNode(probe.nodeKind(), probe.getPosition());
                }
View Full Code Here

Examples of xbird.xquery.dm.dtm.IDocumentTable.nextSibling()

            if(_id == 0L) {
                return null;
            }
            final IDocumentTable store = documentTable();
            final DocumentTableModel model = getDataModel();
            for(long nid = store.nextSibling(_id); nid != 0L; nid = store.nextSibling(nid)) {
                byte nodekind = store.getNodeKindAt(nid);
                DTMNodeBase probe = getPrototype(model, nodekind, nid);
                if(filter.accepts(probe)) {
                    return model.createNode(probe.nodeKind(), probe.getPosition());
                }
View Full Code Here

Examples of xbird.xquery.dm.dtm.IDocumentTable.nextSibling()

            case NodeKind.DOCUMENT:
                receiver.evStartDocument();
                final long firstChild = doctbl.firstChild(nodeid);
                if(firstChild != -1L) {
                    export(firstChild, receiver);
                    long nextSib = doctbl.nextSibling(firstChild);
                    while(nextSib != 0L) {
                        export(nextSib, receiver);
                        nextSib = doctbl.nextSibling(firstChild);
                    }
                }
View Full Code Here

Examples of xbird.xquery.dm.dtm.IDocumentTable.nextSibling()

                if(firstChild != -1L) {
                    export(firstChild, receiver);
                    long nextSib = doctbl.nextSibling(firstChild);
                    while(nextSib != 0L) {
                        export(nextSib, receiver);
                        nextSib = doctbl.nextSibling(firstChild);
                    }
                }
                receiver.evEndDocument();
                break;
            case NodeKind.ELEMENT:
View Full Code Here

Examples of xbird.xquery.dm.dtm.IDocumentTable.nextSibling()

                    receiver.evAttribute(attid, attName, attValue);
                }
                final long elemFirstChild = doctbl.firstChild(nodeid);
                if(elemFirstChild != -1L) {
                    export(elemFirstChild, receiver);
                    long nextSib = doctbl.nextSibling(elemFirstChild);
                    while(nextSib != 0L) {
                        export(nextSib, receiver);
                        nextSib = doctbl.nextSibling(nextSib);
                    }
                }
View Full Code Here

Examples of xbird.xquery.dm.dtm.IDocumentTable.nextSibling()

                if(elemFirstChild != -1L) {
                    export(elemFirstChild, receiver);
                    long nextSib = doctbl.nextSibling(elemFirstChild);
                    while(nextSib != 0L) {
                        export(nextSib, receiver);
                        nextSib = doctbl.nextSibling(nextSib);
                    }
                }
                receiver.evEndElement(nodeid, qname);
                break;
            case NodeKind.ATTRIBUTE:
View Full Code Here

Examples of xbird.xquery.dm.dtm.IDocumentTable.nextSibling()

            return 0;
        }

        public DTMNodeBase nextSibling() {
            final IDocumentTable store = documentTable();
            final long nextsib = store.nextSibling(_id);
            if(nextsib == 0L) {
                return null;
            }
            final DocumentTableModel model = getDataModel();
            return model.createNode(store.getNodeKindAt(nextsib), nextsib);
View Full Code Here

Examples of xbird.xquery.dm.dtm.IDocumentTable.nextSibling()

            if(_id == 0L) {
                return null;
            }
            final IDocumentTable store = documentTable();
            final DocumentTableModel model = getDataModel();
            for(long nid = store.nextSibling(_id); nid != 0L; nid = store.nextSibling(nid)) {
                byte nodekind = store.getNodeKindAt(nid);
                DTMNodeBase probe = getPrototype(model, nodekind, nid);
                if(filter.accepts(probe)) {
                    return model.createNode(probe.nodeKind(), probe.getPosition());
                }
View Full Code Here

Examples of xbird.xquery.dm.dtm.IDocumentTable.nextSibling()

            if(_id == 0L) {
                return null;
            }
            final IDocumentTable store = documentTable();
            final DocumentTableModel model = getDataModel();
            for(long nid = store.nextSibling(_id); nid != 0L; nid = store.nextSibling(nid)) {
                byte nodekind = store.getNodeKindAt(nid);
                DTMNodeBase probe = getPrototype(model, nodekind, nid);
                if(filter.accepts(probe)) {
                    return model.createNode(probe.nodeKind(), probe.getPosition());
                }
View Full Code Here

Examples of xbird.xquery.dm.instance.DocumentTableModel.DTMNodeBase.nextSibling()

        DTMNodeBase child = currentElement.firstChild();
        for(int i = 0; child != null; i++) {
            if(i == index) {
                return child;
            }
            child = child.nextSibling();
        }
        return null;
    }

    @Override
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.