Examples of Severity


Examples of com.adobe.epubcheck.messages.Severity

  public void close() {
  }

  @Override
  public void message(Message message, MessageLocation location, Object... args) {
    Severity s = message.getSeverity();
    switch (s) {
    case FATAL:
      CheckMessage.addCheckMessage(fatalErrors, message, location, args);
      break;
    case ERROR:
View Full Code Here

Examples of com.android.tools.lint.detector.api.Severity

            if (configuration.isIgnored(context, issue, location, message, data)) {
                return;
            }

            Severity severity = configuration.getSeverity(issue);
            if (severity == Severity.IGNORE) {
                return;
            }

            mDelegate.report(context, issue, location, message, data);
View Full Code Here

Examples of com.clarkparsia.pellint.model.Severity

      }
    }

    ontologyLints.sort( new Comparator<Lint>() {
      public int compare(Lint lint0, Lint lint1) {
        Severity severity0 = lint0.getSeverity();
        Severity severity1 = lint1.getSeverity();
        if( severity0 != null && severity1 != null ) {
          return -severity0.compareTo( severity1 );
        }

        Set<OWLClass> classes0 = lint0.getParticipatingClasses();
View Full Code Here

Examples of com.cloudbees.syslog.Severity

        if (!isLoggable(record))
            return;

        String msg = getFormatter().format(record);

        Severity severity = LevelHelper.toSeverity(record.getLevel());
        if (severity == null)
            severity = this.severity;

        SyslogMessage message = new SyslogMessage()
                .withTimestamp(record.getMillis())
View Full Code Here

Examples of com.dragome.model.interfaces.Severity

    }
  }

  protected ValidationMessage getHightestSeverityMessage(ValidationResult result)
  {
    Severity worstSeverity= result.getSeverities().iterator().next();
    return result.getMessages(worstSeverity).get(0);

  }
View Full Code Here

Examples of com.eclipsesource.tabris.widgets.ClientDialog.Severity

  public void testSetsSeverity() {
    ClientDialog dialog = new ClientDialog();

    dialog.setSeverity( ERROR );

    Severity severity = dialog.getSeverity();
    assertSame( ERROR, severity );
  }
View Full Code Here

Examples of com.google.gwt.user.client.DocumentModeAsserter.Severity

    } catch (BadPropertyValueException e) {
      logger.log(TreeLogger.ERROR, "Unable to find value for '"
          + DocumentModeAsserter.PROPERTY_DOCUMENT_COMPATMODE_SEVERITY + "'", e);
      throw new UnableToCompleteException();
    }
    Severity severity;
    try {
      severity = Severity.valueOf(severityText);
    } catch (IllegalArgumentException e) {
      logger.log(TreeLogger.ERROR, "Value '" + severityText + "' for '"
          + DocumentModeAsserter.PROPERTY_DOCUMENT_COMPATMODE_SEVERITY + "' is not one of: "
          + Arrays.toString(Severity.values()), e);
      throw new UnableToCompleteException();
    }

    List<String> documentModes;
    try {
      ConfigurationProperty property = propertyOracle.getConfigurationProperty(DocumentModeAsserter.PROPERTY_DOCUMENT_COMPATMODE);
      documentModes = property.getValues();
    } catch (BadPropertyValueException e) {
      logger.log(TreeLogger.ERROR, "Unable to find value for '"
          + DocumentModeAsserter.PROPERTY_DOCUMENT_COMPATMODE + "'", e);
      throw new UnableToCompleteException();
    }

    ClassSourceFileComposerFactory composerFactory = new ClassSourceFileComposerFactory(
        packageName, className);
    composerFactory.addImplementedInterface(userType.getQualifiedSourceName());
    composerFactory.addImport(DocumentModeAsserter.Severity.class.getCanonicalName());

    PrintWriter pw = context.tryCreate(logger, packageName, className);
    if (pw != null) {
      SourceWriter sw = composerFactory.createSourceWriter(context, pw);

      sw.println();

      sw.println("public String[] getAllowedDocumentModes() {");
      sw.indent();
      sw.println("return new String[] {");
      sw.indent();
      for (String mode : documentModes) {
        sw.println("\"" + mode + "\", ");
      }
      sw.outdent();
      sw.println("};");
      sw.outdent();
      sw.println("}");

      sw.println();

      sw.println("public Severity getDocumentModeSeverity() {");
      sw.indent();
      sw.println("return Severity." + severity.toString() + ";");
      sw.outdent();
      sw.println("}");
      sw.println();

      sw.commit(logger);
View Full Code Here

Examples of com.google.gxp.compiler.alerts.Alert.Severity

  public int getErrorCount() {
    return counts[ERROR.ordinal()];
  }

  private void countAlert(Alert alert) {
    Severity severity = policy.getSeverity(alert);
    counts[severity.ordinal()]++;
  }
View Full Code Here

Examples of com.google.gxp.compiler.alerts.Alert.Severity

  public int getErrorCount() {
    return counts[ERROR.ordinal()];
  }

  private void countAlert(Alert alert) {
    Severity severity = policy.getSeverity(alert);
    counts[severity.ordinal()]++;
  }
View Full Code Here

Examples of com.jgoodies.validation.Severity

    validationResultModel.setResult(result);
    return result;
  }
 
  public static void UpdateUI(JTextComponent comp, ValidationResult valResult){
    Severity severity = ValidationComponentUtils.getSeverity(comp);
    BalloonTip tip = (BalloonTip) comp.getClientProperty("Balloon");
    if (tip!=null) tip.closeBalloon();
    if (valResult.hasErrors()){
      if (severity!=Severity.ERROR){
        comp.setBackground(ERROR_BACKGROUND);
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.