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
 String getAssociationName()
          Returns the name of the association this link belongs to.
 CardinalityRange getCardinality()
           
 IProductComponentLinkSource getSource()
          Returns the IProductComponentLinkSource this link originates from.
 T getTarget()
          Returns the target product component.
 String getTargetId()
          Returns the target product component's id.
 
Methods inherited from interface org.faktorips.runtime.IRuntimeObject
getExtensionPropertyIds, getExtensionPropertyValue
 
Methods inherited from interface org.faktorips.runtime.IClRepositoryObject
initFromXml
 

Method Detail

getCardinality

CardinalityRange getCardinality()
Returns:
this link's min and max cardinality as a IntegerRange.

getSource

IProductComponentLinkSource getSource()
Returns the IProductComponentLinkSource this link originates from. This may be a IProductComponentGeneration or a IProductComponent (since 3.8).

Since:
The return value of this method changed in version 3.8 from IProductComponentGeneration to IProductComponentLinkSource because 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.



Copyright © 2015. All rights reserved.