Examples of DiagnosticType


Examples of com.puppetlabs.geppetto.diagnostic.DiagnosticType

      }
      else if(message.startsWith("notice:")) {
        severity = Diagnostic.INFO;
        message = message.substring(7);
      }
      DiagnosticType type = message.startsWith("Could not parse")
          ? ValidationService.CATALOG_PARSER
          : ValidationService.CATALOG;
      CatalogDiagnostic diag = new CatalogDiagnostic(severity, type, message, new File(fileName));
      try {
        diag.setLineNumber(Integer.parseInt(line));
View Full Code Here

Examples of com.puppetlabs.geppetto.diagnostic.DiagnosticType

   * @param issue
   * @param rootDirectory
   * @param rootDirectory
   */
  private static void addIssueDiagnostic(Diagnostic diagnostics, Issue issue, File processedFile, File rootDirectory) {
    DiagnosticType type = issue.isSyntaxError()
        ? GEPPETTO_SYNTAX
        : GEPPETTO;
    DetailedFileDiagnostic dft = new DetailedFileDiagnostic(
      translateIssueSeverity(issue.getSeverity()), type, issue.getMessage(), uriToFile(
        issue.getUriToProblem(), rootDirectory));
View Full Code Here

Examples of com.puppetlabs.geppetto.diagnostic.DiagnosticType

      File rootDirectory) {

    int severity = issue.isSyntaxError()
        ? Diagnostic.ERROR
        : Diagnostic.WARNING;
    DiagnosticType type = issue.isSyntaxError()
        ? RUBY_SYNTAX
        : RUBY;

    DetailedFileDiagnostic dft = new DetailedFileDiagnostic(severity, type, issue.getMessage(), pathToFile(
      issue.getFileName(), rootDirectory));
View Full Code Here

Examples of com.sun.tools.javac.util.JCDiagnostic.DiagnosticType

        return sb.toString();
    }

    private String format_std(JCDiagnostic d) {
        DiagnosticSource source = d.getDiagnosticSource();
        DiagnosticType type = d.getType();
        int position = d.getIntPosition();


        String format = noPosFormat;
        if (source != null) {
View Full Code Here

Examples of com.sun.tools.javac.util.JCDiagnostic.DiagnosticType

        return sb.toString();
    }

    private String format_std(JCDiagnostic d) {
        DiagnosticSource source = d.getDiagnosticSource();
        DiagnosticType type = d.getType();
        int position = d.getIntPosition();


        String format = noPosFormat;
        if (source != null) {
View Full Code Here

Examples of com.sun.tools.javac.util.JCDiagnostic.DiagnosticType

    private String format_std(JCDiagnostic d) {
    DEBUG.P(this,"format_std(1)");
    //DEBUG.P("d="+d);//这会引起无限调用,引起JCDiagnostic.toString()==>format==>format_std
   
    DiagnosticSource source = d.getDiagnosticSource();
    DiagnosticType type = d.getType();
    int position = d.getIntPosition();

   
    String format = noPosFormat;
    if (source != null) {
View Full Code Here

Examples of com.sun.tools.javac.util.JCDiagnostic.DiagnosticType

  return sb.toString();
    }

    private String format_std(JCDiagnostic d) {
  DiagnosticSource source = d.getDiagnosticSource();
  DiagnosticType type = d.getType();
  int position = d.getIntPosition();

 
  String format = noPosFormat;
  if (source != null) {
View Full Code Here

Examples of gov.loc.www.zing.srw.diagnostic.DiagnosticType

    }

    public boolean addDiagnostic(int code, String addInfo) {
        if(diagnostics==null)
            diagnostics=new Vector<DiagnosticType>();
        DiagnosticType dt=SRWDiagnostic.newDiagnosticType(code, addInfo);
        return diagnostics.add(dt);
    }
View Full Code Here

Examples of gov.loc.www.zing.srw.diagnostic.DiagnosticType

                    startTime=System.currentTimeMillis();
                    searchResponse = db.doRequest(searchRequest);
                    System.out.println("elapsed time: "+(System.currentTimeMillis()-startTime)+"ms");
                    DiagnosticsType diags=searchResponse.getDiagnostics();
                    if(diags!=null) {
                        DiagnosticType diag, diagArray[]=diags.getDiagnostic();
                        for(i=0; i<diagArray.length; i++) {
                            diag=diagArray[i];
                            System.out.print("diagnostic: "+diag.getUri());
                            if(diag.getDetails()!=null)
                                System.out.print(", details: "+diag.getDetails());
                            System.out.println();
                        }
                    }
                    System.out.println("postings=" + searchResponse.getNumberOfRecords());
                   
View Full Code Here

Examples of gov.loc.www.zing.srw.diagnostic.DiagnosticType

        terms.setTerm(tl.getTerms());
        scanResponse.setTerms(terms);

        Vector<DiagnosticType> diagnostics = tl.getDiagnostics();
        if (diagnostics!=null && !diagnostics.isEmpty()) {
            DiagnosticType diagArray[] = new DiagnosticType[diagnostics.size()];
            diagnostics.toArray(diagArray);
            scanResponse.setDiagnostics(new DiagnosticsType(diagArray));
        }

        log.info("scan "+scanTerm+": (" + (System.currentTimeMillis() - startTime) + "ms)");
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.