public class MasterPageContextContainmentValidator
extends org.eclipse.birt.report.model.validators.AbstractElementValidator
MasterPage
currently.Constructor and Description |
---|
MasterPageContextContainmentValidator() |
Modifier and Type | Method and Description |
---|---|
static MasterPageContextContainmentValidator |
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 given element can recursively resides in the
specific slot of specific container type.
|
java.util.List<SemanticException> |
validateForAdding(org.eclipse.birt.report.model.core.Module module,
org.eclipse.birt.report.model.core.ContainerContext containerInfo,
org.eclipse.birt.report.model.core.DesignElement toAdd)
Validates whether the given element can recursively resides in the
specific slot of specific container type when trying to add an element.
|
java.util.List<SemanticException> |
validateForAdding(org.eclipse.birt.report.model.core.Module module,
org.eclipse.birt.report.model.core.DesignElement element,
IElementDefn toAdd)
Validates whether the given element can recursively resides in the
specific slot of specific container type when trying to add an element.
|
java.util.List<SemanticException> |
validateForAdding(org.eclipse.birt.report.model.core.Module module,
org.eclipse.birt.report.model.core.DesignElement element,
int slotId,
org.eclipse.birt.report.model.core.DesignElement toAdd)
Deprecated.
since birt2.2, replaced by
validateForAdding(Module, ContainerContext, DesignElement) |
public MasterPageContextContainmentValidator()
public static MasterPageContextContainmentValidator 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 element to validateSemanticException
.public java.util.List<SemanticException> validateForAdding(org.eclipse.birt.report.model.core.Module module, org.eclipse.birt.report.model.core.ContainerContext containerInfo, org.eclipse.birt.report.model.core.DesignElement toAdd)
module
- the modulecontainerInfo
- the container informationtoAdd
- the element to addSemanticException
.public java.util.List<SemanticException> validateForAdding(org.eclipse.birt.report.model.core.Module module, org.eclipse.birt.report.model.core.DesignElement element, int slotId, org.eclipse.birt.report.model.core.DesignElement toAdd)
validateForAdding(Module, ContainerContext, DesignElement)
module
- the moduleelement
- the container elementslotId
- the slot where the new element to inserttoAdd
- the element to addSemanticException
.public java.util.List<SemanticException> validateForAdding(org.eclipse.birt.report.model.core.Module module, org.eclipse.birt.report.model.core.DesignElement element, IElementDefn toAdd)
module
- the root module of the element to validateelement
- the container elementtoAdd
- the element definition to addSemanticException
.Copyright © 2008 Actuate Corp. All rights reserved.