net.sf.farrago.cwm.core
Interface StructuralFeatureType

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

public interface StructuralFeatureType
extends RefAssociation

StructuralFeatureType association proxy interface. The StructuralFeatureType association identifies the Classifier instance that defines the type of particular StructuralFeatures. A StructuralFeature instance must have a Classifier instance that defines its type.

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(CwmStructuralFeature structuralFeature, CwmClassifier type)
          Creates a link between the pair of instance objects in the associations link set.
 boolean exists(CwmStructuralFeature structuralFeature, CwmClassifier type)
          Queries whether a link currently exists between a given pair of instance objects in the associations link set.
 Collection<CwmStructuralFeature> getStructuralFeature(CwmClassifier type)
          Queries the instance objects that are related to a particular instance object by a link in the current associations link set.
 CwmClassifier getType(CwmStructuralFeature structuralFeature)
          Queries the instance object that is related to a particular instance object by a link in the current associations link set.
 boolean remove(CwmStructuralFeature structuralFeature, CwmClassifier type)
          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(CwmStructuralFeature structuralFeature,
               CwmClassifier type)
Queries whether a link currently exists between a given pair of instance objects in the associations link set.

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

getStructuralFeature

Collection<CwmStructuralFeature> getStructuralFeature(CwmClassifier type)
Queries the instance objects that are related to a particular instance object by a link in the current associations link set.

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

getType

CwmClassifier getType(CwmStructuralFeature structuralFeature)
Queries the instance object that is related to a particular instance object by a link in the current associations link set.

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

add

boolean add(CwmStructuralFeature structuralFeature,
            CwmClassifier type)
Creates a link between the pair of instance objects in the associations link set.

Parameters:
structuralFeature - Value of the first association end.
type - Value of the second association end.

remove

boolean remove(CwmStructuralFeature structuralFeature,
               CwmClassifier type)
Removes a link between a pair of instance objects in the current associations link set.

Parameters:
structuralFeature - Value of the first association end.
type - Value of the second association end.