wt.clients.replication.unit
Class UnitWTPartUsageLink

java.lang.Object
  extended bywt.clients.replication.unit.UnitWTPartUsageLink

public class UnitWTPartUsageLink
extends Object

The UnitWTPartUsageLink is a link between WTUnits and WTUPartMasters. It specifies how many WTParts are contained in a WTUnit.

Use the newUnitWTUnitUsageLink static factory method(s), not the UnitWTUnitUsageLink constructor, to construct instances of this class. Instances must be constructed using the static factory(s), in order to ensure proper initialization of the instance.



Supported API: true

Extendable: false

See Also:
WTPart, WTPartMaster, IteratedUsageLink

Field Summary
private static String CLASSNAME
           
private static String RESOURCE
           
private  WTPartMaster theMaster
           
private  UnitItem unitItem
           
static String USED_BY_ROLE
          Label for the attribute.
static String USES_ROLE
          Label for the attribute.
private static String versionID
           
 
Constructor Summary
private UnitWTPartUsageLink()
           
 
Method Summary
 String getConceptualClassname()
          Returns the conceptual (modeled) name for the class.
 WTUnit getUsedBy()
           
 UnitItem getUsedByItem()
           
 WTPartMaster getUses()
           
protected  void initialize(UnitItem item, WTPartMaster master)
          Default initializer for Link objects.
static UnitWTPartUsageLink newUnitWTPartUsageLink(UnitItem item, WTPartMaster master)
          Default factory for the class.
 void setUsedBy(WTUnit unit)
           
 void setUses(WTPartMaster master)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

versionID

private static final String versionID
See Also:
Constant Field Values

unitItem

private UnitItem unitItem

theMaster

private WTPartMaster theMaster

USED_BY_ROLE

public static final String USED_BY_ROLE
Label for the attribute.

Supported API: true

See Also:
Constant Field Values

USES_ROLE

public static final String USES_ROLE
Label for the attribute.

Supported API: true

See Also:
Constant Field Values
Constructor Detail

UnitWTPartUsageLink

private UnitWTPartUsageLink()
Method Detail

getUsedByItem

public UnitItem getUsedByItem()

getUsedBy

public WTUnit getUsedBy()

setUsedBy

public void setUsedBy(WTUnit unit)

getUses

public WTPartMaster getUses()

setUses

public void setUses(WTPartMaster master)

getConceptualClassname

public String getConceptualClassname()
Returns the conceptual (modeled) name for the class.

Supported API: true

Returns:
String

initialize

protected void initialize(UnitItem item,
                          WTPartMaster master)
                   throws WTException
Default initializer for Link objects.

Throws:
WTException

newUnitWTPartUsageLink

public static UnitWTPartUsageLink newUnitWTPartUsageLink(UnitItem item,
                                                         WTPartMaster master)
                                                  throws WTException
Default factory for the class.

Returns:
UnitWTPartUsageLink
Throws:
WTException