|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectwt.fc.WTObject
wt.fc.ObjectToObjectLink
wt.vc.struct.IteratedUsageLink
wt.epm.structure.EPMMemberLink
public final class EPMMemberLink
A member link always has a quantity. If a member link has a transform, its quantity must be one and its placed flag must be true.
Use the newEPMMemberLink static factory method(s), not the
EPMMemberLink 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
| Field Summary | |
|---|---|
static String |
IDENTIFIER
Label for the attribute; an integer identifier that an application may assign to an EPMMemberLink. |
static String |
QUANTITY
Label for the attribute. |
static String |
TRANSFORM
Label for the attribute. |
static String |
USES_ROLE
Label for the attribute. |
| Fields inherited from interface wt.epm.structure.EPMDependencyLink |
|---|
AS_STORED_CHILD_NAME, DEP_TYPE, REQUIRED, UNIQUE_LINK_ID, UNIQUE_NDID |
| Fields inherited from interface wt.epm.EPMObject |
|---|
AUTHORING_APPLICATION, OWNER_APPLICATION |
| Fields inherited from interface wt.occurrence.OccurrenceableLink |
|---|
USES_OCCURRENCE_VECTOR |
| Method Summary | |
|---|---|
void |
checkAttributes()
Validates the attributes on this EPM Member Link. |
String |
getAsStoredChildName()
Gets the value of the attribute: AS_STORED_CHILD_NAME. |
EPMAuthoringAppType |
getAuthoringApplication()
Gets the value of the attribute: AUTHORING_APPLICATION. |
int |
getDepType()
Gets the value of the attribute: DEP_TYPE. |
Integer |
getIdentifier()
Gets the value of the attribute: IDENTIFIER. |
EPMApplicationType |
getOwnerApplication()
Gets the value of the attribute: OWNER_APPLICATION. |
Quantity |
getQuantity()
Gets the object for the association that plays role: QUANTITY. |
Transform |
getTransform()
Gets the object for the association that plays role: TRANSFORM. |
long |
getUniqueLinkID()
Gets the value of the attribute: UNIQUE_LINK_ID. |
String |
getUniqueNDId()
Gets the value of the attribute: UNIQUE_NDID. |
Vector |
getUsesOccurrenceVector()
Gets the value of the attribute: USES_OCCURRENCE_VECTOR. |
boolean |
hasTransform()
Returns whether or not this member link has a transform. |
protected void |
initialize(EPMDocument usedBy,
EPMDocumentMaster uses,
String asStoredChildName,
int depType)
Supports initialization, following construction of an instance. |
boolean |
isRequired()
Gets the value of the attribute: REQUIRED. |
static EPMMemberLink |
newEPMMemberLink(EPMDocument usedBy,
EPMDocumentMaster uses)
Constructs an EPMMemberLink. |
static EPMMemberLink |
newEPMMemberLink(EPMDocument usedBy,
EPMDocumentMaster uses,
String asStoredChildName,
int depType)
Constructs an EPMMemberLink. |
void |
setAsStoredChildName(String a_AsStoredChildName)
Sets the value of the attribute: AS_STORED_CHILD_NAME. |
void |
setDepType(int a_DepType)
Sets the value of the attribute: DEP_TYPE. |
void |
setIdentifier(int a_Identifier)
Sets the identifier on this EPMMemberLink. |
void |
setIdentifier(Integer a_Identifier)
Sets the value of the attribute: IDENTIFIER. |
void |
setQuantity(Quantity a_Quantity)
Sets the object for the association that plays role: QUANTITY. |
void |
setRequired(boolean a_Required)
Sets the value of the attribute: REQUIRED. |
void |
setTransform(Transform a_Transform)
Sets the object for the association that plays role: TRANSFORM. |
void |
setUniqueLinkID(long a_UniqueLinkID)
Sets the value of the attribute: UNIQUE_LINK_ID. |
void |
setUniqueNDId(String a_UniqueNDId)
Sets the value of the attribute: UNIQUE_NDID. |
void |
setUses(Mastered uses)
Sets the object for the association that plays role: USES_ROLE. |
void |
setUsesOccurrenceVector(Vector a_UsesOccurrenceVector)
Sets the value of the attribute: USES_OCCURRENCE_VECTOR. |
| Methods inherited from class wt.vc.struct.IteratedUsageLink |
|---|
getUsedBy, getUses |
| 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 |
|---|
public static final String USES_ROLE
public static final String IDENTIFIER
public static final String TRANSFORM
public static final String QUANTITY
| Method Detail |
|---|
public void setUses(Mastered uses)
throws WTPropertyVetoException
setUses in class IteratedUsageLinkuses -
WTPropertyVetoExceptionpublic Integer getIdentifier()
public void setIdentifier(Integer a_Identifier)
throws WTPropertyVetoException
a_Identifier -
WTPropertyVetoExceptionpublic Transform getTransform()
public void setTransform(Transform a_Transform)
throws WTPropertyVetoException
a_Transform -
WTPropertyVetoExceptionpublic Quantity getQuantity()
public void setQuantity(Quantity a_Quantity)
a_Quantity -
public static EPMMemberLink newEPMMemberLink(EPMDocument usedBy,
EPMDocumentMaster uses,
String asStoredChildName,
int depType)
throws WTException
By default, this constructor sets
'required' to false,
'suppressed' to false,
'name' to null,
'identifier' to null,
'quantity' to 1,
'placed' to false and
'transform' to null.
Supported API: true
usedBy - uses - asStoredChildName - depType -
WTException
protected void initialize(EPMDocument usedBy,
EPMDocumentMaster uses,
String asStoredChildName,
int depType)
throws WTException
usedBy - uses - asStoredChildName - depType -
WTException
public static EPMMemberLink newEPMMemberLink(EPMDocument usedBy,
EPMDocumentMaster uses)
throws WTException
By default, this constructor sets
'asStoredChildName' to null,
'depType' to UNSPECIFIED,
'required' to false,
'suppressed' to false,
'name' to null,
'identifier' to null,
'quantity' to 1,
'placed' to false and
'transform' to null.
Supported API: true
usedBy - uses -
WTExceptionpublic boolean hasTransform()
public void setIdentifier(int a_Identifier)
throws WTPropertyVetoException
a_Identifier -
WTPropertyVetoException
public void checkAttributes()
throws InvalidAttributeException
In particular, this method enforces the following rules:
a) If a member link has a transform, its quantity must be one and
its placed flag must be true.
Supported API: true
checkAttributes in interface EPMObjectInvalidAttributeExceptionpublic String getAsStoredChildName()
getAsStoredChildName in interface EPMDependencyLink
public void setAsStoredChildName(String a_AsStoredChildName)
throws WTPropertyVetoException
setAsStoredChildName in interface EPMDependencyLinka_AsStoredChildName -
WTPropertyVetoExceptionpublic int getDepType()
getDepType in interface EPMDependencyLink
public void setDepType(int a_DepType)
throws WTPropertyVetoException
setDepType in interface EPMDependencyLinka_DepType -
WTPropertyVetoExceptionpublic boolean isRequired()
isRequired in interface EPMDependencyLink
public void setRequired(boolean a_Required)
throws WTPropertyVetoException
setRequired in interface EPMDependencyLinka_Required -
WTPropertyVetoExceptionpublic long getUniqueLinkID()
getUniqueLinkID in interface EPMDependencyLink
public void setUniqueLinkID(long a_UniqueLinkID)
throws WTPropertyVetoException
setUniqueLinkID in interface EPMDependencyLinka_UniqueLinkID -
WTPropertyVetoExceptionpublic String getUniqueNDId()
getUniqueNDId in interface EPMDependencyLink
public void setUniqueNDId(String a_UniqueNDId)
throws WTPropertyVetoException
setUniqueNDId in interface EPMDependencyLinka_UniqueNDId -
WTPropertyVetoExceptionpublic EPMApplicationType getOwnerApplication()
The parameter is an EPMApplicationType, so that any sort of checking
can be done at run-time.
Supported API: true
getOwnerApplication in interface EPMObjectpublic EPMAuthoringAppType getAuthoringApplication()
The parameter is an EPMAuthoringAppType, so that any sort of checking
can be done at run-time.
Supported API: true
getAuthoringApplication in interface EPMObjectpublic Vector getUsesOccurrenceVector()
Vector contains UsesOccurrences, each of which may contain a PathOccurrence.
Note that any implementation of this interface must provide server-side
APIs that specifically populate this Vector, otherwise
it will be null.
getUsesOccurrenceVector in interface OccurrenceableLinkpublic void setUsesOccurrenceVector(Vector a_UsesOccurrenceVector)
Vector contains UsesOccurrences, each of which may contain a PathOccurrence.
Note that any implementation of this interface must provide server-side
APIs that specifically populate this Vector, otherwise
it will be null.
setUsesOccurrenceVector in interface OccurrenceableLinka_UsesOccurrenceVector -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||