Examples of Annotations


Examples of Taverna.Tree.Annotation.Annotations

    AnnotatedGranularDepthInputPorts inputPorts = new AnnotatedGranularDepthInputPorts();
    AnnotatedGranularDepthOutputPorts outputPorts = new AnnotatedGranularDepthOutputPorts();
    Processors processors = new Processors();
    Conditions conditions = new Conditions();
    Datalinks datalinks = (Datalinks) visit(pipeline.getConnections());
    Annotations annotations = new Annotations();
    String id = UUID.randomUUID().toString();
    String role = "top";
   
    dataflow = new Dataflow(name, inputPorts, outputPorts, processors, conditions, datalinks, annotations, id, role);
    this.dataflow = dataflow; // set environment variable for visitor
   
    // Add Title and Description
    annotations.addAnnotationChain("DescriptiveTitle", moduleGroup.getName(), null);
    annotations.addAnnotationChain("FreeTextDescription", moduleGroup.getDescription(), null);
   
    // Add Authors
    List<Author> authors = moduleGroup.getAuthors().getAuthors();
    for(Author author : authors)
    {
      String authorText = author.getFullName() + " Email: " + author.getEmail() + " Website: " + author.getWebsite();
      annotations.addAnnotationChain("Author", authorText, null);
    }
   
    // Add Modules/Graph Objects
    for(GraphObject module : moduleGroup.getModules())
    {
View Full Code Here

Examples of Taverna.Tree.Annotation.Annotations

    dispatchStack = dis;
    iterationStrategyStack = it;
    processorName  = pn;
    inputPorts = new AnnotatedGranularDepthInputPorts();
    outputPorts = new AnnotatedGranularDepthOutputPorts();
    annotations = new Annotations();
  }
View Full Code Here

Examples of com.android.dx.rop.annotation.Annotations

            throwSeverelyTruncated();
        }

        AnnotationParser ap =
            new AnnotationParser(cf, offset, length, observer);
        Annotations annotations =
            ap.parseAnnotationAttribute(AnnotationVisibility.BUILD);

        return new AttRuntimeInvisibleAnnotations(annotations, length);
    }
View Full Code Here

Examples of com.android.dx.rop.annotation.Annotations

            throwSeverelyTruncated();
        }

        AnnotationParser ap =
            new AnnotationParser(cf, offset, length, observer);
        Annotations annotations =
            ap.parseAnnotationAttribute(AnnotationVisibility.RUNTIME);

        return new AttRuntimeVisibleAnnotations(annotations, length);
    }
View Full Code Here

Examples of com.android.dx.rop.annotation.Annotations

     * @return {@code non-null;} the list of annotations read from the attribute
     * data
     */
    public Annotations parseAnnotationAttribute(
            AnnotationVisibility visibility) {
        Annotations result;
       
        try {
            result = parseAnnotations(visibility);

            if (input.available() != 0) {
View Full Code Here

Examples of com.fasterxml.classmate.Annotations

    public Annotations getParameterAnnotations(int index) {
        if (index >= _paramTypes.length)
            throw new IndexOutOfBoundsException("No parameter at index " + index + ", this is greater than the total number of parameters");

        if (_paramAnnotations[index] == null) {
            _paramAnnotations[index] = new Annotations();
        }
        return _paramAnnotations[index];
    }
View Full Code Here

Examples of com.google.wave.api.Annotations

    if (wavelet.getDataDocuments().contains("issue-tracker-project")) {
      return;
    }

    Annotations annotations = event.getBlip().getAnnotations();
    Iterator<Annotation> iterator = annotations.iterator();
    while (iterator.hasNext()) {
      Annotation annotation = iterator.next();
      String name = annotation.getName();
      String value = annotation.getValue();
      if (name.equals(this.HIGHLIGHT_ANNOTATION_NAME) && value.equals("new")) {
View Full Code Here

Examples of com.google.wave.api.Annotations

      return; // Ignore non-whitelisted actions
    }

    Blip blip = event.getBlip();

    Annotations annotations = event.getBlip().getAnnotations();
    for (Annotation annotation : annotations.asList()) {
      String name = annotation.getName();
      String value = annotation.getValue();
      if (name.equals("stocky") && value.equals("_new_")) {
        int startIndex = annotation.getRange().getStart();
View Full Code Here

Examples of com.mysema.util.Annotations

    protected AnnotatedElement getAnnotatedElement(Class<?> cl, String propertyName) throws NoSuchMethodException {
        Field field = ReflectionUtils.getFieldOrNull(cl, propertyName);
        Method method = ReflectionUtils.getGetterOrNull(cl, propertyName);
        if (field != null) {
            if (method != null) {
                return new Annotations(field, method);
            } else {
                return field;
            }
        } else if (method != null) {
            return method;
View Full Code Here

Examples of com.mysema.util.Annotations

            for (VariableElement field : ElementFilter.fieldsIn(elements)) {
                String name = field.getSimpleName().toString();
                if (configuration.isBlockedField(field)) {
                    blockedProperties.add(name);
                } else if (configuration.isValidField(field)) {
                    Annotations annotations = new Annotations();
                    configuration.inspect(field, annotations);
                    annotations.addAnnotation(field.getAnnotation(QueryType.class));
                    annotations.addAnnotation(field.getAnnotation(QueryInit.class));
                    propertyAnnotations.put(name, annotations);
                    propertyTypes.put(name, field.asType());
                    TypeMirror fixedType = configuration.getRealType(field);
                    if (fixedType != null) {
                        fixedTypes.put(name, fixedType);
                    }
                }
            }
        }

        // methods
        if (config.visitMethodProperties()) {
            for (ExecutableElement method : ElementFilter.methodsIn(elements)) {
                String name = method.getSimpleName().toString();
                if (name.startsWith("get") && name.length() > 3 && method.getParameters().isEmpty()) {
                    name = BeanUtils.uncapitalize(name.substring(3));
                } else if (name.startsWith("is") && name.length() > 2 && method.getParameters().isEmpty()) {
                    name = BeanUtils.uncapitalize(name.substring(2));
                } else {
                    continue;
                }

                if (configuration.isBlockedGetter(method)) {
                    blockedProperties.add(name);
                } else if (configuration.isValidGetter(method) && !blockedProperties.contains(name)) {
                    Annotations annotations = propertyAnnotations.get(name);
                    if (annotations == null) {
                        annotations = new Annotations();
                        propertyAnnotations.put(name, annotations);
                    }
                    configuration.inspect(method, annotations);
                    annotations.addAnnotation(method.getAnnotation(QueryType.class));
                    annotations.addAnnotation(method.getAnnotation(QueryInit.class));
                    propertyTypes.put(name, method.getReturnType());
                    TypeMirror fixedType = configuration.getRealType(method);
                    if (fixedType != null) {
                        fixedTypes.put(name, fixedType);
                    }
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.