Class PropertyValueValidationUtil


  • public class PropertyValueValidationUtil
    extends java.lang.Object
    Utility class to validate the property value.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.Object validateProperty​(DesignElementHandle element, java.lang.String propName, java.lang.Object propValue)
      Validates a value to be stored for the given property.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PropertyValueValidationUtil

        public PropertyValueValidationUtil()
    • Method Detail

      • validateProperty

        public static java.lang.Object validateProperty​(DesignElementHandle element,
                                                        java.lang.String propName,
                                                        java.lang.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.