Package xbird.xquery.misc

Examples of xbird.xquery.misc.DocumentManager


    private GregorianCalendar _currentDateTime;

    //---------------------------

    private DynamicContext() {
        this.documents = new DocumentManager();
    }
View Full Code Here


    public final XQExpression getQueryExpression() {
        return _queryExpr;
    }

    protected Object readResolve() throws ObjectStreamException {
        this.documents = new DocumentManager();
        this.tracSequenceStack = new Stack<Sequence<? extends Item>>();
        return this;
    }
View Full Code Here

                try {
                    colurl = resolved.toURL();
                } catch (MalformedURLException e) {
                    throw new DynamicError("Invalid uri: " + argStr);
                }
                DocumentManager docmgr = dynEnv.getDocumentManager();
                DTMDocument doc = docmgr.loadDocument(colurl, dynEnv);
                catalog = resolveCatalog(doc, dynEnv);
            } else if(unescapedArg.startsWith("/")) {
                DbCollection coll = DbCollection.getCollection(unescapedArg);
                if(coll == null) {
                    catalog = Collections.emptyMap();
View Full Code Here

                        url = new URL(urlstr);
                    } catch (MalformedURLException e) {
                        throw new IllegalStateException("/collection/document/text() value is malformed url: "
                                + urlstr);
                    }
                    DocumentManager docman = dynEnv.getDocumentManager();
                    DTMDocument doc = docman.loadDocument(url, dynEnv);
                    map.put(urlstr, doc);
                }
            }
            return map;
        } else {
View Full Code Here

            try {
                docurl = resolvedUri.toURL();
            } catch (MalformedURLException e) {
                throw new DynamicError("Malformed URL: " + resolvedUri, e);
            }
            DocumentManager docmgr = dynEnv.getDocumentManager();
            DTMDocument doc = docmgr.loadDocument(docurl, dynEnv);
            return doc;
        }
    }
View Full Code Here

TOP

Related Classes of xbird.xquery.misc.DocumentManager

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.