Package br.gov.frameworkdemoiselle.annotation

Examples of br.gov.frameworkdemoiselle.annotation.OperationParameter


          Annotation[][] parameterAnnotations = method.getParameterAnnotations();
          ParameterDetail[] parameterDetails = new ParameterDetail[parameterTypes.length];
          OperationType operationType = opAnnotation.type();

          for (int i = 0; i < parameterTypes.length; i++) {
            OperationParameter paramAnnotation = null;
            for (Annotation annotation : parameterAnnotations[i]) {
              if (annotation.annotationType() == OperationParameter.class) {
                paramAnnotation = (OperationParameter) annotation;
                break;
              }
            }

            String name = paramAnnotation != null ? paramAnnotation.name() : ("arg" + i);
            String description = paramAnnotation != null ? paramAnnotation.description() : null;

            parameterDetails[i] = new ParameterDetail(parameterTypes[i], name, description);
          }

          // Com todas as informações, criamos nossa instância de MethodDetail e
View Full Code Here


          Annotation[][] parameterAnnotations = method.getParameterAnnotations();
          ParameterDetail[] parameterDetails = new ParameterDetail[parameterTypes.length];
          OperationType operationType = opAnnotation.type();

          for (int i = 0; i < parameterTypes.length; i++) {
            OperationParameter paramAnnotation = null;
            for (Annotation annotation : parameterAnnotations[i]) {
              if (annotation.annotationType() == OperationParameter.class) {
                paramAnnotation = (OperationParameter) annotation;
                break;
              }
            }

            String name = paramAnnotation != null ? paramAnnotation.name() : ("arg" + i);
            String description = paramAnnotation != null ? paramAnnotation.description() : null;

            parameterDetails[i] = new ParameterDetail(parameterTypes[i], name, description);
          }

          // Com todas as informações, criamos nossa instância de MethodDetail e
View Full Code Here

          Annotation[][] parameterAnnotations = method.getParameterAnnotations();
          ParameterDetail[] parameterDetails = new ParameterDetail[parameterTypes.length];
          OperationType operationType = opAnnotation.type();

          for (int i = 0; i < parameterTypes.length; i++) {
            OperationParameter paramAnnotation = null;
            for (Annotation annotation : parameterAnnotations[i]) {
              if (annotation.annotationType() == OperationParameter.class) {
                paramAnnotation = (OperationParameter) annotation;
                break;
              }
            }

            String name = paramAnnotation != null ? paramAnnotation.name() : ("arg" + i);
            String description = paramAnnotation != null ? paramAnnotation.description() : null;

            parameterDetails[i] = new ParameterDetail(parameterTypes[i], name, description);
          }

          // Com todas as informações, criamos nossa instância de MethodDetail e
View Full Code Here

TOP

Related Classes of br.gov.frameworkdemoiselle.annotation.OperationParameter

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.