ilog.rules.teamserver.model

Interface IlrElementHandle

    • Method Summary

      Methods 
      Modifier and Type Method and Description
      org.eclipse.emf.ecore.EClass eClass()
      Gets the EMF class of the element.
      boolean equals(IlrElementHandle handle, boolean considerVersion)
      Compares two handles and indicates whether they references the same Decision Center object.
      boolean equals(java.lang.Object object) 
      IlrModelInfo getModelInfo()
      Gets the model info object this element is associated with.
      IlrSession getSession()
      Gets the session from which this instance has been created.
      java.lang.String getType()
      Gets the fully qualified name of the EMF type of the element.
      java.lang.Object getValue(org.eclipse.emf.ecore.EReference ref, IlrBaseline baseline)
      Gets the value of the given reference in the given baseline.
      java.lang.Object getValue(org.eclipse.emf.ecore.EStructuralFeature feature)
      Gets the value of the given feature.
      int hashCode() 
      boolean isNew()
      Indicates whether this handle represents a new object, that is, not committed in the database.
      java.lang.String toIdString()
      Gets a string representation of the handle.
      • Methods inherited from interface ilog.rules.commonbrm.model.IlrElement

        getPropertyValue, getPropertyValue, isInstanceOf
    • Method Detail

      • getType

        java.lang.String getType()
        Gets the fully qualified name of the EMF type of the element.
        Returns:
        The fully qualified name of the EMF type.
        See Also:
        eClass()
      • getSession

        IlrSession getSession()
        Gets the session from which this instance has been created.
        Returns:
        The session of the handle.
      • getModelInfo

        IlrModelInfo getModelInfo()
        Gets the model info object this element is associated with.
        Returns:
        The model info.
      • eClass

        org.eclipse.emf.ecore.EClass eClass()
        Gets the EMF class of the element.
        Specified by:
        eClass in interface ilog.rules.commonbrm.model.IlrElement
        Returns:
        An EMF class.
      • equals

        boolean equals(IlrElementHandle handle,
                     boolean considerVersion)
        Compares two handles and indicates whether they references the same Decision Center object.
        Parameters:
        handle - The handle to compare.
        considerVersion - If true, the comparison is done considering the versions. Otherwise, the elements are compared regardless of the versions.
        Returns:
        true If both handles reference the same Decision Center object
      • isNew

        boolean isNew()
        Indicates whether this handle represents a new object, that is, not committed in the database.
        Returns:
        True if the element represents a new object, and false otherwise, that is, if the element already has some versions committed in the database.
      • getValue

        java.lang.Object getValue(org.eclipse.emf.ecore.EStructuralFeature feature)
                                  throws IlrObjectNotFoundException
        Gets the value of the given feature.

        Depending on the type of this object (details, summary, or simple handle) and depending on the feature (containment/multivalued reference), this operation may perform a call to the database.

        Throws:
        IlrObjectNotFoundException - If this element cannot be found in the database while requesting one of its properties.
        Parameters:
        feature - An EMF feature.
        Returns:
        An object representing the value of the feature.
        See Also:
        IlrElementDetails.getRawValue(org.eclipse.emf.ecore.EStructuralFeature)
      • getValue

        java.lang.Object getValue(org.eclipse.emf.ecore.EReference ref,
                                IlrBaseline baseline)
                                  throws IlrObjectNotFoundException
        Gets the value of the given reference in the given baseline. This method performs a call to the database to retrieve the latest details of the referenced element in given baseline.
        Throws:
        IlrObjectNotFoundException
        Parameters:
        ref - The reference.
        baseline - The baseline,
        Returns:
        The details of the referenced element, or a list of details if the reference is a multi-valued containment reference.
      • equals

        boolean equals(java.lang.Object object)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        int hashCode()
        Overrides:
        hashCode in class java.lang.Object

© Copyright IBM Corp. 1987, 2017