Package org.pentaho.di.core
Interface CheckResultInterface
-
- All Known Implementing Classes:
CheckResult
public interface CheckResultInterface
-
-
Field Summary
Fields Modifier and Type Field Description static intTYPE_RESULT_COMMENTstatic intTYPE_RESULT_ERRORstatic intTYPE_RESULT_NONEstatic intTYPE_RESULT_OKstatic intTYPE_RESULT_WARNING
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetErrorCode()CheckResultSourceInterfacegetSourceInfo()StringgetText()intgetType()StringgetTypeDesc()voidsetErrorCode(String errorCode)Sets the component-specific result/error code.voidsetText(String value)Sets the text for the check-resultvoidsetType(int value)Sets the check-result typeStringtoString()
-
-
-
Field Detail
-
TYPE_RESULT_NONE
static final int TYPE_RESULT_NONE
- See Also:
- Constant Field Values
-
TYPE_RESULT_OK
static final int TYPE_RESULT_OK
- See Also:
- Constant Field Values
-
TYPE_RESULT_COMMENT
static final int TYPE_RESULT_COMMENT
- See Also:
- Constant Field Values
-
TYPE_RESULT_WARNING
static final int TYPE_RESULT_WARNING
- See Also:
- Constant Field Values
-
TYPE_RESULT_ERROR
static final int TYPE_RESULT_ERROR
- See Also:
- Constant Field Values
-
-
Method Detail
-
getType
int getType()
- Returns:
- The type of the Check Result (0-4)
-
getTypeDesc
String getTypeDesc()
- Returns:
- The internationalized type description
-
getText
String getText()
- Returns:
- The text of the check result.
-
getSourceInfo
CheckResultSourceInterface getSourceInfo()
- Returns:
- The source of the check result
-
toString
String toString()
-
getErrorCode
String getErrorCode()
- Returns:
- The component-specific result code.
-
setErrorCode
void setErrorCode(String errorCode)
Sets the component-specific result/error code.- Parameters:
errorCode- Unchecked string that can be used for validation
-
setType
void setType(int value)
Sets the check-result type- Parameters:
value- The type from 0-4
-
setText
void setText(String value)
Sets the text for the check-result- Parameters:
value-
-
-