Association directly. Will be removed in Faktor-IPS 3.20+@Deprecated public interface IModelTypeAssociation extends IModelElement
| Modifier and Type | Interface and Description |
|---|---|
static class |
IModelTypeAssociation.AssociationType
Deprecated.
Use
AssociationKind |
| Modifier and Type | Method and Description |
|---|---|
IModelTypeAssociation.AssociationType |
getAssociationType()
Deprecated.
Returns the type of this association.
|
String |
getInverseAssociation()
Deprecated.
Returns the name of the inverse association if it is defined.
|
String |
getLabelForPlural(Locale locale)
Deprecated.
Returns the plural label for this model element in the specified locale.
|
String |
getMatchingAssociationName()
Deprecated.
Returns the name of the matching product respectively policy component type association or
null if no matching association is defined for this association. |
String |
getMatchingAssociationSource()
Deprecated.
Returns the qualified name of source type of the matching association or
null if
no matching association is defined. |
IModelType |
getMatchingAssociationSourceType()
Deprecated.
Returns the
IModelType identified by getMatchingAssociationSource() |
int |
getMaxCardinality()
Deprecated.
Returns the maximum cardinality for this association.
|
int |
getMinCardinality()
Deprecated.
Returns the minimum cardinality for this association.
|
IModelType |
getModelType()
Deprecated.
Returns the model type this association belongs to.
|
String |
getNamePlural()
Deprecated.
Returns the plural form of this model type's name or the empty String if no plural for the
name is set.
|
IModelType |
getTarget()
Deprecated.
Returns the target model type object of this association.
|
String |
getUsedName()
Deprecated.
Returns the singular or plural form of this model type's name as used in code generation
depending on cardinality.
|
boolean |
isDerivedUnion()
Deprecated.
Returns if this association is a derived union.
|
boolean |
isMatchingAssociationPresent()
Deprecated.
Returns
true if the association has a matching association. |
boolean |
isProductRelevant()
Deprecated.
Since 3.18, use isMatchingAssociationPresent
|
boolean |
isSubsetOfADerivedUnion()
Deprecated.
Returns if this association is a subset of a derived union.
|
getDescription, getExtensionPropertyIds, getExtensionPropertyValue, getLabel, getNameIModelType getModelType()
IModelType getTarget()
int getMinCardinality()
0 if no minimum is set.int getMaxCardinality()
Integer.MAX_VALUE if no
maximum is set.String getNamePlural()
String getUsedName()
IModelTypeAssociation.AssociationType getAssociationType()
boolean isSubsetOfADerivedUnion()
String getInverseAssociation()
String getLabelForPlural(Locale locale)
@Deprecated boolean isProductRelevant()
boolean isMatchingAssociationPresent()
true if the association has a matching association. For policy
associations that means it is configured by the product component. For product component
associations that means it configures a policy association.true if this association has a matching association.getMatchingAssociationName()String getMatchingAssociationName()
null if no matching association is defined for this association.
Example: Taking two policy component types called 'Policy' and 'Coverage' with a composition association between them. Policy is constrained by the product component type 'Product' and coverage by 'CoverageType'. There is also an association from 'Product' to 'CoverageType'. The product association configures the policy association. If this is a model type association for the policy association this method returns the name of the matching product association and vice versa.
String getMatchingAssociationSource()
null if
no matching association is defined.
Example: Taking two policy component types called 'Policy' and 'Coverage' with a composition association between them. Policy is constrained by the product component type 'Product' and coverage by 'CoverageType'. There is also an association from 'Product' to 'CoverageType'. The product association configures the policy association. If this is a model type association for the policy association this method returns the qualified name of the source of the matching product association and vice versa. The source is the type which defines the matching association.
IModelType getMatchingAssociationSourceType()
IModelType identified by getMatchingAssociationSource()getMatchingAssociationSource()boolean isDerivedUnion()
Copyright © 2023. All rights reserved.