public class StructureListValidator
extends org.eclipse.birt.report.model.validators.AbstractPropertyValidator
NamePropertyType should be
unique in the structure list.
DesignElement.| 限定符和类型 | 字段和说明 |
|---|---|
static java.lang.String |
NAME
Name of this validator.
|
| 构造器和说明 |
|---|
StructureListValidator() |
| 限定符和类型 | 方法和说明 |
|---|---|
static StructureListValidator |
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,
java.lang.String propName)
Validates whether the list property specified by
propName is
invalid. |
java.util.List<SemanticException> |
validateForAdding(DesignElementHandle element,
IPropertyDefn propDefn,
java.util.List<java.lang.Object> list,
IStructure toAdd)
Validates whether a new structure can be added to structure list.
|
java.util.List<SemanticException> |
validateForRenaming(DesignElementHandle element,
IPropertyDefn propDefn,
java.util.List<java.lang.Object> list,
IStructure toRenamed,
IPropertyDefn memberDefn,
java.lang.String newName)
Validates whether a structure can be renamed to the given name.
|
public static final java.lang.String NAME
public static StructureListValidator getInstance()
public java.util.List<SemanticException> validateForAdding(DesignElementHandle element, IPropertyDefn propDefn, java.util.List<java.lang.Object> list, IStructure toAdd)
element - the element holding the structure listpropDefn - definition of the list propertylist - the structure listtoAdd - the structure to addSemanticException.public java.util.List<SemanticException> 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 在类中 org.eclipse.birt.report.model.validators.AbstractPropertyValidatormodule - the moduleelement - the element to validatepropName - the name of the list property to validateSemanticException.public java.util.List<SemanticException> validateForRenaming(DesignElementHandle element, IPropertyDefn propDefn, java.util.List<java.lang.Object> 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 nameSemanticException.Copyright © 2008 Actuate Corp. All rights reserved.