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

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


            case XQConstants.BOUNDARY_SPACE_PRESERVE:
                sqc.setPreserveBoundarySpace(true);
            case XQConstants.BOUNDARY_SPACE_STRIP:
                sqc.setPreserveBoundarySpace(false);
            default:
                throw new XQException("Invalid value for boundary space policy - " + policy);
        }
    }
View Full Code Here


            case XQConstants.CONSTRUCTION_MODE_PRESERVE:
                sqc.setConstructionMode(Validation.PRESERVE);
            case XQConstants.CONSTRUCTION_MODE_STRIP:
                sqc.setConstructionMode(Validation.STRIP);
            default:
                throw new XQException("Invalid value for construction mode - " + mode);
        }
    }
View Full Code Here

            case XQConstants.COPY_NAMESPACES_MODE_INHERIT:
                sqc.setInheritNamespaces(true);
            case XQConstants.COPY_NAMESPACES_MODE_NO_INHERIT:
                sqc.setInheritNamespaces(false);
            default:
                throw new XQException("Invalid value for namespaces inherit mode - " + mode);
        }
    }
View Full Code Here

            case XQConstants.COPY_NAMESPACES_MODE_PRESERVE:
                sqc.setPreserveNamespaces(true);
            case XQConstants.COPY_NAMESPACES_MODE_NO_PRESERVE:
                sqc.setPreserveNamespaces(false);
            default:
                throw new XQException("Invalid value for namespaces preserve mode - " + mode);
        }
    }
View Full Code Here

            case XQConstants.DEFAULT_ORDER_FOR_EMPTY_SEQUENCES_GREATEST:
                sqc.setEmptyLeast(false);
            case XQConstants.DEFAULT_ORDER_FOR_EMPTY_SEQUENCES_LEAST:
                sqc.setEmptyLeast(true);
            default:
                throw new XQException("Invalid value for default order for empty sequences - " + order);
        }
    }
View Full Code Here

        switch (holdability) {
            case XQConstants.HOLDTYPE_HOLD_CURSORS_OVER_COMMIT:
            case XQConstants.HOLDTYPE_CLOSE_CURSORS_AT_COMMIT:
                this.holdability = holdability;
            default:
                throw new XQException("Invalid holdability value - " + holdability);
        }
    }
View Full Code Here

        }
    }

    public void setQueryLanguageTypeAndVersion(int langtype) throws XQException {
        if (langtype != XQConstants.LANGTYPE_XQUERY) {
            throw new XQException("XQueryX is not supported");
        }
    }
View Full Code Here

        switch (scrollability) {
            case XQConstants.SCROLLTYPE_FORWARD_ONLY:
            case XQConstants.SCROLLTYPE_SCROLLABLE:
                this.scrollability = scrollability;
            default:
                throw new XQException("Invalid scrollability value - " + scrollability);
        }
    }
View Full Code Here

                throw new XQException("Invalid scrollability value - " + scrollability);
        }
    }

    private XQException newXQException(Exception err) {
        XQException xqe = new XQException(err.getMessage());
        xqe.initCause(err);
        return xqe;
    }
View Full Code Here

    public void setScrollability(int scrollability) throws XQException {
        readOnly();
    }

    private void readOnly() throws XQException {
        throw new XQException("This XQStaticContext object is read-only");
    }
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.