Examples of addAnnotation()


Examples of com.lowagie.text.pdf.PdfWriter.addAnnotation()

      configurations.add(configurationRef.getIndirectReference());
      content.put(new PdfName("Configurations"), configurations);
     
      ann.put(new PdfName("RichMediaContent"), content);
     
      writer.addAnnotation(ann);
    }
    catch (Exception e)
    {
      throw new RuntimeException(e);
    }
View Full Code Here

Examples of com.mockturtlesolutions.snifflib.graphics.SLIconifiedAnnotation.addAnnotation()

        {
          throw new RuntimeException("The icon for the experiment domain "+expdnames[0]+" is null.");
        }
       
        SLIconifiedAnnotation annot = new SLIconifiedAnnotation(null,null);
        annot.addAnnotation(buffDomainIcon);
        annot.addAnnotation("."+buffdnames[1]);
        annot.addAnnotation("*");
        annot.addAnnotation(expDomainIcon);
        annot.addAnnotation("."+expdnames[1]);
        annot.addAnnotation("*");
 
View Full Code Here

Examples of com.mysema.util.Annotations.addAnnotation()

                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) {
View Full Code Here

Examples of com.redhat.ceylon.compiler.typechecker.tree.Tree.AnnotationList.addAnnotation()

       
        Tree.Annotation shared = new Tree.Annotation(null);
        Tree.BaseMemberExpression sharedPrimary = new Tree.BaseMemberExpression(null);
        sharedPrimary.setDeclaration(typeFact().getLanguageModuleDeclaration("shared"));
        shared.setPrimary(sharedPrimary);
        annotationList.addAnnotation(shared);
       
        Tree.Annotation actual = new Tree.Annotation(null);
        Tree.BaseMemberExpression actualPrimary = new Tree.BaseMemberExpression(null);
        actualPrimary.setDeclaration(typeFact().getLanguageModuleDeclaration("actual"));
        actual.setPrimary(actualPrimary);
View Full Code Here

Examples of com.sun.org.apache.xerces.internal.impl.xs.SchemaGrammar.addAnnotation()

                }
                else if (componentType.equals(SchemaSymbols.ELT_SIMPLETYPE)) {
                    fSimpleTypeTraverser.traverseGlobal(globalComp, currSchemaDoc, currSG);
                }
                else if (componentType.equals(SchemaSymbols.ELT_ANNOTATION)) {
                    currSG.addAnnotation(fElementTraverser.traverseAnnotationDecl(globalComp, currSchemaDoc.getSchemaAttrs(), true, currSchemaDoc));
                    sawAnnotation = true;
                }
                else {
                    reportSchemaError("s4s-elt-invalid-content.1", new Object [] {SchemaSymbols.ELT_SCHEMA, DOMUtil.getLocalName(globalComp)}, globalComp);
                }
View Full Code Here

Examples of edu.pitt.dbmi.nlp.noble.terminology.Concept.addAnnotation()

        if(result.containsKey(c)){
          Concept oc = result.get(c);
          for(String ot: c.getMatchedTerms())
            oc.addMatchedTerm(ot);
          for(Annotation a: c.getAnnotations())
            oc.addAnnotation(a);
        }else
          result.put(c,c);
      }
    }
   
View Full Code Here

Examples of edu.pitt.info.extract.model.AnnotatedDocument.addAnnotation()

          int offs = line.indexOf(phrase);
          for(Concept c: terminology.search(phrase,IndexFinderTerminology.BEST_MATCH)){
            for(Annotation a: c.getAnnotations()){ 
              if(a.getOffset() < (offset+offs))
                a.updateOffset(offset+offs);
              doc.addAnnotation(a);
            }
            doc.addConcept(c);
          }
        }
      }
View Full Code Here

Examples of edu.pitt.terminology.lexicon.Concept.addAnnotation()

          if(result.containsKey(c)){
            Concept oc = result.get(c);
            for(String ot: c.getMatchedTerms())
              oc.addMatchedTerm(ot);
            for(Annotation a: c.getAnnotations())
              oc.addAnnotation(a);
          }else
            result.put(c,c);
        }
      }
    }
View Full Code Here

Examples of edu.umd.cs.findbugs.ba.XMethod.addAnnotation()

        // Create an AnnotationValue
        AnnotationValue annotationValue = new AnnotationValue(nullnessAnnotationType);

        // Destructively add the annotation to the MethodInfo object
        xmethod.addAnnotation(annotationValue);
    }

    @Override
    public void addMethodParameterAnnotation(@DottedClassName String cName, String mName, String sig, boolean isStatic,
            int param, NullnessAnnotation annotation) {
View Full Code Here

Examples of edu.umd.cs.findbugs.classfile.analysis.ClassInfo.addAnnotation()

            // AnalysisContext.logError("Error adding built-in nullness annotation",
            // e);
            return;
        }
        if (n == NullnessAnnotation.NONNULL && target == AnnotationDatabase.Target.PARAMETER) {
            xclass.addAnnotation(new AnnotationValue(PARAMETERS_ARE_NONNULL_BY_DEFAULT));
            return;
        } else if (n == NullnessAnnotation.NONNULL && target == AnnotationDatabase.Target.METHOD) {
            xclass.addAnnotation(new AnnotationValue(RETURN_VALUES_ARE_NONNULL_BY_DEFAULT));
            return;
        }
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.