Examples of addAnnotation()


Examples of net.jangaroo.jooc.model.ClassModel.addAnnotation()

      String eventTypeQName = generateEventClass(compilationUnitModel, event);
      AnnotationModel annotationModel = new AnnotationModel("Event",
              new AnnotationPropertyModel("name", "'" + event.name + "'"),
              new AnnotationPropertyModel("type", "'" + eventTypeQName + "'"));
      annotationModel.setAsdoc(toAsDoc(event.doc) + String.format("\n * @eventType %s.NAME", eventTypeQName));
      classModel.addAnnotation(annotationModel);
      System.err.println("*** adding event " + event.name + " to class " + classModel.getName());
    }
  }

  public static String capitalize(String name) {
View Full Code Here

Examples of net.sf.mzmine.modules.visualization.spectra.SpectraVisualizerWindow.addAnnotation()

        return;
      Map<DataPoint, String> annotation = formula.getMSMSannotation();

      if (annotation == null)
        return;
      msmsPlot.addAnnotation(annotation);

    }

  }
View Full Code Here

Examples of org.ajax4jsf.builder.model.JavaClass.addAnnotation()

      new JavaField(UIComponentBase.class, "component", "null");
    field.addModifier(JavaModifier.PUBLIC);
    field.addAnnotation(Deprecated.class);
    javaClass.addField(field);
   
    javaClass.addAnnotation(Deprecated.class);
   
    JavaMethod accessor = new JavaMethod("getCount", int.class);
    accessor.setMethodBody(
        new MethodBody(accessor) {
          @Override
View Full Code Here

Examples of org.ajax4jsf.builder.model.JavaField.addAnnotation()

    javaClass.addField(javaField);
   
    JavaField field =
      new JavaField(UIComponentBase.class, "component", "null");
    field.addModifier(JavaModifier.PUBLIC);
    field.addAnnotation(Deprecated.class);
    javaClass.addField(field);
   
    javaClass.addAnnotation(Deprecated.class);
   
    JavaMethod accessor = new JavaMethod("getCount", int.class);
View Full Code Here

Examples of org.ajax4jsf.builder.model.JavaMethod.addAnnotation()

          public String toCode() {
            return "count = i;";
          }
        }
      );
    mutator.addAnnotation(Tezt.class);
    mutator.addModifier(JavaModifier.PUBLIC);
    mutator.addModifier(JavaModifier.FINAL);
    javaClass.addMethod(mutator);
   
    PrintWriter printWriter = new PrintWriter(System.out);
View Full Code Here

Examples of org.apache.axis2.jaxws.feature.ServerFramework.addAnnotation()

            RespectBindingConfigurator rbc = new RespectBindingConfigurator();
            //Mock Object Server Framework.
            ServerFramework sf = new ServerFramework();
            Annotation a = wsFeature;
            sf.addConfigurator(RespectBindingFeature.ID, rbc);
            sf.addAnnotation(a);
            //lets hang the RespectBinding annotation to the EndpointDefinition
            addAnnotation(ed, sf);          
            rbc.configure(ed);
            Set<WSDLValidatorElement> elements = ed.getRequiredBindings();
            assertNotNull("Set of WSDLValidatorElement was null", elements);
View Full Code Here

Examples of org.apache.bval.model.MetaConstructor.addAnnotation()

                        param = new MetaParameter(metaConstructor, index);
                        metaConstructor.addParameter(index, param);
                    }
                    param.addAnnotation(metaConstraint.getAnnotation());
                } else {
                    metaConstructor.addAnnotation(metaConstraint.getAnnotation());
                }
                continue;
            } else { // property level
                meta = metabean.getProperty(access.getPropertyName());
                create = meta == null;
View Full Code Here

Examples of org.apache.bval.model.MetaMethod.addAnnotation()

                        param = new MetaParameter(metaMethod, index);
                        metaMethod.addParameter(index, param);
                    }
                    param.addAnnotation(metaConstraint.getAnnotation());
                } else {
                    metaMethod.addAnnotation(metaConstraint.getAnnotation());
                }
                continue;
            } else if (access.getElementType() == ElementType.CONSTRUCTOR){
                final Constructor<?> constructor = Constructor.class.cast(metaConstraint.getMember());
                meta = metabean.getConstructor(constructor);
View Full Code Here

Examples of org.apache.bval.model.MetaParameter.addAnnotation()

                    MetaParameter param = metaMethod.getParameter(index);
                    if (param == null) {
                        param = new MetaParameter(metaMethod, index);
                        metaMethod.addParameter(index, param);
                    }
                    param.addAnnotation(metaConstraint.getAnnotation());
                } else {
                    metaMethod.addAnnotation(metaConstraint.getAnnotation());
                }
                continue;
            } else if (access.getElementType() == ElementType.CONSTRUCTOR){
View Full Code Here

Examples of org.apache.cxf.tools.common.model.JavaField.addAnnotation()

        if (!StringUtils.isEmpty(jField.getTargetNamespace())) {
            xmlElementAnnotation.addElement(new JAnnotationElement("namespace",
                                                                          jField.getTargetNamespace()));
        }

        jField.addAnnotation(xmlElementAnnotation);
       
        for (Annotation ann : jField.getJaxbAnnotaions()) {
            if (ann instanceof XmlMimeType) {
                JAnnotation mimeAnno = new JAnnotation(XmlMimeType.class);
                mimeAnno.addElement(new JAnnotationElement("value", ((XmlMimeType)ann).value()));
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.