public class MasterPageTypeValidator
extends org.eclipse.birt.report.model.validators.AbstractElementValidator
MasterPage.TYPE_PROP
is
DesignChoiceConstants.PAGE_SIZE_CUSTOM
, the
MasterPage.HEIGHT_PROP
and MasterPage.WIDTH_PROP
must be set; otherwise, they should be empty.
MasterPage
.Constructor and Description |
---|
MasterPageTypeValidator() |
Modifier and Type | Method and Description |
---|---|
static MasterPageTypeValidator |
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 page type and size are consistent.
|
public static MasterPageTypeValidator getInstance()
public java.util.List<SemanticException> validate(org.eclipse.birt.report.model.core.Module module, org.eclipse.birt.report.model.core.DesignElement element)
validate
in class org.eclipse.birt.report.model.validators.AbstractElementValidator
module
- the moduleelement
- the master page to validateSemanticException
.Copyright © 2008 Actuate Corp. All rights reserved.