Examples of FunctionParameterSequenceType


Examples of org.exist.xquery.value.FunctionParameterSequenceType

       
        final List<org.exist.xquery.value.Sequence> fnArgs = new ArrayList<org.exist.xquery.value.Sequence>();
       
        for(final SequenceType argumentType : fn.getSignature().getArgumentTypes()) {
           
            final FunctionParameterSequenceType fnParameter = (FunctionParameterSequenceType)argumentType;
            org.exist.xquery.value.Sequence fnArg = null;
            boolean found = false;
            for(final TypedArgumentValue argument : arguments) {
                final String argumentName = argument.getArgumentName();
                if(argumentName != null && argumentName.equals(fnParameter.getAttributeName())) {
                   
                    fnArg = convertToExistSequence(xqueryContext, argument, fnParameter.getPrimaryType());
                   
                    found = true;
                    break;
                }
            }
View Full Code Here

Examples of org.exist.xquery.value.FunctionParameterSequenceType

                int noArgs=0;
               
                for (final SequenceType argumentType : argumentTypes) {
                    if (argumentType instanceof FunctionParameterSequenceType) {
                        noArgs++;
                        final FunctionParameterSequenceType fp
                                = (FunctionParameterSequenceType) argumentType;
                        args.append("$");
                        args.append(fp.getAttributeName());
                        args.append(" : ");
                        args.append(fp.getDescription());
                        args.append("\n");
                    }
                }

                // only add if there were good arguments
                if(noArgs>0){
                    description.append("Parameters:\n");
                    description.append(args);
                }
            }

            final SequenceType returnType = signature.getReturnType();
            if(returnType != null){            
                if (returnType instanceof FunctionReturnSequenceType) {
                    description.append("\n");
                    description.append("Returns ");
                    final FunctionReturnSequenceType fp
                                = (FunctionReturnSequenceType) returnType;
                        description.append(fp.getDescription());
                        description.append("\n");
                }

            }
           
View Full Code Here

Examples of org.exist.xquery.value.FunctionParameterSequenceType

            signature.setReturnType(newType);
        }
        final SequenceType[] args = signature.getArgumentTypes();
        for (final SequenceType type : args) {
            if (type instanceof FunctionParameterSequenceType) {
                final FunctionParameterSequenceType argType = (FunctionParameterSequenceType)type;
                final String desc = parameters.get(argType.getAttributeName());
                if (desc != null)
                    {argType.setDescription(desc);}
            }
        }
        for (final Map.Entry<String, String> entry: meta.entrySet()) {
            String key = entry.getKey();
            if (key.length() > 1 && key.charAt(0) == '@')
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.