org.eclipse.birt.report.model.api.validators
Class ColumnBindingNameValidator
java.lang.Object
org.eclipse.birt.report.model.validators.AbstractSemanticValidator
org.eclipse.birt.report.model.validators.AbstractPropertyValidator
org.eclipse.birt.report.model.api.validators.ColumnBindingNameValidator
- public class ColumnBindingNameValidator
- extends org.eclipse.birt.report.model.validators.AbstractPropertyValidator
Validates column binding name property of element.
Rule
The rule is that
- adding a column binding name
- if name is duplicate in structure list , throw out exception
- replacing a column binding name
- if name is duplicate in structure list , throw out exception
Applicability
This validator is only applied to the property whose type is structure list
of one DesignElement
.
Fields inherited from class org.eclipse.birt.report.model.validators.AbstractSemanticValidator |
modules, name |
Methods inherited from class org.eclipse.birt.report.model.validators.AbstractSemanticValidator |
canApplyToDesign, canApplyToLibrary, getName, setModules, setName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ColumnBindingNameValidator
public ColumnBindingNameValidator()
getInstance
public static ColumnBindingNameValidator getInstance()
- Returns the singleton validator instance.
- Returns:
- the validator instance
validateForAdding
public java.util.List validateForAdding(DesignElementHandle element,
IPropertyDefn propDefn,
IStructure toAdd)
- Validates whether name of structure is valid or not.
- Parameters:
element
- the element holding the structure listpropDefn
- definition of the list propertytoAdd
- the structure to add
- Returns:
- error list, each of which is the instance of
SemanticException
.
validateForReplacing
public java.util.List validateForReplacing(DesignElementHandle element,
IPropertyDefn propDefn,
IStructure toAdd,
java.lang.String columnName)
- Validates whether name of structure is valid or not.
- Parameters:
element
- the element holding the structure listpropDefn
- definition of the list propertytoAdd
- the structure to addcolumnName
- name of column binding
- Returns:
- error list, each of which is the instance of
SemanticException
.
validate
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)
Copyright © 2005 Actuate Corp. All rights reserved.