XPathTypeException.java :  » XML » xom » nu » xom » Java Open Source

Java Open Source » XML » xom 
xom » nu » xom » XPathTypeException.java
/* Copyright 2005 Elliotte Rusty Harold
   This library is free software; you can redistribute it and/or modify
   it under the terms of version 2.1 of the GNU Lesser General Public 
   License as published by the Free Software Foundation.
   This library is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   GNU Lesser General Public License for more details.
   You should have received a copy of the GNU Lesser General Public
   License along with this library; if not, write to the 
   Free Software Foundation, Inc., 59 Temple Place, Suite 330, 
   Boston, MA 02111-1307  USA
   You can contact Elliotte Rusty Harold by sending e-mail to
   elharo@metalab.unc.edu. Please include the word "XOM" in the
   subject line. The XOM home page is located at http://www.xom.nu/
package nu.xom;

 * <p>
 * Indicates that an XPath query returned a non-node-set.
 * </p>
 * @author Elliotte Rusty Harold
 * @version 1.1b4
public class XPathTypeException extends XPathException {
    private static final long serialVersionUID = 1247817719683497718L;
    private final Object returnValue;

    XPathTypeException(String message, Object returnValue) {
        this.returnValue = returnValue;

     * <p>
     * This method probably returns the actual object returned by the 
     * query. However, XOM makes no guarantees about the type of this 
     * object. 
     * </p>
     * @return the query result
    public Object getReturnValue() {
        return this.returnValue;

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.