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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetAssociationName()Returns the name of the association this link belongs to.CardinalityRangegetCardinality()IProductComponentLinkSourcegetSource()Returns theIProductComponentLinkSourcethis link originates from.TgetTarget()Returns the target product component.java.lang.StringgetTargetId()Returns the target product component's id.-
Methods inherited from interface org.faktorips.runtime.IClRepositoryObject
initFromXml
-
Methods inherited from interface org.faktorips.runtime.IRuntimeObject
getExtensionPropertyIds, getExtensionPropertyValue
-
-
-
-
Method Detail
-
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
java.lang.String getTargetId()
Returns the target product component's id.
-
getAssociationName
java.lang.String getAssociationName()
Returns the name of the association this link belongs to.
-
-