Package org.exquery.xquery3

Examples of org.exquery.xquery3.FunctionSignature


    @Test(expected=ExQueryException.class)
    public void create_failsForNonRESTXQAnnotation() throws URISyntaxException, ExQueryException {
       
        final QName badName = new QName("http://fake", "fake");
       
        final Annotation mckAnnotation = mock(Annotation.class);
        when(mckAnnotation.getName()).thenReturn(badName);
       
        final Set<Annotation> annotations = new HashSet<Annotation>();
        annotations.add(mckAnnotation);
               
        ResourceFunctionFactory.create(new URI("/fake.xquery"), annotations);
View Full Code Here


                for(final Entry<URI, List<FunctionSignature>> xqueryServiceFunctions : xqueryServices.entrySet()) {
                    writer.print(xqueryServiceFunctions.getKey() + FIELD_SEP);
                   
                    final List<FunctionSignature> fnSigs = xqueryServiceFunctions.getValue();
                    for(int i = 0; i < fnSigs.size(); i++) {
                        final FunctionSignature fnSig = fnSigs.get(i);
                        writer.print(qnameToClarkNotation(fnSig.getName()) + ARITY_SEP + fnSig.getArgumentCount());
                    }
                    writer.println();
                }
            } catch(final IOException ioe) {
                log.error(ioe.getMessage(), ioe);
View Full Code Here

TOP

Related Classes of org.exquery.xquery3.FunctionSignature

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.