net.sf.farrago.cwm.instance
Interface SlotValue

All Superinterfaces:
RefAssociation, RefBaseObject
All Known Implementing Classes:
SlotValue$Hib

public interface SlotValue
extends RefAssociation

SlotValue association proxy interface. The SlotValue association connects slot instances with the DataValue or Object instance that contains the current value held by the slot.

Note: This type should not be subclassed, implemented or directly instantiated by clients. It is generated from a MOF metamodel and implemented by Enki or MDR.


Method Summary
 boolean add(CwmSlot valueSlot, CwmInstance value)
          Creates a link between the pair of instance objects in the associations link set.
 boolean exists(CwmSlot valueSlot, CwmInstance value)
          Queries whether a link currently exists between a given pair of instance objects in the associations link set.
 CwmInstance getValue(CwmSlot valueSlot)
          Queries the instance object that is related to a particular instance object by a link in the current associations link set.
 Collection<CwmSlot> getValueSlot(CwmInstance value)
          Queries the instance objects that are related to a particular instance object by a link in the current associations link set.
 boolean remove(CwmSlot valueSlot, CwmInstance value)
          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

boolean exists(CwmSlot valueSlot,
               CwmInstance value)
Queries whether a link currently exists between a given pair of instance objects in the associations link set.

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

getValueSlot

Collection<CwmSlot> getValueSlot(CwmInstance value)
Queries the instance objects that are related to a particular instance object by a link in the current associations link set.

Parameters:
value - Required value of the second association end.
Returns:
Collection of related objects.

getValue

CwmInstance getValue(CwmSlot valueSlot)
Queries the instance object that is related to a particular instance object by a link in the current associations link set.

Parameters:
valueSlot - Required value of the first association end.
Returns:
Related object or null if none exists.

add

boolean add(CwmSlot valueSlot,
            CwmInstance value)
Creates a link between the pair of instance objects in the associations link set.

Parameters:
valueSlot - Value of the first association end.
value - Value of the second association end.

remove

boolean remove(CwmSlot valueSlot,
               CwmInstance value)
Removes a link between a pair of instance objects in the current associations link set.

Parameters:
valueSlot - Value of the first association end.
value - Value of the second association end.