Package com._1c.g5.v8.bm.core.event
Class BmAssociationEvent
- java.lang.Object
-
- com._1c.g5.v8.bm.core.event.BmSubEvent
-
- com._1c.g5.v8.bm.core.event.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 Summary
Constructors Constructor Description BmAssociationEvent(Collection<IBmObject> associated, Collection<IBmObject> deassociated, Collection<Long> deassociatedIds, Map<Long,org.eclipse.emf.common.util.URI> deassociatedUris)
Constructs a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<IBmObject>
getAssociated()
Gets the deassociated objects.Collection<IBmObject>
getDeassociated()
Gets the deassociated objects.Collection<Long>
getDeassociatedIds()
Gets the deassociated object identifiers.Map<Long,org.eclipse.emf.common.util.URI>
getDeassociatedUris()
Gets the deassociated object URIs.boolean
isAssociated()
Checks if at least one object has been associated.boolean
isDeassociated()
Checks if at least one object has been deassociated.
-
-
-
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 benull
.deassociated
- A collection of the deassociated objects. May not benull
.deassociatedIds
- A collection of the deassociated object identifiers. May not benull
.deassociatedUris
- A map where keys are identifiers of the deassociated objects and values are URIs. May not benull
.
-
-
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.
-
-