Examples of stringValue()


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

        // If $uri-part is the empty sequence, returns the zero-length string.
        Item firstItem = argv.getItem(0);
        if(firstItem.isEmpty()) {
            return XString.valueOf("");
        }
        String uripart = firstItem.stringValue();
        String escaped = XMLUtils.escapeUri(uripart, false);
        return XString.valueOf(escaped);
    }

}
View Full Code Here

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

            throws XQueryException {
        Item uriItem = argv.getItem(0);
        if(uriItem.isEmpty()) {
            return BooleanValue.FALSE;
        }
        String uriStr = uriItem.stringValue();
        // If $uri is not a valid xs:anyURI, an error is raised [err:FODC0005].
        final URI docuri;
        try {
            final String unescaped = XMLUtils.unescapeXML(uriStr);
            docuri = new URI(unescaped);
View Full Code Here

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

            return "";
        }
        final StringBuilder buf = new StringBuilder(255);
        while(true) {
            final Item it = itor.next();
            buf.append(it.stringValue());
            if(itor.hasNext()) {
                buf.append(' ');
            } else {
                break;
            }
View Full Code Here

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

            throws XQueryException {
        Item firstItem = argv.getItem(0);
        if(firstItem.isEmpty()) {
            return XString.valueOf("");
        }
        String arg = firstItem.stringValue();
        final String converted = arg.toUpperCase();
        return XString.valueOf(converted);
    }

}
View Full Code Here

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

            throws XQueryException {
        Item firstItem = argv.getItem(0);
        if(firstItem.isEmpty()) {
            return XString.valueOf("");
        }
        String arg = firstItem.stringValue();
        String converted = arg.toLowerCase();
        return XString.valueOf(converted);
    }

}
View Full Code Here

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

                + argv.size();
        Item firstItem = argv.getItem(0);
        if(firstItem.isEmpty()) {
            return ValueSequence.EMPTY_SEQUENCE;
        }
        final String query = firstItem.stringValue();
        final Sequence res = evaluateQuery(query, dynEnv);
        return res;
    }

    public static Sequence evaluateQuery(String query, DynamicContext dynEnv)
View Full Code Here

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

            final Sequence seq = AtomizedSequence.wrap(rawseq, dynEnv);
            final IFocus<Item> itor = seq.iterator();
            if(itor.hasNext()) {
                while(true) {
                    final Item it = itor.next();
                    buf.append(it.stringValue());
                    if(itor.hasNext()) {
                        buf.append(' ');
                    } else {
                        break;
                    }
View Full Code Here

Examples of xbird.xquery.dm.value.node.DMElement.stringValue()

                        if(e.isId()) {
                            // The is-id property of the element node is true, and the typed value
                            // of the element node is equal to V under the rules of the eq operator
                            // using the Unicode code point collation.
                            //String val = e.typedValue().stringValue();
                            String val = e.stringValue();
                            if(id.equals(val)) {
                                nodes.add(e);
                            }
                            continue;
                        }
View Full Code Here

Examples of xbird.xquery.dm.value.node.DMElement.stringValue()

                            continue;
                        }
                    } else {
                        if(e.isIdrefs()) {
                            //String val = e.typedValue().stringValue();
                            String val = e.stringValue();
                            if(id.equals(val)) {
                                nodes.add(e);
                            }
                            continue;
                        }
View Full Code Here

Examples of xbird.xquery.dm.value.xsi.QNameValue.stringValue()

                if(arglen == 3) {
                    final Item thirdItem = argv.getItem(2);
                    final List<String> errList = new LinkedList<String>();
                    final IFocus<Item> thirdItemItor = thirdItem.iterator();
                    for(Item err : thirdItemItor) {
                        errList.add(err.stringValue());
                    }
                    thirdItemItor.closeQuietly();
                    errObjects = errList.toArray(new String[errList.size()]);
                }
                if(firstItem.isEmpty()) {
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.