org.eclipse.birt.report.model.api.validators
Class TableHeaderContextContainmentValidator
java.lang.Object
org.eclipse.birt.report.model.validators.AbstractSemanticValidator
org.eclipse.birt.report.model.validators.AbstractElementValidator
org.eclipse.birt.report.model.api.validators.TableHeaderContextContainmentValidator
- public class TableHeaderContextContainmentValidator
- extends org.eclipse.birt.report.model.validators.AbstractElementValidator
Validates the element is not allowed to appear in the specific slot of the
given container type in any level.
Rule
The rule is that whether the given element can recursively resides in the
specific slot of specific container type.
Applicability
This validator is only applied to TableItem
and
ListItem
currently.
Fields inherited from class org.eclipse.birt.report.model.validators.AbstractSemanticValidator |
modules, name |
Method Summary |
static TableHeaderContextContainmentValidator |
getInstance()
Returns the singleton validator instance. |
java.util.List |
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 |
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 |
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)
Validates whether the given element can recursively resides in the
specific slot of specific container type when trying to add an element. |
Methods inherited from class org.eclipse.birt.report.model.validators.AbstractSemanticValidator |
canApplyToDesign, canApplyToLibrary, getName, setModules, setName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TableHeaderContextContainmentValidator
public TableHeaderContextContainmentValidator()
getInstance
public static TableHeaderContextContainmentValidator getInstance()
- Returns the singleton validator instance.
- Returns:
- the validator instance
validate
public java.util.List 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.
- Parameters:
module
- the moduleelement
- the element to validate
- Returns:
- error list, each of which is the instance of
SemanticException
.
validateForAdding
public java.util.List 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)
- Validates whether the given element can recursively resides in the
specific slot of specific container type when trying to add an element.
- Parameters:
module
- the moduleelement
- the container elementslotId
- the slot where the new element to inserttoAdd
- the element to add
- Returns:
- error list, each of which is the instance of
SemanticException
.
validateForAdding
public java.util.List 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.
- Parameters:
module
- the root module of the element to validateelement
- the container elementtoAdd
- the element definition to add
- Returns:
- error list, each of which is the instance of
SemanticException
.
Copyright © 2005 Actuate Corp. All rights reserved.