public class ProductAssociation extends Association
IModelTypeAssociation.AssociationType| Constructor and Description |
|---|
ProductAssociation(Type type,
Method getterMethod,
boolean changingOverTime) |
| Modifier and Type | Method and Description |
|---|---|
ProductAssociation |
createOverwritingAssociationFor(Type subType) |
PolicyCmptType |
getMatchingAssociationSourceType()
Returns the
PolicyCmptType identified by Association.getMatchingAssociationSource() |
ProductCmptType |
getModelType()
Deprecated.
Use
getType() |
ProductCmptType |
getTarget()
Returns the target type of this association.
|
List<IProductComponent> |
getTargetObjects(IProductComponent productComponentSource,
Calendar effectiveDate)
Returns a list of the target(s) of the given product component's association identified by
this model type association.
|
ProductCmptType |
getType()
Returns the
ProductCmptType this association belongs to. |
boolean |
isChangingOverTime()
Checks whether this association is changing over time (resides in the generation) or not
(resides in the product component).
|
getAssociationKind, getAssociationType, getGetterMethod, getInverseAssociation, getLabelForPlural, getMatchingAssociation, getMatchingAssociationName, getMatchingAssociationSource, getMaxCardinality, getMinCardinality, getNamePlural, getUsedName, isDerivedUnion, isMatchingAssociationPresent, isProductRelevant, isSubsetOfADerivedUnion, toStringgetMessageHelper, getMessageKey, getTypeNamecreateMessageHelper, getDescription, getDocumentation, getExtensionPropertyIds, getExtensionPropertyValue, getLabel, getName, getRelevantProductObject, invokeField, invokeMethodclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDescription, getExtensionPropertyIds, getExtensionPropertyValue, getLabel, getNamepublic ProductAssociation createOverwritingAssociationFor(Type subType)
createOverwritingAssociationFor in class Associationpublic ProductCmptType getType()
ProductCmptType this association belongs to.@Deprecated public ProductCmptType getModelType()
getType()getModelType in interface IModelTypeAssociationgetModelType in class TypePartpublic ProductCmptType getTarget()
getTarget in interface IModelTypeAssociationgetTarget in class Associationpublic List<IProductComponent> getTargetObjects(IProductComponent productComponentSource, Calendar effectiveDate)
null the latest generation is used. If the association is not changing over time
the date will be ignored.productComponentSource - a product object corresponding to the ProductCmptType
this association belongs toeffectiveDate - The date that should be used to get the
IProductComponentGeneration if this association is changing over time. May
be null to get the latest generation.IllegalArgumentException - if the model object does not have an association fitting
this model type association or that association is not accessible for any reasonpublic PolicyCmptType getMatchingAssociationSourceType()
PolicyCmptType identified by Association.getMatchingAssociationSource()getMatchingAssociationSourceType in interface IModelTypeAssociationgetMatchingAssociationSourceType in class AssociationAssociation.getMatchingAssociationSource()public boolean isChangingOverTime()
true if this association is changing over time, else falseCopyright © 2018. All rights reserved.