Examples of ParameterDescriptor


Examples of org.crsh.cli.descriptor.ParameterDescriptor

      Annotation[] parameterAnnotations = parameterAnnotationMatrix[i];
      Type parameterType = parameterTypes[i];
      Tuple tuple = get(parameterAnnotations);

      MethodArgumentBinding binding = new MethodArgumentBinding(i);
      ParameterDescriptor parameter = create(
          binding,
          parameterType,
          tuple.argumentAnn,
          tuple.optionAnn,
          tuple.required,
View Full Code Here

Examples of org.opengis.parameter.ParameterDescriptor

            final Iterator it = list.iterator();
            while (it.hasNext()) {
                final ParameterValue val = (ParameterValue) it.next();

                if (val != null) {
                    final ParameterDescriptor descr = (ParameterDescriptor) val.getDescriptor();
                    final String _key = descr.getName().toString();

                    if ("namespace".equals(_key)) {
                        // skip namespace as it is *magic* and
                        // appears to be an entry used in all dataformats?
                        //
View Full Code Here

Examples of org.opengis.parameter.ParameterDescriptor

            final Iterator it = list.iterator();
            while (it.hasNext()) {
                final ParameterValue val = (ParameterValue) it.next();

                if (val != null) {
                    final ParameterDescriptor descr = (ParameterDescriptor) val.getDescriptor();

                    final String _key = descr.getName().toString();

                    if ("namespace".equals(_key)) {
                        // skip namespace as it is *magic* and
                        // appears to be an entry used in all dataformats?
                        //
View Full Code Here

Examples of org.opengis.parameter.ParameterDescriptor

     * @return DOCUMENT ME!
     */
    public static ParameterValue find(ParameterValueGroup params, String key) {
        List list = params.values();
        Iterator it = list.iterator();
        ParameterDescriptor descr;
        ParameterValue val;

        while (it.hasNext()) {
            val = (ParameterValue) it.next();
            descr = (ParameterDescriptor) val.getDescriptor();

            if (key.equalsIgnoreCase(descr.getName().toString())) {
                return val;
            }
        }

        return null;
View Full Code Here

Examples of org.opengis.parameter.ParameterDescriptor

        ParameterValueGroup params = factory.getReadParameters();

        if (params != null) {
            List list = params.values();
            Iterator it = list.iterator();
            ParameterDescriptor descr = null;
            ParameterValue val = null;
            String key;
            Object value;

            while (it.hasNext()) {
                val = (ParameterValue) it.next();
                descr = (ParameterDescriptor) val.getDescriptor();

                key = descr.getName().toString();
                value = null;

                if (val.getValue() != null) {
                    // Required params may have nice sample values
                    //
View Full Code Here

Examples of org.quorum.symbols.ParameterDescriptor

            if(method != null) {
                location.setName(method.getName());
                Parameters parameters = method.getParameters();
                if(parameters != null) {
                    for(int i = 0; i < parameters.size(); i++) {
                        ParameterDescriptor param = parameters.get(i);
                        location.add(param.getName(), param.getType().getStaticKey());
                    }
                }
                return location;
            }
        }
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.