Class PropertyValueValidationUtil

java.lang.Object
org.eclipse.birt.report.model.api.util.PropertyValueValidationUtil

public class PropertyValueValidationUtil extends Object
Utility class to validate the property value.
  • Constructor Details

    • PropertyValueValidationUtil

      public PropertyValueValidationUtil()
  • Method Details

    • validateProperty

      public static Object validateProperty(DesignElementHandle element, String propName, Object propValue) throws SemanticException
      Validates a value to be stored for the given property.
      Parameters:
      element - the element to store the property value
      propName - the property name
      propValue - the value to check
      Returns:
      the translated value to be stored
      Throws:
      SemanticException - if propValue is invalid.