net.sf.farrago.cwm.core
Interface ImportedElements

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

public interface ImportedElements
extends RefAssociation

ImportedElements association proxy interface. The ImportedElements association identifies ModelElements that a Package instance imports from other Namespaces. Although any ModelElement may be imported by a Package, imported ModelElements are typically other Packages or aggregate Classifiers, such as Class instances.

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(CwmModelElement importedElement, CwmPackage importer)
          Creates a link between the pair of instance objects in the associations link set.
 boolean exists(CwmModelElement importedElement, CwmPackage importer)
          Queries whether a link currently exists between a given pair of instance objects in the associations link set.
 Collection<CwmModelElement> getImportedElement(CwmPackage importer)
          Queries the instance objects that are related to a particular instance object by a link in the current associations link set.
 Collection<CwmPackage> getImporter(CwmModelElement importedElement)
          Queries the instance objects that are related to a particular instance object by a link in the current associations link set.
 boolean remove(CwmModelElement importedElement, CwmPackage importer)
          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(CwmModelElement importedElement,
               CwmPackage importer)
Queries whether a link currently exists between a given pair of instance objects in the associations link set.

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

getImportedElement

Collection<CwmModelElement> getImportedElement(CwmPackage importer)
Queries the instance objects that are related to a particular instance object by a link in the current associations link set.

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

getImporter

Collection<CwmPackage> getImporter(CwmModelElement importedElement)
Queries the instance objects that are related to a particular instance object by a link in the current associations link set.

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

add

boolean add(CwmModelElement importedElement,
            CwmPackage importer)
Creates a link between the pair of instance objects in the associations link set.

Parameters:
importedElement - Value of the first association end.
importer - Value of the second association end.

remove

boolean remove(CwmModelElement importedElement,
               CwmPackage importer)
Removes a link between a pair of instance objects in the current associations link set.

Parameters:
importedElement - Value of the first association end.
importer - Value of the second association end.