Package org.faktorips.runtime
Interface IProductComponentLink<T extends IProductComponent>
- All Superinterfaces:
IClRepositoryObject,IRuntimeObject
- All Known Implementing Classes:
ProductComponentLink
public interface IProductComponentLink<T extends IProductComponent>
extends IRuntimeObject, IClRepositoryObject
This class represents a link between two product components.
The generic type T specifies the target type of this link.
- Author:
- Daniel Hohenberger
-
Method Summary
Modifier and TypeMethodDescriptionReturns the name of the association this link belongs to.Returns theIProductComponentLinkSourcethis link originates from.Returns the target product component.Returns the target product component's id.Methods inherited from interface org.faktorips.runtime.IClRepositoryObject
initFromXmlMethods inherited from interface org.faktorips.runtime.IRuntimeObject
getExtensionPropertyIds, getExtensionPropertyValue
-
Method Details
-
getCardinality
CardinalityRange getCardinality()- Returns:
- this link's min and max cardinality as a
IntegerRange.
-
getSource
IProductComponentLinkSource getSource()Returns theIProductComponentLinkSourcethis link originates from. This may be aIProductComponentGenerationor aIProductComponent(since 3.8).- Since:
- The return value of this method changed in version 3.8 from
IProductComponentGenerationtoIProductComponentLinkSourcebecause the link source may be a product component or a product component generation.
-
getTarget
T getTarget()Returns the target product component. -
getTargetId
String getTargetId()Returns the target product component's id. -
getAssociationName
String getAssociationName()Returns the name of the association this link belongs to.
-