|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectwt.fc.WTObject
wt.enterprise.RevisionControlled
wt.part.WTPart
public class WTPart
This reference implementation of a PartVersion represents
a snapshot of the changeable aspects of a part, is managed by WTPartService and has an associated WTPartMaster which represents
the unchanging aspects of this part. Many of the significant associations
of parts happen at the WTPartMaster level.
Associations:
WTPartUsageLink links this WTPart to a WTPartMaster
that it uses (actually it uses one of the WTParts associated
with the WTPartMaster based on a config spec)
WTPartSubstituteLink links a WTPartMaster to
a WTPartUsageLink making it (actually one of its WTParts
based on a config spec) a substitute part for that particular usage
WTPartAlternateLink links one WTPartMaster to
another that is an alternate part for any usage (alternates are NOT defined
at this WTPart level)
By virtue of its being RevisionControlled it can
be:
WTPartConfigSpec.
Much of the version/iteration functionality comes from being RevisionControlled.
WTPartUsageLink links to a WTPartMaster that is a component
of this part
WTPartReferenceLink links to a WTDocumentMaster
WTPartDescribeLink links to a WTDocument
Use the newWTPart static factory method(s), not the WTPart
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: true
for information on check in and check out,
wt.vc.views,
wt.vc.baseline,
wt.effectivity,
"Making Parts Content Holders" in Customizer's Guide",
RevisionControlled,
"Part Abstractions" in "Application Developer's Guide",
Serialized Form| Field Summary | |
|---|---|
static String |
CONTRACT_NUMBER
Label for the attribute; Attribute specific to the Windchill A&D module Supported API: true |
static String |
DEFAULT_TRACE_CODE
Label for the attribute; The default unit of measure for the part. |
static String |
DEFAULT_UNIT
Label for the attribute; The default unit of measure for the part. |
static String |
END_ITEM
Label for the attribute; Indicates if the part should be treated as an end item. |
static String |
GENERIC_TYPE
Label for the attribute; Indicates if this is a Generic Type WTPart. |
static String |
JOB_AUTHORIZATION_NUMBER
Label for the attribute; Attribute specific to the Windchill A&D module Supported API: true |
static String |
NAME
Label for the attribute; The name of the part -- the name a part is commonly refered to by, such as "piston". |
static String |
NUMBER
Label for the attribute; The number attribute represents the number for this part and all of its versions. |
static String |
PART_TYPE
Label for the attribute. |
static String |
PHASE
Label for the attribute; Attribute specific to the Windchill A&D module Supported API: true |
static String |
SOURCE
Label for the attribute. |
| Fields inherited from class wt.enterprise.RevisionControlled |
|---|
MASTER |
| Fields inherited from interface wt.org.OrganizationOwnedVersion |
|---|
MASTER, MASTER_REFERENCE |
| Fields inherited from interface wt.org.OrganizationOwned |
|---|
ORGANIZATION, ORGANIZATION_CODING_SYSTEM, ORGANIZATION_NAME, ORGANIZATION_UNIQUE_IDENTIFIER |
| Fields inherited from interface wt.configuration.ConfiguredVersion |
|---|
MASTER, MASTER_REFERENCE |
| Fields inherited from interface wt.generic.Genericizable |
|---|
MASTER, MASTER_REFERENCE |
| Method Summary | |
|---|---|
String |
getContractNumber()
Gets the value of the attribute: CONTRACT_NUMBER. |
TraceCode |
getDefaultTraceCode()
Gets the value of the attribute: DEFAULT_TRACE_CODE. |
QuantityUnit |
getDefaultUnit()
Gets the value of the attribute: DEFAULT_UNIT. |
wt.generic.GenericType |
getGenericType()
Gets the value of the attribute: GENERIC_TYPE. |
String |
getIdentity()
Returns the master identity plus the version identity for this part in the form of " |
String |
getJobAuthorizationNumber()
Gets the value of the attribute: JOB_AUTHORIZATION_NUMBER. |
String |
getName()
Gets the value of the attribute: NAME. |
String |
getNumber()
Gets the value of the attribute: NUMBER. |
WTOrganization |
getOrganization()
Gets the value of the attribute: ORGANIZATION. |
String |
getOrganizationCodingSystem()
Gets the value of the attribute: ORGANIZATION_CODING_SYSTEM. |
String |
getOrganizationName()
Gets the value of the attribute: ORGANIZATION_NAME. |
String |
getOrganizationUniqueIdentifier()
Gets the value of the attribute: ORGANIZATION_UNIQUE_IDENTIFIER. |
PartType |
getPartType()
Gets the object for the association that plays role: PART_TYPE. |
String |
getPhase()
Gets the value of the attribute: PHASE. |
Source |
getSource()
Gets the object for the association that plays role: SOURCE. |
protected void |
initialize(String number,
String name)
Supports initialization, following construction of an instance. |
protected void |
initialize(String number,
String name,
QuantityUnit defaultUnit)
Supports initialization, following construction of an instance. |
boolean |
isEndItem()
Gets the value of the attribute: END_ITEM. |
static WTPart |
newWTPart()
Construct a new WTPart (and its WTPartMaster). |
static WTPart |
newWTPart(String number,
String name)
Constructs a new WTPart and sets the WTPartMaster's name and number to the passed-in values. |
static WTPart |
newWTPart(String number,
String name,
QuantityUnit defaultUnit)
Constructs a new WTPart and sets the WTPartMaster's name and number to the passed-in values. |
void |
setContractNumber(String a_ContractNumber)
Sets the value of the attribute: CONTRACT_NUMBER. |
void |
setDefaultTraceCode(TraceCode a_DefaultTraceCode)
Sets the value of the attribute: DEFAULT_TRACE_CODE. |
void |
setDefaultUnit(QuantityUnit a_DefaultUnit)
Sets the value of the attribute: DEFAULT_UNIT. |
void |
setEndItem(boolean a_EndItem)
Sets the value of the attribute: END_ITEM. |
void |
setGenericType(wt.generic.GenericType a_GenericType)
Sets the value of the attribute: GENERIC_TYPE. |
void |
setJobAuthorizationNumber(String a_JobAuthorizationNumber)
Sets the value of the attribute: JOB_AUTHORIZATION_NUMBER. |
void |
setMaster(Mastered a_Master)
Sets the object for the association that plays role: MASTER. |
void |
setName(String a_Name)
Sets the value of the attribute: NAME. |
void |
setNumber(String a_Number)
Sets the value of the attribute: NUMBER. |
void |
setOrganization(WTOrganization a_Organization)
Sets the value of the attribute: ORGANIZATION. |
void |
setPartType(PartType a_PartType)
Sets the object for the association that plays role: PART_TYPE. |
void |
setPhase(String a_Phase)
Sets the value of the attribute: PHASE. |
void |
setSource(Source a_Source)
Sets the object for the association that plays role: SOURCE. |
| Methods inherited from class wt.enterprise.RevisionControlled |
|---|
getControlBranch, getCreatorEMail, getCreatorFullName, getCreatorName, getIterationIdentifier, getIterationNote, getMaster, getMasterReference, getModifier, getModifierEMail, getModifierFullName, getModifierName, isLatestIteration, setControlBranch, setMasterReference |
| 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 |
| Methods inherited from interface wt.org.OrganizationOwnedVersion |
|---|
getMaster, getMasterReference |
| Methods inherited from interface wt.configuration.ConfiguredVersion |
|---|
getMaster, getMasterReference, setMasterReference |
| Methods inherited from interface wt.generic.Genericizable |
|---|
getMaster, getMasterReference, setMasterReference |
| Field Detail |
|---|
public static final String NUMBER
public static final String NAME
public static final String DEFAULT_UNIT
public static final String END_ITEM
public static final String DEFAULT_TRACE_CODE
public static final String GENERIC_TYPE
public static final String JOB_AUTHORIZATION_NUMBER
public static final String CONTRACT_NUMBER
public static final String PHASE
public static final String PART_TYPE
public static final String SOURCE
| Method Detail |
|---|
public String getNumber()
public void setNumber(String a_Number)
throws WTPropertyVetoException
a_Number -
WTPropertyVetoExceptionpublic String getName()
public void setName(String a_Name)
throws WTPropertyVetoException
a_Name -
WTPropertyVetoExceptionpublic QuantityUnit getDefaultUnit()
public void setDefaultUnit(QuantityUnit a_DefaultUnit)
throws WTPropertyVetoException
a_DefaultUnit -
WTPropertyVetoExceptionpublic boolean isEndItem()
public void setEndItem(boolean a_EndItem)
throws WTPropertyVetoException
a_EndItem -
WTPropertyVetoExceptionpublic TraceCode getDefaultTraceCode()
public void setDefaultTraceCode(TraceCode a_DefaultTraceCode)
throws WTPropertyVetoException
a_DefaultTraceCode -
WTPropertyVetoExceptionpublic wt.generic.GenericType getGenericType()
public void setGenericType(wt.generic.GenericType a_GenericType)
throws WTPropertyVetoException
a_GenericType -
WTPropertyVetoExceptionpublic String getJobAuthorizationNumber()
public void setJobAuthorizationNumber(String a_JobAuthorizationNumber)
throws WTPropertyVetoException
a_JobAuthorizationNumber -
WTPropertyVetoExceptionpublic String getContractNumber()
public void setContractNumber(String a_ContractNumber)
throws WTPropertyVetoException
a_ContractNumber -
WTPropertyVetoExceptionpublic String getPhase()
public void setPhase(String a_Phase)
throws WTPropertyVetoException
a_Phase -
WTPropertyVetoExceptionpublic PartType getPartType()
public void setPartType(PartType a_PartType)
a_PartType - public Source getSource()
public void setSource(Source a_Source)
a_Source -
public void setMaster(Mastered a_Master)
throws WTPropertyVetoException,
WTException
setMaster in interface ConfiguredVersionsetMaster in interface GenericizablesetMaster in interface IteratedsetMaster in class RevisionControlleda_Master -
WTPropertyVetoException
WTExceptionMastered
public static WTPart newWTPart()
throws WTException
WTException
public static WTPart newWTPart(String number,
String name)
throws WTException
number - name -
WTException
protected void initialize(String number,
String name)
throws WTException
number - name -
WTExceptionpublic String getIdentity()
public static WTPart newWTPart(String number,
String name,
QuantityUnit defaultUnit)
throws WTException
number - name - defaultUnit -
WTException
protected void initialize(String number,
String name,
QuantityUnit defaultUnit)
throws WTException
number - name - defaultUnit -
WTExceptionpublic String getOrganizationUniqueIdentifier()
getOrganizationUniqueIdentifier in interface OrganizationOwnedpublic String getOrganizationCodingSystem()
getOrganizationCodingSystem in interface OrganizationOwnedpublic String getOrganizationName()
getOrganizationName in interface OrganizationOwnedpublic WTOrganization getOrganization()
getOrganization in interface OrganizationOwned
public void setOrganization(WTOrganization a_Organization)
throws WTPropertyVetoException
a_Organization -
WTPropertyVetoException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||