Package xbird.xquery.dm.value

Examples of xbird.xquery.dm.value.AtomicValue.stringValue()


        int paramlen = params.size();
        assert (paramlen == 1);
        XQExpression locExpr = params.get(0);
        if(locExpr instanceof LiteralExpr) {
            AtomicValue atomv = ((LiteralExpr) locExpr).getValue();
            String locStr = atomv.stringValue();
            assert (locStr != null);
            Reader qr = readQuery(locStr, context);
            XQExpression resolved = resolveExpression(qr, context);
            return resolved;
        }
View Full Code Here


            final QNameValue qname = ((AtomicValue) it).castAs(QNameType.QNAME, dynEnv);
            namev = qname.getValue();
        } else if(TypeUtil.subtypeOf(t, StringType.STRING) || t == UntypedAtomicType.UNTYPED_ATOMIC) {
            final StaticContext sc = dynEnv.getStaticContext();
            try {
                final CharSequence namecs = it.stringValue();
                final String namestr = (namecs == null) ? null : namecs.toString();
                namev = QNameUtil.parse(namestr, sc.getStaticalyKnownNamespaces(), sc.getDefaultElementNamespace());
            } catch (Exception e) {
                throw new DynamicError("err:XQDY0074", e);
            }
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.