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,
IItemQuery query) |
Modifier and Type | Method and Description |
---|---|
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 Result(IRule rule, double score, String shortDescription, String longDescription, IItemQuery query)
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 IItemQuery getItemQuery()
Copyright © 2020. All rights reserved.