Package org.pentaho.di.core
Class CheckResult
- java.lang.Object
-
- org.pentaho.di.core.CheckResult
-
- All Implemented Interfaces:
CheckResultInterface
public class CheckResult extends Object implements CheckResultInterface
This class is used to store results of transformation and step verifications.- Since:
- 11-01-04
- Author:
- Matt
-
-
Field Summary
Fields Modifier and Type Field Description static String[]typeDesc-
Fields inherited from interface org.pentaho.di.core.CheckResultInterface
TYPE_RESULT_COMMENT, TYPE_RESULT_ERROR, TYPE_RESULT_NONE, TYPE_RESULT_OK, TYPE_RESULT_WARNING
-
-
Constructor Summary
Constructors Constructor Description CheckResult()CheckResult(int t, String errorCode, String s, CheckResultSourceInterface sourceMeta)CheckResult(int t, String s, CheckResultSourceInterface sourceMeta)
-
Method Summary
All Methods Instance Methods Concrete 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
-
typeDesc
public static final String[] typeDesc
-
-
Constructor Detail
-
CheckResult
public CheckResult()
-
CheckResult
public CheckResult(int t, String s, CheckResultSourceInterface sourceMeta)
-
CheckResult
public CheckResult(int t, String errorCode, String s, CheckResultSourceInterface sourceMeta)
-
-
Method Detail
-
getType
public int getType()
- Specified by:
getTypein interfaceCheckResultInterface- Returns:
- The type of the Check Result (0-4)
-
getTypeDesc
public String getTypeDesc()
- Specified by:
getTypeDescin interfaceCheckResultInterface- Returns:
- The internationalized type description
-
getText
public String getText()
- Specified by:
getTextin interfaceCheckResultInterface- Returns:
- The text of the check result.
-
getSourceInfo
public CheckResultSourceInterface getSourceInfo()
- Specified by:
getSourceInfoin interfaceCheckResultInterface- Returns:
- The source of the check result
-
toString
public String toString()
- Specified by:
toStringin interfaceCheckResultInterface- Overrides:
toStringin classObject- Returns:
- String description of the check result
-
getErrorCode
public String getErrorCode()
- Specified by:
getErrorCodein interfaceCheckResultInterface- Returns:
- the errorCode
-
setErrorCode
public void setErrorCode(String errorCode)
Description copied from interface:CheckResultInterfaceSets the component-specific result/error code.- Specified by:
setErrorCodein interfaceCheckResultInterface- Parameters:
errorCode- the errorCode to set
-
setText
public void setText(String value)
Description copied from interface:CheckResultInterfaceSets the text for the check-result- Specified by:
setTextin interfaceCheckResultInterface
-
setType
public void setType(int value)
Description copied from interface:CheckResultInterfaceSets the check-result type- Specified by:
setTypein interfaceCheckResultInterface- Parameters:
value- The type from 0-4
-
-