Class Associations
java.lang.Object
com.dassault_systemes.modeler.kerml.model.Associations
Utility class to work with
Association-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIndex of the source end feature in the association’s ordered end liststatic final intIndex of the target end feature in the association’s ordered end list -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FeaturegetAssociationEndSourceFeature(Association association) Returns the source feature of the association end.getAssociationEndTargetFeature(Association association) Returns the target features of the association end.static FeaturegetOrCreateSourceEndFeature(Association association) Returns the source end feature of the association, creating it if necessary.static FeaturegetOrCreateTargetEndFeature(Association association) Returns the target end feature of the association, creating it if necessary.
-
Field Details
-
SOURCE_INDEX
public static final int SOURCE_INDEXIndex of the source end feature in the association’s ordered end list- See Also:
-
TARGET_INDEX
public static final int TARGET_INDEXIndex of the target end feature in the association’s ordered end list- See Also:
-
-
Constructor Details
-
Associations
public Associations()
-
-
Method Details
-
getOrCreateSourceEndFeature
Returns the source end feature of the association, creating it if necessary.- Parameters:
association- the association- Returns:
- existing or newly created source end feature
-
getOrCreateTargetEndFeature
Returns the target end feature of the association, creating it if necessary.- Parameters:
association- the association- Returns:
- existing or newly created target end feature
-
getAssociationEndSourceFeature
Returns the source feature of the association end.- Parameters:
association- the association- Returns:
- source end feature, or null
-
getAssociationEndTargetFeature
Returns the target features of the association end.- Parameters:
association- the association- Returns:
- list of target end features
-