Package xbird.xquery

Examples of xbird.xquery.XQRTException


    public Focus iterator() {
        if(_shuffler != null) {
            try {
                _shuffler.shuffle();
            } catch (XQueryException e) {
                throw new XQRTException("Failed grouping", e);
            }
            this._shuffler = null;
        }
        GroupingIterator itor = new GroupingIterator(_map, _dynEnv);
        return new Focus(this, itor, _dynEnv);
View Full Code Here


            final Item nextit = srcItor.next();
            final Sequence<? extends Item> filtered;
            try {
                filtered = _filterStepExpr.eval(nextit, _dynEnv);
            } catch (XQueryException e) {
                throw new XQRTException(e.getErrCode(), "failed at path evaluation: "
                        + _filterStepExpr, e);
            }
            filterItor = (Iterator<T>) filtered.iterator();
            cfocus.setFilterIterator(filterItor);
        }
View Full Code Here

        if(_model == null) {
            final IDocumentTable doctbl;
            try {
                doctbl = DocumentTableLoader.load(_col, _fileName, _dynEnv);
            } catch (IOException e) {
                throw new XQRTException("failed loading document: " + _fileName, e);
            }
            Profiler profiler = _dynEnv.getProfiler();
            if(profiler != null) {
                PagingProfile profile = doctbl.getPagingProfile();
                if(profile != null) {
View Full Code Here

                if(count == _fetchSize) {
                    break;
                }
            }
        } catch (IOException ioe) {
            throw new XQRTException("failed to deserialize the fetched items", ioe);
        } catch (ClassNotFoundException cnf) {
            throw new XQRTException("failed to deserialize the fetched items", cnf);
        }
        return count;
    }
View Full Code Here

        final int fetchedLength;
        try {
            ois = new ObjectInputStream(is);
            fetchedLength = ois.readInt();
        } catch (IOException ioe) {
            throw new XQRTException("failed to deserialize the fetched items", ioe);
        }
        try {
            for(int i = 0; i < fetchedLength; i++) {
                Object ro = ois.readObject();
                Item fetched = (Item) ro;
                _fetchedQueue.offer(fetched);
            }
        } catch (IOException ioe) {
            throw new XQRTException("failed to deserialize the fetched items", ioe);
        } catch (ClassNotFoundException cnf) {
            throw new XQRTException("failed to deserialize the fetched items", cnf);
        }
        return fetchedLength;
    }
View Full Code Here

    @Override
    public void addItem(T attr) {
        QualifiedName qname = attr.nodeName();
        boolean uniq = attrSet.add(qname);
        if(!uniq) {
            throw new XQRTException("err:XQDY0025", "Duplicate attribute: " + qname);
        }
        super.addItem(attr);
    }
View Full Code Here

        private QualifiedName(String nsuri, String localName, String prefix) {
            assert (nsuri != null && localName != null);
            assert (prefix != null);
            if(localName.length() != 0 && !NodeTest.ANY.equals(localName)
                    && !XMLUtils.isNCName(localName)) {
                throw new XQRTException("err:XPST0081", "Illegally specified a non-ncname string as name: "
                        + localName);
            }
            if("*".equals(prefix)) {
                this.nsuri = "*";// hack
            } else {
View Full Code Here

        final E curItem = _citem;
        final boolean hasmore;
        try {
            hasmore = _src.next(this); // this call may replace this._item!
        } catch (XQueryException e) {
            throw new XQRTException(e);
        }
        if(!hasmore) {
            return null;
        }
        if(_seeked != null && _citem != null) {
View Full Code Here

        }
        final boolean hasmore;
        try {
            hasmore = _src.next(this); // this call may replace this._item!
        } catch (XQueryException e) {
            throw new XQRTException(e);
        }
        if(!hasmore) {
            throw new NoSuchElementException();
        }
        ++_cpos;
View Full Code Here

        }
    }

    public int compareTo(Item node) {
        if(!(node instanceof XQNode)) {
            throw new XQRTException("err:XPTY0004", "XQNode#compareTo(Object) accepts only XQNode instance as an argument, but was.. "
                    + node.getClass().getCanonicalName());
        }
        if(this == node) {
            return 0;
        }
View Full Code Here

TOP

Related Classes of xbird.xquery.XQRTException

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.