public class SimpleListValidator
extends org.eclipse.birt.report.model.validators.AbstractPropertyValidator
DesignElement
.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME
Name of this validator.
|
Constructor and Description |
---|
SimpleListValidator() |
Modifier and Type | Method and Description |
---|---|
static SimpleListValidator |
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,
java.lang.Object toAdd)
Validates whether a new item can be added to the simple value list.
|
public static final java.lang.String NAME
public static SimpleListValidator getInstance()
public java.util.List<SemanticException> validateForAdding(DesignElementHandle element, IPropertyDefn propDefn, java.util.List<java.lang.Object> list, java.lang.Object toAdd)
element
- the element holding the value listpropDefn
- definition of the list propertylist
- the value listtoAdd
- the item 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
.Copyright © 2008 Actuate Corp. All rights reserved.