Class MasterPageMultiColumnValidator
- java.lang.Object
-
- org.eclipse.birt.report.model.validators.AbstractSemanticValidator
-
- org.eclipse.birt.report.model.validators.AbstractElementValidator
-
- org.eclipse.birt.report.model.api.validators.MasterPageMultiColumnValidator
-
public class MasterPageMultiColumnValidator extends org.eclipse.birt.report.model.validators.AbstractElementValidatorValidates the multiple columns and content width should be consistent. This validator should be performed afterMasterPageTypeValidatorandMasterPageSizeValidator.Rule
The rule is that the width occupied by column spacing is less than the content width.column spacing width = (COLUMNS_PROP - 1) * COLUMN_SPACING_PROP
content width = WIDTH_PROP - LEFT_MARGIN_PROP - RIGHT_MARGIN_PROP
column spacing width < content width
Applicability
This validator is only applied toGraphicMasterPage.- See Also:
MasterPageTypeValidator,MasterPageSizeValidator
-
-
Constructor Summary
Constructors Constructor Description MasterPageMultiColumnValidator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MasterPageMultiColumnValidatorgetInstance()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 multiple columns and content width are consistent.
-
-
-
Method Detail
-
getInstance
public static MasterPageMultiColumnValidator 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 multiple columns and content width are consistent.- Specified by:
validatein classorg.eclipse.birt.report.model.validators.AbstractElementValidator- Parameters:
module- the moduleelement- the graphic master page to validate- Returns:
- error list, each of which is the instance of
SemanticException.
-
-