|
|||||||||||
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
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 | |
private static int |
AS_STORED_CHILD_NAME_UPPER_LIMIT
|
private String |
asStoredChildName
|
private static String |
CLASSNAME
|
static String |
COMP_LAYER_IDX
Label for the attribute. |
static String |
COMP_NUMBER
Label for the attribute. |
static String |
COMP_REV_NUMBER
Label for the attribute. |
private int |
compLayerIdx
|
private int |
compNumber
|
private int |
compRevNumber
|
private int |
depType
|
private static String |
EPMRESOURCE
|
static long |
EXTERNALIZATION_VERSION_UID
|
private boolean |
hasIBAValues
|
private Integer |
identifier
|
static String |
IDENTIFIER
Label for the attribute; an integer identifier that an application may assign to an EPMMemberLink. |
private String |
name
|
static String |
NAME
Label for the attribute; a name that an application may give to an EPMMemberLink. |
private static int |
NAME_UPPER_LIMIT
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private boolean |
placed
|
static String |
PLACED
Label for the attribute; Signifies whether or not this member has been placed by the application. |
private Quantity |
quantity
|
static String |
QUANTITY
Label for the attribute. |
static long |
R70_EXTERNALIZATION_VERSION_UID
|
static String |
REFERENCE_CONTROL
Label for the attribute. |
private EPMCADReferenceControl |
referenceControl
|
private boolean |
required
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
private boolean |
suppressed
|
static String |
SUPPRESSED
Label for the attribute. |
private AttributeContainer |
theAttributeContainer
|
private Transform |
transform
|
static String |
TRANSFORM
Label for the attribute. |
private TypeDefinitionReference |
typeDefinitionReference
|
private static int |
UNIQUE_NDID_UPPER_LIMIT
|
private long |
uniqueLinkID
|
private String |
uniqueNDId
|
static String |
USED_BY_ROLE
Label for the attribute. |
static String |
USES_ROLE
Label for the attribute. |
private Vector |
usesOccurrenceVector
|
Fields inherited from class wt.fc.ObjectToObjectLink |
ROLE_AOBJECT_REF, ROLE_BOBJECT_REF |
Fields inherited from class wt.fc.WTObject |
CREATE_TIMESTAMP, MODIFY_TIMESTAMP |
Fields inherited from interface wt.epm.structure.EPMDependencyLink |
AS_STORED_CHILD_NAME, DEP_TYPE, HAS_IBAVALUES, REQUIRED, UNIQUE_LINK_ID, UNIQUE_NDID |
Fields inherited from interface wt.epm.EPMObject |
AUTHORING_APPLICATION, OWNER_APPLICATION, UNSPECIFIED |
Fields inherited from interface wt.type.Typed |
TYPE_DEFINITION_REFERENCE |
Fields inherited from interface wt.iba.value.IBAHolder |
ATTRIBUTE_CONTAINER |
Fields inherited from interface wt.fc.Persistable |
IDENTITY, PERSIST_INFO, TYPE |
Fields inherited from interface wt.occurrence.OccurrenceableLink |
USES_OCCURRENCE_VECTOR |
Fields inherited from interface wt.fc.BinaryLink |
ALL_ROLES, BOTH_ROLES, ROLE_AOBJECT_REF, ROLE_AOBJECT_ROLE, ROLE_BOBJECT_REF, ROLE_BOBJECT_ROLE |
Fields inherited from interface wt.identity.DisplayIdentification |
DISPLAY_IDENTIFIER, DISPLAY_IDENTITY, DISPLAY_TYPE |
Constructor Summary | |
EPMMemberLink()
|
Method Summary | |
private void |
asStoredChildNameValidate(String a_AsStoredChildName)
|
void |
checkAttributes()
Validates the attributes on this EPM Member Link. |
boolean |
equals(Object obj)
Indicates whether the given object is equal to this object from a persistence perspective, by comparing the two objects ObjectIdentifier s. |
String |
getAsStoredChildName()
Gets the value of the attribute: AS_STORED_CHILD_NAME. |
AttributeContainer |
getAttributeContainer()
Gets the object for the association that plays role: ATTRIBUTE_CONTAINER. |
EPMAuthoringAppType |
getAuthoringApplication()
Gets the value of the attribute: AUTHORING_APPLICATION. |
int |
getCompLayerIdx()
Gets the value of the attribute: COMP_LAYER_IDX. |
int |
getCompNumber()
Gets the value of the attribute: COMP_NUMBER. |
int |
getCompRevNumber()
Gets the value of the attribute: COMP_REV_NUMBER. |
String |
getConceptualClassname()
Deprecated. |
int |
getDepType()
Gets the value of the attribute: DEP_TYPE. |
Integer |
getIdentifier()
Gets the value of the attribute: IDENTIFIER. |
String |
getName()
Gets the value of the attribute: NAME. |
EPMApplicationType |
getOwnerApplication()
Gets the value of the attribute: OWNER_APPLICATION. |
Quantity |
getQuantity()
Gets the object for the association that plays role: QUANTITY. |
EPMCADReferenceControl |
getReferenceControl()
Gets the object for the association that plays role: REFERENCE_CONTROL. |
Transform |
getTransform()
Gets the object for the association that plays role: TRANSFORM. |
TypeDefinitionReference |
getTypeDefinitionReference()
Gets the object for the association that plays role: TYPE_DEFINITION_REFERENCE. |
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. |
int |
hashCode()
Returns a hash code for this object based upon its ObjectIdentifier . |
boolean |
hasTransform()
Returns whether or not this member link has a transform. |
protected void |
initialize(EPMDocument usedBy,
EPMDocumentMaster uses)
|
protected void |
initialize(EPMDocument usedBy,
EPMDocumentMaster uses,
String asStoredChildName,
int depType)
Supports initialization, following construction of an instance. |
boolean |
isHasIBAValues()
Gets the value of the attribute: HAS_IBAVALUES. |
boolean |
isPlaced()
Gets the value of the attribute: PLACED. |
boolean |
isRequired()
Gets the value of the attribute: REQUIRED. |
boolean |
isSuppressed()
Gets the value of the attribute: SUPPRESSED. |
private void |
nameValidate(String a_Name)
|
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 |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
void |
readExternal(PersistentRetrieveIfc input)
Used by Persistent Data Service to populate the persistent attributes of this class from a persistent store. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(EPMMemberLink thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
void |
setAsStoredChildName(String a_AsStoredChildName)
Sets the value of the attribute: AS_STORED_CHILD_NAME. |
void |
setAttributeContainer(AttributeContainer a_AttributeContainer)
Sets the object for the association that plays role: ATTRIBUTE_CONTAINER. |
void |
setCompLayerIdx(int a_CompLayerIdx)
Sets the value of the attribute: COMP_LAYER_IDX. |
void |
setCompNumber(int a_CompNumber)
Sets the value of the attribute: COMP_NUMBER. |
void |
setCompRevNumber(int a_CompRevNumber)
Sets the value of the attribute: COMP_REV_NUMBER. |
void |
setDepType(int a_DepType)
Sets the value of the attribute: DEP_TYPE. |
protected void |
setHasIBAValues(boolean a_HasIBAValues)
Sets the value of the attribute: HAS_IBAVALUES. |
void |
setIdentifier(int a_Identifier)
Sets the identifier on this EPMMemberLink. |
void |
setIdentifier(Integer a_Identifier)
Sets the value of the attribute: IDENTIFIER. |
void |
setName(String a_Name)
Sets the value of the attribute: NAME. |
void |
setPlaced(boolean a_Placed)
Sets the value of the attribute: PLACED. |
void |
setQuantity(Quantity a_Quantity)
Sets the object for the association that plays role: QUANTITY. |
void |
setReferenceControl(EPMCADReferenceControl a_ReferenceControl)
Sets the object for the association that plays role: REFERENCE_CONTROL. |
void |
setRequired(boolean a_Required)
Sets the value of the attribute: REQUIRED. |
void |
setSuppressed(boolean a_Suppressed)
Sets the value of the attribute: SUPPRESSED. |
void |
setTransform(Transform a_Transform)
Sets the object for the association that plays role: TRANSFORM. |
void |
setTypeDefinitionReference(TypeDefinitionReference a_TypeDefinitionReference)
Sets the object for the association that plays role: TYPE_DEFINITION_REFERENCE. |
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 |
setUsedBy(Iterated usedBy)
Sets the object for the association that plays role: USED_BY_ROLE. |
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. |
private void |
typeDefinitionReferenceValidate(TypeDefinitionReference a_TypeDefinitionReference)
|
private void |
uniqueLinkIDValidate(long a_UniqueLinkID)
|
private void |
uniqueNDIdValidate(String a_UniqueNDId)
|
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
void |
writeExternal(PersistentStoreIfc output)
Used by Persistent Data Service to obtain the values of the persistent attributes of this class, so they can be written to a persistent store. |
Methods inherited from class wt.vc.struct.IteratedUsageLink |
getUsedBy, getUses, readVersion |
Methods inherited from class wt.fc.WTObject |
finalize, getClassInfo, getCreateTimestamp, getDisplayIdentifier, getDisplayIdentity, getDisplayType, getIdentity, getModifyTimestamp, getPersistInfo, getType, initialize, readVersion, setPersistInfo, toString |
Methods inherited from class java.lang.Object |
clone, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface wt.fc.Persistable |
getIdentity, getPersistInfo, getType, setPersistInfo |
Methods inherited from interface wt.fc.NetFactor |
getClassInfo |
Methods inherited from interface wt.fc.BinaryLink |
getLinkInfo, getObject, getOtherObject, getRole, getRoleAObject, getRoleAObjectId, getRoleAObjectRef, getRoleBObject, getRoleBObjectId, getRoleBObjectRef, setRoleAObject, setRoleAObjectRef, setRoleBObject, setRoleBObjectRef |
Methods inherited from interface wt.fc.Link |
appendJoinCriteria, appendRoleCriteria, getAllObjects, getJoinValues, getRoleIdName, getRoleObject, setRoleObject |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
public static final String USED_BY_ROLE
public static final String USES_ROLE
public static final String SUPPRESSED
private boolean suppressed
public static final String NAME
private static int NAME_UPPER_LIMIT
private String name
public static final String IDENTIFIER
private Integer identifier
public static final String PLACED
private boolean placed
public static final String COMP_NUMBER
private int compNumber
public static final String COMP_REV_NUMBER
private int compRevNumber
public static final String COMP_LAYER_IDX
private int compLayerIdx
public static final String TRANSFORM
private Transform transform
public static final String REFERENCE_CONTROL
private EPMCADReferenceControl referenceControl
public static final String QUANTITY
private Quantity quantity
private static int AS_STORED_CHILD_NAME_UPPER_LIMIT
private String asStoredChildName
private int depType
private boolean required
private long uniqueLinkID
private static int UNIQUE_NDID_UPPER_LIMIT
private String uniqueNDId
private boolean hasIBAValues
private TypeDefinitionReference typeDefinitionReference
private AttributeContainer theAttributeContainer
private Vector usesOccurrenceVector
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
private static final String EPMRESOURCE
public static final long R70_EXTERNALIZATION_VERSION_UID
Constructor Detail |
public EPMMemberLink()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class IteratedUsageLink
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class IteratedUsageLink
input
-
IOException
ClassNotFoundException
protected boolean readVersion(EPMMemberLink thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
public void writeExternal(PersistentStoreIfc output) throws SQLException, DatastoreException
(Not intended for general use.)
Supported API: false
writeExternal
in interface ObjectMappable
writeExternal
in class IteratedUsageLink
output
-
SQLException
DatastoreException
public void readExternal(PersistentRetrieveIfc input) throws SQLException, DatastoreException
(Not intended for general
use.)
Supported API: false
readExternal
in interface ObjectMappable
readExternal
in class IteratedUsageLink
input
-
SQLException
DatastoreException
public void setUsedBy(Iterated usedBy) throws WTPropertyVetoException
setUsedBy
in class IteratedUsageLink
usedBy
-
WTPropertyVetoException
public void setUses(Mastered uses) throws WTPropertyVetoException
setUses
in class IteratedUsageLink
uses
-
WTPropertyVetoException
public String getConceptualClassname()
getConceptualClassname
in interface NetFactor
public boolean isSuppressed()
public void setSuppressed(boolean a_Suppressed) throws WTPropertyVetoException
a_Suppressed
-
WTPropertyVetoException
public String getName()
public void setName(String a_Name) throws WTPropertyVetoException
a_Name
-
WTPropertyVetoException
private void nameValidate(String a_Name) throws WTPropertyVetoException
a_Name
-
WTPropertyVetoException
public Integer getIdentifier()
public void setIdentifier(Integer a_Identifier) throws WTPropertyVetoException
a_Identifier
-
WTPropertyVetoException
public boolean isPlaced()
public void setPlaced(boolean a_Placed) throws WTPropertyVetoException
a_Placed
-
WTPropertyVetoException
public int getCompNumber()
public void setCompNumber(int a_CompNumber) throws WTPropertyVetoException
a_CompNumber
-
WTPropertyVetoException
public int getCompRevNumber()
public void setCompRevNumber(int a_CompRevNumber) throws WTPropertyVetoException
a_CompRevNumber
-
WTPropertyVetoException
public int getCompLayerIdx()
public void setCompLayerIdx(int a_CompLayerIdx) throws WTPropertyVetoException
a_CompLayerIdx
-
WTPropertyVetoException
public Transform getTransform()
public void setTransform(Transform a_Transform) throws WTPropertyVetoException
a_Transform
-
WTPropertyVetoException
public EPMCADReferenceControl getReferenceControl()
public void setReferenceControl(EPMCADReferenceControl a_ReferenceControl) throws WTPropertyVetoException
a_ReferenceControl
-
WTPropertyVetoException
public 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
-
WTException
public 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 EPMObject
checkAttributes
in class WTObject
InvalidAttributeException
public String getAsStoredChildName()
getAsStoredChildName
in interface EPMDependencyLink
public void setAsStoredChildName(String a_AsStoredChildName) throws WTPropertyVetoException
setAsStoredChildName
in interface EPMDependencyLink
a_AsStoredChildName
-
WTPropertyVetoException
private void asStoredChildNameValidate(String a_AsStoredChildName) throws WTPropertyVetoException
a_AsStoredChildName
-
WTPropertyVetoException
public int getDepType()
getDepType
in interface EPMDependencyLink
public void setDepType(int a_DepType) throws WTPropertyVetoException
setDepType
in interface EPMDependencyLink
a_DepType
-
WTPropertyVetoException
public boolean isRequired()
isRequired
in interface EPMDependencyLink
public void setRequired(boolean a_Required) throws WTPropertyVetoException
setRequired
in interface EPMDependencyLink
a_Required
-
WTPropertyVetoException
public long getUniqueLinkID()
getUniqueLinkID
in interface EPMDependencyLink
public void setUniqueLinkID(long a_UniqueLinkID) throws WTPropertyVetoException
setUniqueLinkID
in interface EPMDependencyLink
a_UniqueLinkID
-
WTPropertyVetoException
private void uniqueLinkIDValidate(long a_UniqueLinkID) throws WTPropertyVetoException
a_UniqueLinkID
-
WTPropertyVetoException
public String getUniqueNDId()
getUniqueNDId
in interface EPMDependencyLink
public void setUniqueNDId(String a_UniqueNDId) throws WTPropertyVetoException
setUniqueNDId
in interface EPMDependencyLink
a_UniqueNDId
-
WTPropertyVetoException
private void uniqueNDIdValidate(String a_UniqueNDId) throws WTPropertyVetoException
a_UniqueNDId
-
WTPropertyVetoException
public boolean isHasIBAValues()
The reason for this flag is to improve performance by significantly
reducing the number of IBA related queries. Querying for IBA values
is expensive. In practice, only a very small percentage of EPM Dependency
links will ever have IBA values.
Supported API: false
isHasIBAValues
in interface EPMDependencyLink
protected void setHasIBAValues(boolean a_HasIBAValues)
The reason for this flag is to improve performance by significantly
reducing the number of IBA related queries. Querying for IBA values
is expensive. In practice, only a very small percentage of EPM Dependency
links will ever have IBA values.
Supported API: false
a_HasIBAValues
- public 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 EPMObject
public 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 EPMObject
public TypeDefinitionReference getTypeDefinitionReference()
getTypeDefinitionReference
in interface Typed
public void setTypeDefinitionReference(TypeDefinitionReference a_TypeDefinitionReference) throws WTPropertyVetoException
setTypeDefinitionReference
in interface Typed
a_TypeDefinitionReference
-
WTPropertyVetoException
private void typeDefinitionReferenceValidate(TypeDefinitionReference a_TypeDefinitionReference) throws WTPropertyVetoException
a_TypeDefinitionReference
-
WTPropertyVetoException
public AttributeContainer getAttributeContainer()
getAttributeContainer
in interface IBAHolder
public void setAttributeContainer(AttributeContainer a_AttributeContainer)
setAttributeContainer
in interface IBAHolder
a_AttributeContainer
- public Vector getUsesOccurrenceVector()
Vector
contains UsesOccurrence
s, 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 OccurrenceableLink
public void setUsesOccurrenceVector(Vector a_UsesOccurrenceVector)
Vector
contains UsesOccurrence
s, 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 OccurrenceableLink
a_UsesOccurrenceVector
- public boolean equals(Object obj)
ObjectIdentifier
s.
Changed or stale copies are still considered equal by this method.
Delegates to PersistenceHelper.equals(Persistable,Object)
.
Warning: Certain core Windchill operations may depend upon
equals
being ObjectIdentifier
-based. Changes
to the default implementation should be done with care, if at all.
Supported API: false
equals
in class IteratedUsageLink
obj
-
public int hashCode()
ObjectIdentifier
.
Delegates to PersistenceHelper.hashCode(Persistable)
.
Warning: Certain core Windchill operations may depend upon
hashCode
being ObjectIdentifier-based
. Changes
to the default implementation should be done with care, if at all.
Supported API: false
hashCode
in class IteratedUsageLink
protected void initialize(EPMDocument usedBy, EPMDocumentMaster uses) throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |