Class BmAssociationEvent


  • public final class BmAssociationEvent
    extends BmSubEvent
    Sub-event representing object associations and deassociations. Note that all the collections and maps returned by the methods of this class are for read-access only. In case of a modification attempt the behaviour is not defined.
    See Also:
    BmEvent, BmSubEvent
    • Constructor Detail

      • BmAssociationEvent

        public BmAssociationEvent​(Collection<IBmObject> associated,
                                  Collection<IBmObject> deassociated,
                                  Collection<Long> deassociatedIds,
                                  Map<Long,​org.eclipse.emf.common.util.URI> deassociatedUris)
        Constructs a new instance.
        Parameters:
        associated - A collection of the associated objects. May not be null.
        deassociated - A collection of the deassociated objects. May not be null.
        deassociatedIds - A collection of the deassociated object identifiers. May not be null.
        deassociatedUris - A map where keys are identifiers of the deassociated objects and values are URIs. May not be null.
    • Method Detail

      • getAssociated

        public Collection<IBmObject> getAssociated()
        Gets the deassociated objects.
        Returns:
        a collection of the associated objects, never null.
      • getDeassociated

        public Collection<IBmObject> getDeassociated()
        Gets the deassociated objects.
        Returns:
        a collection of the deassociated objects, never null.
      • getDeassociatedIds

        public Collection<Long> getDeassociatedIds()
        Gets the deassociated object identifiers.
        Returns:
        a collection of the deassociated object identifiers, never null.
      • getDeassociatedUris

        public Map<Long,​org.eclipse.emf.common.util.URI> getDeassociatedUris()
        Gets the deassociated object URIs.
        Returns:
        A map where keys are identifiers of the deassociated objects and values are URIs, never null.
      • isAssociated

        public boolean isAssociated()
        Checks if at least one object has been associated.
        Returns:
        true if at least one object has been associated, false otherwise.
      • isDeassociated

        public boolean isDeassociated()
        Checks if at least one object has been deassociated.
        Returns:
        true if at least one object has been deassociated, false otherwise.