Class PropertyValueValidationUtil
java.lang.Object
org.eclipse.birt.report.model.api.util.PropertyValueValidationUtil
Utility class to validate the property value.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectvalidateProperty(DesignElementHandle element, String propName, Object propValue) Validates a value to be stored for the given property.
-
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 valuepropName- the property namepropValue- the value to check- Returns:
- the translated value to be stored
- Throws:
SemanticException- ifpropValueis invalid.
-