|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.faktorips.runtime.internal.RuntimeObject
org.faktorips.runtime.internal.ProductComponentLink<T>
public class ProductComponentLink<T extends IProductComponent>
Class that represents a link/relation between product components.
As of FIPS 3.2 the cardinalities standard OPTIONAL, OBLIGATORY and FULL_RANGE are provided by theCardinalityRange class.
CardinalityRange| Constructor Summary | |
|---|---|
ProductComponentLink(IProductComponentGeneration source)
Creates a new link for the given product component generation. |
|
ProductComponentLink(IProductComponentGeneration source,
T target)
Creates a new link to the given target for the given product component generation using the cardinality (0,*). |
|
ProductComponentLink(IProductComponentGeneration source,
T target,
CardinalityRange cardinality)
Creates a new link with the given cardinality to the given target for the given product component generation. |
|
ProductComponentLink(IProductComponentLinkSource source)
Creates a new link for the given product component generation. |
|
ProductComponentLink(IProductComponentLinkSource source,
T target)
Creates a new link to the given target for the given product component generation using the cardinality (0,*). |
|
ProductComponentLink(IProductComponentLinkSource source,
T target,
CardinalityRange cardinality)
Creates a new link with the given cardinality to the given target for the given product component generation. |
|
| 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. |
void |
initFromXml(Element element)
Initializes this object with the data stored in the XML element. |
String |
toString()
|
Element |
toXml(Document document)
Creates an Element (using the given document) that represents this object in XML. |
| Methods inherited from class org.faktorips.runtime.internal.RuntimeObject |
|---|
getExtensionPropertyIds, getExtensionPropertyValue, initExtensionPropertiesFromXml, writeExtensionPropertiesToXml, writeExtensionPropertiesToXml |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.faktorips.runtime.IRuntimeObject |
|---|
getExtensionPropertyIds, getExtensionPropertyValue |
| Constructor Detail |
|---|
public ProductComponentLink(IProductComponentGeneration source)
initFromXml.
public ProductComponentLink(IProductComponentGeneration source,
T target)
NullPointerException - if any of the parameters is null.
public ProductComponentLink(IProductComponentGeneration source,
T target,
CardinalityRange cardinality)
NullPointerException - if any of the parameters is null.public ProductComponentLink(IProductComponentLinkSource source)
initFromXml.
public ProductComponentLink(IProductComponentLinkSource source,
T target)
NullPointerException - if any of the parameters is null.
public ProductComponentLink(IProductComponentLinkSource source,
T target,
CardinalityRange cardinality)
NullPointerException - if any of the parameters is null.| Method Detail |
|---|
public CardinalityRange getCardinality()
getCardinality in interface IProductComponentLink<T extends IProductComponent>IntegerRange.public void initFromXml(Element element)
IClRepositoryObject
initFromXml in interface IClRepositoryObjectpublic Element toXml(Document document)
IXmlPersistenceSupportElement (using the given document) that represents this object in XML. The
caller is responsible of adding the returned element to an other Element or
Document if required.
toXml in interface IXmlPersistenceSupportdocument - the document to use for creating Elements
Element that represents this object as XML elementpublic T getTarget()
IProductComponentLink
getTarget in interface IProductComponentLink<T extends IProductComponent>public String getTargetId()
IProductComponentLink
getTargetId in interface IProductComponentLink<T extends IProductComponent>public String getAssociationName()
IProductComponentLink
getAssociationName in interface IProductComponentLink<T extends IProductComponent>public String toString()
toString in class Objectpublic IProductComponentLinkSource getSource()
IProductComponentLinkIProductComponentLinkSource this link originates from. This may be a
IProductComponentGeneration or a IProductComponent (since 3.8).
getSource in interface IProductComponentLink<T extends IProductComponent>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||