wt.part
Class WTPartAlternateLink

java.lang.Object
  extended by wt.fc.WTObject
      extended by wt.fc.ObjectToObjectLink
          extended by wt.part.WTPartAlternateLink
All Implemented Interfaces:
Externalizable, Serializable, AccessControlled, wt.access.PolicyAccessControlled, wt.access.SecurityLabeled, wt.admin.DomainAdministered, BinaryLink, Link, NetFactor, ObjectMappable, Persistable, DisplayIdentification

public class WTPartAlternateLink
extends ObjectToObjectLink
implements wt.access.SecurityLabeled, wt.access.PolicyAccessControlled, Externalizable

A link used to indicate that a WTPart may be globally replaced by another WTPart. This link is unidirectional: the alternates for a part are obtained by navigating the "alternates" role. To specify that two parts are alternates of each other, two links must be created.

Use the newWTPartAlternateLink static factory method(s), not the WTPartAlternateLink 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:
Serialized Form

Field Summary
static String ALTERNATE_FOR_ROLE
          Label for the attribute.
static String ALTERNATES_ROLE
          Label for the attribute.
 
Method Summary
 WTPartMaster getAlternateFor()
          Gets the object for the association that plays role: ALTERNATE_FOR_ROLE.
 WTPartMaster getAlternates()
          Gets the object for the association that plays role: ALTERNATES_ROLE.
 void setAlternateFor(WTPartMaster alternateFor)
          Sets the object for the association that plays role: ALTERNATE_FOR_ROLE.
 void setAlternates(WTPartMaster alternates)
          Sets the object for the association that plays role: ALTERNATES_ROLE.
 
Methods inherited from class wt.fc.WTObject
getDisplayIdentifier, getDisplayIdentity, getDisplayType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ALTERNATE_FOR_ROLE

public static final String ALTERNATE_FOR_ROLE
Label for the attribute.

Supported API: true

See Also:
Constant Field Values

ALTERNATES_ROLE

public static final String ALTERNATES_ROLE
Label for the attribute.

Supported API: true

See Also:
Constant Field Values
Method Detail

getAlternateFor

public WTPartMaster getAlternateFor()
Gets the object for the association that plays role: ALTERNATE_FOR_ROLE.

Supported API: true

Returns:
WTPartMaster

setAlternateFor

public void setAlternateFor(WTPartMaster alternateFor)
                     throws WTPropertyVetoException
Sets the object for the association that plays role: ALTERNATE_FOR_ROLE.

Supported API: true

Parameters:
alternateFor -
Throws:
WTPropertyVetoException

getAlternates

public WTPartMaster getAlternates()
Gets the object for the association that plays role: ALTERNATES_ROLE.

Supported API: true

Returns:
WTPartMaster

setAlternates

public void setAlternates(WTPartMaster alternates)
                   throws WTPropertyVetoException
Sets the object for the association that plays role: ALTERNATES_ROLE.

Supported API: true

Parameters:
alternates -
Throws:
WTPropertyVetoException