1 /*******************************************************************************
2 * Copyright (c) 2014 Ericsson
4 * All rights reserved. This program and the accompanying materials are
5 * made available under the terms of the Eclipse Public License v1.0 which
6 * accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
10 * Patrick Tasse - Initial API and implementation
11 *******************************************************************************/
13 package org
.eclipse
.tracecompass
.tmf
.core
.trace
;
15 import org
.eclipse
.core
.runtime
.Status
;
18 * A class representing the validation status of a trace against a particular
21 public class TraceValidationStatus
extends Status
{
23 private int fConfidence
;
26 * Construct a successful validation status with a confidence level
29 * the confidence level, 0 is lowest
31 * the unique identifier of the relevant plug-in
33 public TraceValidationStatus(int confidence
, String pluginId
) {
34 this(confidence
, OK
, pluginId
, OK_STATUS
.getMessage(), null);
38 * Full constructor for construct a validation status with a confidence
39 * level, severity and exception
42 * the confidence level, 0 is lowest
44 * the severity; one of <code>OK</code>, <code>ERROR</code>,
45 * <code>INFO</code>, <code>WARNING</code>, or
48 * the unique identifier of the relevant plug-in
50 * a human-readable message, localized to the current locale
52 * a low-level exception, or <code>null</code> if not applicable
55 public TraceValidationStatus(int confidence
, int severity
, String pluginId
, String message
, Throwable exception
) {
56 super(severity
, pluginId
, message
, exception
);
58 throw new IllegalArgumentException();
60 fConfidence
= confidence
;
64 * Gets the confidence level
66 * @return the confidence level, 0 is lowest
68 public int getConfidence() {
This page took 0.030938 seconds and 5 git commands to generate.