public final class Result extends Object
Modifier and Type | Field and Description |
---|---|
static double |
FAILED |
static double |
IGNORE |
static double |
NOT_APPLICABLE
Magic numbers for specific cases where an IRule returns a Result without a score
|
Constructor and Description |
---|
Result(IRule rule,
double score,
String shortDescription) |
Result(IRule rule,
double score,
String shortDescription,
String longDescription) |
Result(IRule rule,
double score,
String shortDescription,
String longDescription,
org.openjdk.jmc.common.item.IItemQuery query) |
Modifier and Type | Method and Description |
---|---|
org.openjdk.jmc.common.item.IItemQuery |
getItemQuery() |
String |
getLongDescription() |
IRule |
getRule()
The rule which generated this result.
|
double |
getScore()
A score between 0 and 100 where 0 means "no problem" and 100 means "big problem".
|
String |
getShortDescription() |
String |
toString() |
public static final double NOT_APPLICABLE
public static final double FAILED
public static final double IGNORE
public IRule getRule()
public double getScore()
Severity.get(double)
to get a matching Severity
value.public String getShortDescription()
public String getLongDescription()
null
if no long
description is provided.public org.openjdk.jmc.common.item.IItemQuery getItemQuery()
Copyright © 2020. All rights reserved.