Package client.net.sf.saxon.ce.value

Examples of client.net.sf.saxon.ce.value.SingletonItem


    public void process(XPathContext c) throws XPathException {
        try {
            ValueRepresentation actual = evaluateVariable(c);
            if (actual instanceof NodeInfo) {
                actual = new SingletonItem((NodeInfo) actual);
            }
            ((Value) actual).process(c);
        } catch (XPathException err) {
            err.maybeSetLocation(getSourceLocator());
            throw err;
View Full Code Here


     * @return the corresponding Value. If the value is a closure or a function call package, it will be
     * evaluated and expanded.
     */

    public GroundedValue materialize() {
        return new SingletonItem(item);
    }
View Full Code Here

    public GroundedValue materialize() {
        if (item instanceof AtomicValue) {
            return (AtomicValue)item;
        } else {
            return new SingletonItem(item);
        }
    }
View Full Code Here

        if (length == 0) {
            return EmptySequence.getInstance();
        } else if (length == 1) {
            Item item = (Item)list.get(0);
            if (item instanceof NodeInfo) {
                return new SingletonItem((NodeInfo)item);
            } else {
                return (AtomicValue)item;
            }
        } else {
            return new SequenceExtent(list);
View Full Code Here

TOP

Related Classes of client.net.sf.saxon.ce.value.SingletonItem

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.