org.omg.uml.behavioralelements.statemachines
Interface ABehaviorContext

All Superinterfaces:
javax.jmi.reflect.RefAssociation, javax.jmi.reflect.RefBaseObject

public interface ABehaviorContext
extends javax.jmi.reflect.RefAssociation

A_behavior_context association proxy interface.


Method Summary
 boolean add(StateMachine behavior, ModelElement context)
          Creates a link between the pair of instance objects in the associations link set.
 boolean exists(StateMachine behavior, ModelElement context)
          Queries whether a link currently exists between a given pair of instance objects in the associations link set.
 Collection getBehavior(ModelElement context)
          Queries the instance objects that are related to a particular instance object by a link in the current associations link set.
 ModelElement getContext(StateMachine behavior)
          Queries the instance object that is related to a particular instance object by a link in the current associations link set.
 boolean remove(StateMachine behavior, ModelElement context)
          Removes a link between a pair of instance objects in the current associations link set.
 
Methods inherited from interface javax.jmi.reflect.RefAssociation
refAddLink, refAllLinks, refLinkExists, refQuery, refQuery, refRemoveLink
 
Methods inherited from interface javax.jmi.reflect.RefBaseObject
equals, hashCode, refImmediatePackage, refMetaObject, refMofId, refOutermostPackage, refVerifyConstraints
 

Method Detail

exists

public boolean exists(StateMachine behavior,
                      ModelElement context)
Queries whether a link currently exists between a given pair of instance objects in the associations link set.

Parameters:
behavior - Value of the first association end.
context - Value of the second association end.
Returns:
Returns true if the queried link exists.

getBehavior

public Collection getBehavior(ModelElement context)
Queries the instance objects that are related to a particular instance object by a link in the current associations link set.

Returns:
Collection of related objects.

getContext

public ModelElement getContext(StateMachine behavior)
Queries the instance object that is related to a particular instance object by a link in the current associations link set.

Returns:
Related object or null if none exists.

add

public boolean add(StateMachine behavior,
                   ModelElement context)
Creates a link between the pair of instance objects in the associations link set.

Parameters:
behavior - Value of the first association end.
context - Value of the second association end.

remove

public boolean remove(StateMachine behavior,
                      ModelElement context)
Removes a link between a pair of instance objects in the current associations link set.

Parameters:
behavior - Value of the first association end.
context - Value of the second association end.