Class DataSetRequiredValidator
- java.lang.Object
-
- org.eclipse.birt.report.model.validators.AbstractSemanticValidator
-
- org.eclipse.birt.report.model.validators.AbstractElementValidator
-
- org.eclipse.birt.report.model.api.validators.DataSetRequiredValidator
-
public class DataSetRequiredValidator extends org.eclipse.birt.report.model.validators.AbstractElementValidator
Validates the data set of some special elements should be provided.Rule
The rule is that theListingElement.DATA_SET_PROP
should be set on the element itself or its container which is also a listing element; theICubeModel.DATA_SET_PROP
should be set in the cube element; theIReportItemModel.DATA_SET_PROP
should be set in the extended items.Applicability
This validator is applied toListingElement
,Cube
andExtendedItem
.
-
-
Constructor Summary
Constructors Constructor Description DataSetRequiredValidator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DataSetRequiredValidator
getInstance()
Returns the singleton validator instance.java.util.List<SemanticException>
validate(org.eclipse.birt.report.model.core.Module module, org.eclipse.birt.report.model.core.DesignElement element)
Validates whether the data set of the given listing element is provided.
-
-
-
Method Detail
-
getInstance
public static DataSetRequiredValidator getInstance()
Returns the singleton validator instance.- Returns:
- the validator instance
-
validate
public java.util.List<SemanticException> validate(org.eclipse.birt.report.model.core.Module module, org.eclipse.birt.report.model.core.DesignElement element)
Validates whether the data set of the given listing element is provided.- Specified by:
validate
in classorg.eclipse.birt.report.model.validators.AbstractElementValidator
- Parameters:
module
- the moduleelement
- the listing element to validate- Returns:
- error list, each of which is the instance of
SemanticException
.
-
-