Package xbird.xquery.dm.instance.DocumentTableModel

Examples of xbird.xquery.dm.instance.DocumentTableModel.DTMNodeBase


        return currentElement.parent();
    }

    @Override
    protected DTMNodeBase getChild(int index) {
        DTMNodeBase child = currentElement.firstChild();
        for(int i = 0; child != null; i++) {
            if(i == index) {
                return child;
            }
            child = child.nextSibling();
        }
        return null;
    }
View Full Code Here


        return null;
    }

    @Override
    protected int getChildCount() {
        DTMNodeBase child = currentElement.firstChild();
        int count = 0;
        while(child != null) {
            child = child.nextSibling();
            count++;
        }
        return count;
    }
View Full Code Here

                        throw new IllegalStateException(e);
                    }
                    return atom;
                }
                case XQEventEncoder.EV_DTM_NODE: {
                    final DTMNodeBase dtmNode;
                    try {
                        dtmNode = DTMNodeBase.readFrom(input, _serContext);
                    } catch (ClassNotFoundException e) {
                        throw new IllegalStateException(e);
                    }
View Full Code Here

                    final XQNode node = handler.harvest();
                    handler.reset();
                    return node;
                }
                case XQEventEncoder.EV_DTM_NODE: {
                    final DTMNodeBase dtmNode;
                    try {
                        dtmNode = DTMNodeBase.readFrom(input, serContext);
                    } catch (ClassNotFoundException e) {
                        throw new IllegalStateException(e);
                    }
View Full Code Here

    public void evNode(XQNode node) throws XQueryException {
        try {
            final DataModel dm = node.getDataModel();
            if(doRemotePaging && dm.isMemoryMappedStore()) {
                output.writeByte(EV_DTM_NODE);
                DTMNodeBase dtmNode = (DTMNodeBase) node;
                dtmNode.writeTo(output, _serContext);
            } else {
                output.writeByte(EV_NODE_START);
                dm.export(node, this);
                output.writeByte(EV_NODE_END);
            }
View Full Code Here

                    handler.evAtomicValue(atom);
                    items.add(atom);
                    break;
                }
                case XQEventEncoder.EV_DTM_NODE: {
                    final DTMNodeBase dtmNode;
                    try {
                        dtmNode = DTMNodeBase.readFrom(input, _serContext);
                    } catch (ClassNotFoundException e) {
                        throw new IllegalStateException(e);
                    }
View Full Code Here

TOP

Related Classes of xbird.xquery.dm.instance.DocumentTableModel.DTMNodeBase

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.