|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.birt.report.model.validators.AbstractSemanticValidator
org.eclipse.birt.report.model.validators.AbstractElementValidator
org.eclipse.birt.report.model.api.validators.GroupNameValidator
public class GroupNameValidator
Validates the ducplicat group name in one table with data set.
ListingElement
.
Field Summary |
---|
Fields inherited from class org.eclipse.birt.report.model.validators.AbstractSemanticValidator |
---|
modules, name |
Constructor Summary | |
---|---|
GroupNameValidator()
|
Method Summary | |
---|---|
static GroupNameValidator |
getInstance()
Returns the singleton validator instance. |
java.util.List |
validate(ListingHandle element)
Validates whether the given element contains the duplicate group name. |
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 contains the duplicate group name. |
java.util.List |
validateForAddingGroup(ListingHandle element,
java.lang.String groupName)
Validates whether the group with the given name can be added into the given listing element. |
java.util.List |
validateForRenamingGroup(ListingHandle element,
GroupHandle group,
java.lang.String groupName)
Validates whether the group can be renamed to the given name. |
Methods inherited from class org.eclipse.birt.report.model.validators.AbstractSemanticValidator |
---|
canApplyToDesign, canApplyToLibrary, getName, isInTemplateParameterDefinitionSlot, setModules, setName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GroupNameValidator()
Method Detail |
---|
public static GroupNameValidator getInstance()
public java.util.List validateForAddingGroup(ListingHandle element, java.lang.String groupName)
element
- List/Table elementgroupName
- name of the group to add
SemanticException
.public java.util.List validateForRenamingGroup(ListingHandle element, GroupHandle group, java.lang.String groupName)
element
- List/Table elementgroup
- the group to renamegroupName
- name of the group to add
SemanticException
.public java.util.List 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 listing element to check
SemanticException
.public java.util.List validate(ListingHandle element)
element
- the handle of the listing element to check
SemanticException
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |