Package net.sf.saxon.javax.xml.xquery

Examples of net.sf.saxon.javax.xml.xquery.XQException


    public long getLong() throws XQException {
        if (item instanceof AtomicValue) {
            AtomicValue prim = ((AtomicValue)item);
            return (byte)longValue(prim, Long.MIN_VALUE, Long.MAX_VALUE);
        }
        throw new XQException("Failed in getLong: item is not an atomic value, or is closed");
    }
View Full Code Here


        throw new XQException("Failed in getLong: item is not an atomic value, or is closed");
    }

    public Node getNode() throws XQException {
        if (!(item instanceof NodeInfo)) {
            throw new XQException("Failed in getNode: item is an atomic value, or is closed");
        }
        return NodeOverNodeInfo.wrap((NodeInfo)item);
    }
View Full Code Here

    public URI getNodeUri() throws XQException {
        if (item instanceof NodeInfo) {
            try {
                return new URI(((NodeInfo)item).getSystemId());
            } catch (URISyntaxException e) {
                throw new XQException("System ID of node is not a valid URI");
            }
        }
        throw new XQException("Item is not a node, or is closed");
    }
View Full Code Here

    public short getShort() throws XQException {
        if (item instanceof AtomicValue) {
            AtomicValue prim = ((AtomicValue)item);
            return (byte)longValue(prim, Short.MIN_VALUE, Short.MAX_VALUE);
        }
        throw new XQException("Failed in getShort: item is not an atomic value, or is closed");
    }
View Full Code Here

            TreeReceiver tr = new TreeReceiver(out);
            tr.open();
            tr.append(item, 0, NodeInfo.ALL_NAMESPACES);
            tr.close();
        } catch (XPathException e) {
            XQException xqe = new XQException(e.getMessage());
            xqe.initCause(e);
            throw xqe;
        }
    }
View Full Code Here

     * @throws XQException The Saxon implementation of this method always throws
     * an XQException, indicating that Saxon does not support connection to a JDBC data source.
     */

    public XQConnection getConnection(Connection con) throws XQException {
        throw new XQException("Saxon cannot connect to a SQL data source");
    }
View Full Code Here

    public PrintWriter getLogWriter() {
        return logger;
    }

    public String getProperty(String name) throws XQException {
        throw new XQException("Property " + name + " is not recognized");
    }
View Full Code Here

        logger = out;
    }

    public void setProperties(Properties props) throws XQException {
        if (!props.isEmpty()) {
            throw new XQException("Property " + props.keys().nextElement() + " is not recognized");
        }
    }
View Full Code Here

            throw new XQException("Property " + props.keys().nextElement() + " is not recognized");
        }
    }

    public void setProperty(String name, String value) throws XQException {
        throw new XQException("Property " + name + " is not recognized");
    }
View Full Code Here

        return result;
    }

    public String getNamespaceURI(String prefix) throws XQException {
        if (prefix == null) {
            throw new XQException("prefix is null");
        }
        return sqc.getNamespaceForPrefix(prefix);
    }
View Full Code Here

TOP

Related Classes of net.sf.saxon.javax.xml.xquery.XQException

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.