Class CompatibilityStatus
java.lang.Object
org.eclipse.birt.report.model.api.extension.CompatibilityStatus
Class that records some status after the report item checks the
compatibilities.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Status that indicates the report item has some compatibilities to do.protected List<SemanticException>
List of the errors after checking compatibilities.static final int
Status that indicates the version of the report item is not supported.static final int
Status that indicates the report item has no compatibilities and its version is supported also.protected int
Type of the status. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.CompatibilityStatus
(List<? extends SemanticException> errors, int type) Constructs this status with the error list and the type. -
Method Summary
Modifier and TypeMethodDescriptionGets the error list of this status after checking the compatibilities.int
Gets the type of this status.void
setErrors
(List<SemanticException> errors) Sets the error list of this status.void
setStatusType
(int type) Sets the type of this status.
-
Field Details
-
OK_TYPE
public static final int OK_TYPEStatus that indicates the report item has no compatibilities and its version is supported also.- See Also:
-
NOT_SUPPORTED_TYPE
public static final int NOT_SUPPORTED_TYPEStatus that indicates the version of the report item is not supported.- See Also:
-
CONVERT_COMPATIBILITY_TYPE
public static final int CONVERT_COMPATIBILITY_TYPEStatus that indicates the report item has some compatibilities to do.- See Also:
-
errors
List of the errors after checking compatibilities. -
statusType
protected int statusTypeType of the status.
-
-
Constructor Details
-
CompatibilityStatus
public CompatibilityStatus()Default constructor. -
CompatibilityStatus
Constructs this status with the error list and the type.- Parameters:
errors
-type
-
-
-
Method Details
-
getErrors
Gets the error list of this status after checking the compatibilities. Each item in the list is instance ofSemanticException
.- Returns:
- the errors
-
setErrors
Sets the error list of this status.- Parameters:
errors
- the errors to set
-
getStatusType
public int getStatusType()Gets the type of this status. The possible values are:- OK_TYPE
- NOT_SUPPORTED_TYPE
- CONVERT_COMPATIBILITY_TYPE
OK_TYPE
.- Returns:
- the statusType
-
setStatusType
public void setStatusType(int type) Sets the type of this status. The possible values are:- OK_TYPE
- NOT_SUPPORTED_TYPE
- CONVERT_COMPATIBILITY_TYPE
- Parameters:
type
- the status type to set
-