|
||||||||||
| 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.AbstractPropertyValidator
org.eclipse.birt.report.model.api.validators.StructureListValidator
public class StructureListValidator
Validates one list property of element. The property type should structure list.
NamePropertyType should be
unique in the structure list.
DesignElement.
| Field Summary | |
|---|---|
static java.lang.String |
NAME
Name of this validator. |
| Fields inherited from class org.eclipse.birt.report.model.validators.AbstractSemanticValidator |
|---|
modules, name |
| Constructor Summary | |
|---|---|
StructureListValidator()
|
|
| Method Summary | |
|---|---|
static StructureListValidator |
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,
java.lang.String propName)
Validates whether the list property specified by propName
is invalid. |
java.util.List |
validateForAdding(DesignElementHandle element,
IPropertyDefn propDefn,
java.util.List list,
IStructure toAdd)
Validates whether a new structure can be added to structure list. |
java.util.List |
validateForRenaming(DesignElementHandle element,
IPropertyDefn propDefn,
java.util.List list,
IStructure toRenamed,
IPropertyDefn memberDefn,
java.lang.String newName)
Validates whether a structure 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 |
| Field Detail |
|---|
public static final java.lang.String NAME
| Constructor Detail |
|---|
public StructureListValidator()
| Method Detail |
|---|
public static StructureListValidator getInstance()
public java.util.List validateForAdding(DesignElementHandle element,
IPropertyDefn propDefn,
java.util.List list,
IStructure toAdd)
element - the element holding the structure listpropDefn - definition of the list propertylist - the structure listtoAdd - the structure to add
SemanticException.
public java.util.List validate(org.eclipse.birt.report.model.core.Module module,
org.eclipse.birt.report.model.core.DesignElement element,
java.lang.String propName)
propName
is invalid.
validate in class org.eclipse.birt.report.model.validators.AbstractPropertyValidatormodule - the moduleelement - the element to validatepropName - the name of the list property to validate
SemanticException.
public java.util.List validateForRenaming(DesignElementHandle element,
IPropertyDefn propDefn,
java.util.List list,
IStructure toRenamed,
IPropertyDefn memberDefn,
java.lang.String newName)
element - the element holding the structure listpropDefn - definition of the list propertylist - the structure listtoRenamed - the structure to renamememberDefn - the member definitionnewName - the new name
SemanticException.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||