Examples of XQueryImplementation


Examples of org.apache.tuscany.sca.implementation.xquery.XQueryImplementation

     */
    public XQueryImplementation read(XMLStreamReader reader)
        throws ContributionReadException, XMLStreamException {
     
      /* Create the XQuery implementation and set the location into it */
        XQueryImplementation xqueryImplementation = null;

        /* Read the location attribute for the XQuery implementation  */
        String xqueryLocation = reader.getAttributeValue(null, LOCATION);
        if (xqueryLocation != null) {
          xqueryImplementation = XQueryImplementationFactory.INSTANCE.createXQueryImplementation();
            xqueryImplementation.setLocation(xqueryLocation);
            xqueryImplementation.setUnresolved(true);
        } else {       
          error("LocationAttributeMissing", reader);
            //throw new ContributionReadException(MSG_LOCATION_MISSING);
        }       

View Full Code Here

Examples of org.apache.tuscany.sca.implementation.xquery.XQueryImplementation

     */
    public XQueryImplementation read(XMLStreamReader reader)
        throws ContributionReadException, XMLStreamException {
     
      /* Create the XQuery implementation and set the location into it */
        XQueryImplementation xqueryImplementation = null;

        /* Read the location attribute for the XQuery implementation  */
        String xqueryLocation = getURIString(reader, LOCATION);
        if (xqueryLocation != null) {
          xqueryImplementation = XQueryImplementationFactory.INSTANCE.createXQueryImplementation();
            xqueryImplementation.setLocation(xqueryLocation);
            xqueryImplementation.setUnresolved(true);
        } else {       
          error("LocationAttributeMissing", reader);
            //throw new ContributionReadException(MSG_LOCATION_MISSING);
        }       

View Full Code Here

Examples of org.apache.tuscany.sca.implementation.xquery.XQueryImplementation

        String xqueryLocation = reader.getAttributeValue(null, LOCATION);
        if (xqueryLocation == null) {
            throw new ContributionReadException(MSG_LOCATION_MISSING);
        }
        /* Create the XQuery implementation and set the location into it */
        XQueryImplementation xqueryImplementation =
            XQueryImplementationFactory.INSTANCE.createXQueryImplementation();
        xqueryImplementation.setLocation(xqueryLocation);

        // Skip to end element
        while (reader.hasNext()) {
            if (reader.next() == END_ELEMENT && IMPLEMENTATION_XQUERY_QNAME.equals(reader.getName())) {
                break;
            }
        } // end while

        xqueryImplementation.setUnresolved(true);

        return xqueryImplementation;
    }
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.