ilog.rules.commonbrm.model

Interface IlrPropertyExtension



  • public interface IlrPropertyExtension
    Interface for changing the behavior of an extended property in Rule Studio and Rule Team Server. You can provide an implementation of this interface and attach it to Rule Studio through the ilog.rules.studio.ui.propertyExtension extension point.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      void afterChange(IlrElement element, java.lang.String property)
      Performs this action after the property has been changed in the Properties view.
      java.util.List getPossibleValues(IlrElement element, java.lang.String property)
      Gets the possible input values for this enumerated property.
      boolean isEditable(IlrElement element, java.lang.String property)
      Defines whether this property is editable in the Properties view.
      boolean isHidden(IlrElement element, java.lang.String property)
      Hides this property in the Properties view.
      java.lang.String isValid(IlrElement element, java.lang.String property, java.lang.Object value)
      Defines whether this value is valid or not for this property.
    • Method Detail

      • isHidden

        boolean isHidden(IlrElement element,
                       java.lang.String property)
        Hides this property in the Properties view.
        Parameters:
        element - An instance of IlrElement.
        property - The property to be hidden.
        Returns:
        true when the property should be hidden, false otherwise.
      • afterChange

        void afterChange(IlrElement element,
                       java.lang.String property)
        Performs this action after the property has been changed in the Properties view.
        Parameters:
        element - An instance of IlrElement.
        property - The property.
      • getPossibleValues

        java.util.List getPossibleValues(IlrElement element,
                                       java.lang.String property)
        Gets the possible input values for this enumerated property. This method is called only for enumerated type properties and controls the behavior of the Properties view.
        Parameters:
        element - An instance of IlrElement.
        property - The property.
        Returns:
        The list of possible values.
      • isEditable

        boolean isEditable(IlrElement element,
                         java.lang.String property)
        Defines whether this property is editable in the Properties view.
        Parameters:
        element - An instance of IlrElement.
        property - The property.
        Returns:
        true when property should be editable, false otherwise.
      • isValid

        java.lang.String isValid(IlrElement element,
                               java.lang.String property,
                               java.lang.Object value)
        Defines whether this value is valid or not for this property. If the value is invalid then the Properties view displays an error message.
        Parameters:
        element - An instance of IlrElement.
        property - The property.
        value - The value of the property.
        Returns:
        An error message when value is not valid, null otherwise.

© Copyright IBM Corp. 1987, 2017