public class CheckResult extends Object implements CheckResultInterface
Modifier and Type | Field and Description |
---|---|
static String[] |
typeDesc |
TYPE_RESULT_COMMENT, TYPE_RESULT_ERROR, TYPE_RESULT_NONE, TYPE_RESULT_OK, TYPE_RESULT_WARNING
Constructor and Description |
---|
CheckResult() |
CheckResult(int t,
String s,
CheckResultSourceInterface sourceMeta) |
CheckResult(int t,
String errorCode,
String s,
CheckResultSourceInterface sourceMeta) |
Modifier and Type | Method and Description |
---|---|
String |
getErrorCode() |
CheckResultSourceInterface |
getSourceInfo() |
String |
getText() |
int |
getType() |
String |
getTypeDesc() |
void |
setErrorCode(String errorCode)
Sets the component-specific result/error code.
|
void |
setText(String value)
Sets the text for the check-result
|
void |
setType(int value)
Sets the check-result type
|
String |
toString() |
public static final String[] typeDesc
public CheckResult()
public CheckResult(int t, String s, CheckResultSourceInterface sourceMeta)
public CheckResult(int t, String errorCode, String s, CheckResultSourceInterface sourceMeta)
public int getType()
getType
in interface CheckResultInterface
public String getTypeDesc()
getTypeDesc
in interface CheckResultInterface
public String getText()
getText
in interface CheckResultInterface
public CheckResultSourceInterface getSourceInfo()
getSourceInfo
in interface CheckResultInterface
public String toString()
toString
in interface CheckResultInterface
toString
in class Object
public String getErrorCode()
getErrorCode
in interface CheckResultInterface
public void setErrorCode(String errorCode)
CheckResultInterface
setErrorCode
in interface CheckResultInterface
errorCode
- the errorCode to setpublic void setText(String value)
CheckResultInterface
setText
in interface CheckResultInterface
public void setType(int value)
CheckResultInterface
setType
in interface CheckResultInterface
value
- The type from 0-4