ilog.rules.studio.model

Interface IlrElement

    • Method Summary

      Methods 
      Modifier and Type Method and Description
      IlrElement cloneElement()
      Generates a clone of this element.
      org.eclipse.emf.ecore.EAnnotation createAnnotation(java.lang.String typeURI, java.util.Map<java.lang.String,java.lang.String> details)
      Creates an annotation on this element.
      void deleteElement()
      Deletes this element.
      void fillWith(IlrElement source)
      Copies the values of the features (attributes and references) of this source element into the features of this element.
      java.lang.Object getAdapter(java.lang.Class<?> adapter)
      Gets an adapter for this class.
      java.lang.String getDisplayName()
      Gets the display name of this element.
      IlrRuleModel getModel()
      Gets the IlrRuleModel that contains this element.
      java.lang.String getName()
      Gets the name of this element.
      boolean isDeleted()
      Returns true if this element has been previously deleted.
      boolean isValid()
      Returns true if the element is neither deleted nor duplicated (another element in the model has the same UUID).
      void setPropertyValue(org.eclipse.emf.ecore.EStructuralFeature feature, java.lang.Object value)
      Generic setter for setting the value of the property feature.
      void setPropertyValue(java.lang.String propName, java.lang.Object value)
      Generic setter for setting the value of the property propName.
      • Methods inherited from interface org.eclipse.emf.ecore.EModelElement

        getEAnnotation, getEAnnotations
      • Methods inherited from interface org.eclipse.emf.ecore.EObject

        eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
      • Methods inherited from interface org.eclipse.emf.common.notify.Notifier

        eAdapters, eDeliver, eNotify, eSetDeliver
    • Method Detail

      • getName

        java.lang.String getName()
        Gets the name of this element.

      • createAnnotation

        org.eclipse.emf.ecore.EAnnotation createAnnotation(java.lang.String typeURI,
                                                         java.util.Map<java.lang.String,java.lang.String> details)
        Creates an annotation on this element.

      • cloneElement

        IlrElement cloneElement()
        Generates a clone of this element.

        In particular, this method is used to create working copies of elements. The elements referenced by this element are not cloned, and the resulting cloned object points to them.

      • fillWith

        void fillWith(IlrElement source)
                      throws IlrModelException
        Copies the values of the features (attributes and references) of this source element into the features of this element.

        The source element has to be of the same type as this element, otherwise an IlrModelException is thrown.

        Throws:
        IlrModelException
      • deleteElement

        void deleteElement()
        Deletes this element.

        The method isDeleted() will now return true, and isValid() will now return false.

        The references towards this element are not deleted. The elements that referred to this element now refer to the same element, which is marked deleted.

      • isValid

        boolean isValid()
        Returns true if the element is neither deleted nor duplicated (another element in the model has the same UUID).

      • isDeleted

        boolean isDeleted()
        Returns true if this element has been previously deleted.

        The element is also marked as invalid.

        See Also:
        isValid(),
      • getAdapter

        java.lang.Object getAdapter(java.lang.Class<?> adapter)
        Gets an adapter for this class.

        The adapter pattern is widely used in Eclipse to determine whether an element is eligible for a service.

      • getDisplayName

        java.lang.String getDisplayName()
        Gets the display name of this element.

        In the case of internationalized projects you can specify in Rule Designer a display name different from the name of the element. The display name will be used in the GUI of Rule Designer to represent the element, and the name is used internally by Rule Designer to designate the element.

        If the element is in a rule project then this method will call the naming service on the rule project to find a display name for this element. If a display name is not found, it returns the name.

      • setPropertyValue

        void setPropertyValue(java.lang.String propName,
                            java.lang.Object value)
        Generic setter for setting the value of the property propName.

        See Also:
      • setPropertyValue

        void setPropertyValue(org.eclipse.emf.ecore.EStructuralFeature feature,
                            java.lang.Object value)
        Generic setter for setting the value of the property feature.

        See Also:

© Copyright IBM Corp. 1987, 2017