public class StructureListValidator
extends org.eclipse.birt.report.model.validators.AbstractPropertyValidator
NamePropertyType
should be
unique in the structure list.
DesignElement
.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME
Name of this validator.
|
Constructor and Description |
---|
StructureListValidator() |
Modifier and Type | Method and Description |
---|---|
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
in class org.eclipse.birt.report.model.validators.AbstractPropertyValidator
module
- 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.