org.eclipse.birt.report.model.api.validators
Class ColumnBindingNameValidator

java.lang.Object
  extended byorg.eclipse.birt.report.model.validators.AbstractSemanticValidator
      extended byorg.eclipse.birt.report.model.validators.AbstractPropertyValidator
          extended byorg.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

Applicability

This validator is only applied to the property whose type is structure list of one DesignElement.


Field Summary
 
Fields inherited from class org.eclipse.birt.report.model.validators.AbstractSemanticValidator
modules, name
 
Constructor Summary
ColumnBindingNameValidator()
           
 
Method Summary
static ColumnBindingNameValidator 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)
           
 java.util.List validateForAdding(DesignElementHandle element, IPropertyDefn propDefn, IStructure toAdd)
          Validates whether name of structure is valid or not.
 java.util.List validateForReplacing(DesignElementHandle element, IPropertyDefn propDefn, IStructure toAdd, java.lang.String columnName)
          Validates whether name of structure is valid or not.
 
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
 

Constructor Detail

ColumnBindingNameValidator

public ColumnBindingNameValidator()
Method Detail

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 list
propDefn - definition of the list property
toAdd - 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 list
propDefn - definition of the list property
toAdd - the structure to add
columnName - 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.