public class ProductComponentLink<T extends IProductComponent> extends RuntimeObject implements IProductComponentLink<T>, IXmlPersistenceSupport
As of FIPS 3.2 the cardinalities standard OPTIONAL, OBLIGATORY and FULL_RANGE are provided by the
CardinalityRange class.
CardinalityRange| Constructor and Description |
|---|
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.
|
ProductComponentLink(IProductComponentLinkSource source,
T target,
CardinalityRange cardinality,
String associationName)
Creates a new link with the cardinality and association name to the given target for the
given product component/generation.
|
ProductComponentLink(IProductComponentLinkSource source,
T target,
String associationName)
Creates a new link to the given target and association name for the given product
component/generation using the cardinality (0,*).
|
| Modifier and Type | Method and Description |
|---|---|
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. |
getExtensionPropertyIds, getExtensionPropertyValue, initExtensionPropertiesFromXml, writeExtensionPropertiesToXml, writeExtensionPropertiesToXmlclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetExtensionPropertyIds, getExtensionPropertyValuepublic 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, String associationName)
NullPointerException - if any of the parameters is null.public ProductComponentLink(IProductComponentLinkSource source, T target, CardinalityRange cardinality)
NullPointerException - if any of the parameters is null.public ProductComponentLink(IProductComponentLinkSource source, T target, CardinalityRange cardinality, String associationName)
NullPointerException - if any of the parameters is null.public CardinalityRange getCardinality()
getCardinality in interface IProductComponentLink<T extends IProductComponent>IntegerRange.public void initFromXml(Element element)
IClRepositoryObjectinitFromXml 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 ElementsElement that represents this object as XML elementpublic T getTarget()
IProductComponentLinkgetTarget in interface IProductComponentLink<T extends IProductComponent>public String getTargetId()
IProductComponentLinkgetTargetId in interface IProductComponentLink<T extends IProductComponent>public String getAssociationName()
IProductComponentLinkgetAssociationName in interface IProductComponentLink<T extends IProductComponent>public 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>Copyright © 2023. All rights reserved.