|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.hli.ecad.ECADAssembly
The ECADAssembly class holds the Windchill objects which taken together represent an assembly. It includes an ECADDocument for: the assembly, a table of all ECADDocuments used or referenced by the assembly, and referenceDesignators used by the assembly.
The iterations of the assembly are stored as a EPMAsStoredConfig containing all the EPMDocuments related to that iteration.
When an assembly is checked out, an EPMWorkspace is created to hold the current objects until checkin.
Supported API: true
Extendable: false
Field Summary | |
private ECADDocument |
assemblyDoc
|
private ECADDesign |
design
|
private HashMap |
documents
|
private static String |
ECADHLIRESOURCE
|
private HashMap |
referenceDesignators
|
Constructor Summary | |
protected |
ECADAssembly()
|
protected |
ECADAssembly(ECADDocument assemblyDoc)
|
Method Summary | |
void |
addComponentDoc(ECADDocument componentDoc)
Add the given ECADDocument provided it has the DocumentType "COMPONENT" Supported API: false |
void |
addContentDoc(ECADDocument contentDoc)
Add a CONTENT ECADDocument to the assembly Supported API: false |
void |
addReferenceDesignator(EPMUsesOccurrence designator)
Add the given ReferenceDesignator Supported API: false |
static String |
generateWorkspaceName(EPMDocument epmDoc)
Static method to return the name to be used for the EPMWorkspace to be used while this document is checkedout. |
ECADDocument |
getAssemblyDoc()
Return the ECADDocument representing the assembly Supported API: true |
String |
getAuthoringApplication()
Return the Authoring Application of the assembly Supported API: true |
Baseline |
getBaseline()
Return the Baseline in use. |
ECADDocument |
getBoardDoc()
Return the ECADDocument representing the board Supported API: true |
ECADDocument |
getComponentDoc(String number)
Return the ECADDocument representing the Component document with the given number. |
Vector |
getComponentDocs()
Return the a Vector of ECADDocuments representing all the Components Supported API: true |
ECADDocument |
getContentDoc(String number)
Get the ECADDocument with the given number which is also a CONTENT Document. |
Vector |
getContentDocs()
Retrieve all CONTENT documents. |
String |
getDescription()
Return the description of the ECADAssembly Supported API: true |
ECADDesign |
getDesign()
Get the ECADDesign for this assembly Supported API: false |
EPMAsStoredConfig |
getEPMAsStoredConfig()
Return the EPMAsStoredConfig representing the stored ECADAssembly Supported API: false |
static EPMAsStoredConfig |
getEPMAsStoredConfig(String number,
String version,
WTContainerRef containerRef)
|
EPMDocument[] |
getEPMDocuments()
Return an array of EPMDocuments contained in the Assembly Supported API: false |
Folder |
getFolder()
Return the Folder for the ECADAssembly Supported API: true |
String |
getIteration()
Return the iteration of the assembly Supported API: true |
String |
getLifeCycleName()
Get the LifeCycle name for the ECADAssembly Supported API: true |
String |
getName()
Return the name of the ECADAssembly Supported API: true |
String |
getNumber()
Return the number of the ECADAssembly Supported API: true |
static ECADAssembly |
getOldAssembly(String number,
String version,
WTContainerRef containerRef)
Static method to return the ECADAssembly with the given number and version if it exists. |
EPMUsesOccurrence |
getReferenceDesignator(String name)
Return the named ReferenceDesignator Supported API: true |
Vector |
getReferenceDesignators()
Return a Vector of all ReferenceDesignators Supported API: true |
ECADDocument |
getSchematicDoc()
Return the ECADDocument representing the schematic Supported API: true |
static EPMDocument |
getSource(EPMDocument assembly)
Return the EPMDocument which represents the "Container" for the given EPMDocument Supported API: false |
ECADDocument |
getSourceDoc()
Return the ECADDocument representing the source Supported API: true |
String |
getTargetRevision()
Get the Initial Revision for this assembly Supported API: false |
private String |
getTeamTemplateName()
Get the name of the Team Template for the ECADAssembly Supported API: false |
QueryResult |
getUsesOccurrences(UsesOccurrenceContext context)
Return a QueryResult of UsesOccurrences for the given object Supported API: false |
String |
getVersion()
Return the version of the assembly Supported API: true |
EPMWorkspace |
getWorkspace()
Return the EPMWorkspace which holds the current checked out assembly. |
static EPMWorkspace |
getWorkspace(String number,
String version,
WTContainerRef containerRef)
|
boolean |
isCheckedOut()
Check the checkout status of the Assembly Supported API: true |
static boolean |
isCheckedOut(EPMDocument document)
|
protected void |
loadDocuments()
|
protected void |
loadLinks()
|
protected void |
loadReferenceDesignators()
|
protected void |
loadRefLinks(ECADDocument ecadDoc)
|
protected void |
loadUses()
|
protected static ManagedBaseline |
lookupBaseline(EPMDocument epmDoc)
|
protected EPMCheckpoint |
lookupCheckpoint()
|
static ECADAssembly |
newECADAssembly(ECADDesign design,
ECADDocument assemblyDoc)
Factory method to construct a new ECADAssembly containing the given ECADDocuments. |
static ECADAssembly |
newECADAssembly(ECADDocument assemblyDoc)
|
void |
removeComponentDoc(ECADDocument componentDoc)
Remove the given ECADDocument provided it has the DocumentType "COMPONENT" Supported API: false |
void |
removeContentDoc(ECADDocument contentDoc)
Remove a CONTENT ECADDocument from the assembly Supported API: false |
void |
removeReferenceDesignator(EPMUsesOccurrence designator)
Remove the given ReferenceDesignator Supported API: false |
void |
setDescription(String newDescription)
Set the description of the ECADAssembly Supported API: true |
protected void |
setDesign(ECADDesign _design)
Set the ECADDesign for this assembly Supported API: false |
void |
setLifeCycle(String lifeCycleName,
WTContainerRef containerRef)
Set the LifeCycle name for the ECADAssembly Supported API: true |
void |
setSchematicDoc(ECADDocument schematicDoc)
Set the ECADDocument representing the schematic This will replace the current schematic document if one exists. |
void |
setTeamTemplate(String templateName)
Set the Team Template for the ECADAssembly Supported API: false |
String |
toString()
Override of the toString method for outputting the ECADAssembly Supported API: false |
protected void |
update(ECADTransaction transaction)
Update the assembly using the results of the transaction Supported API: false |
protected void |
validateNumber(String newNumber)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String ECADHLIRESOURCE
private ECADDesign design
private ECADDocument assemblyDoc
private HashMap documents
private HashMap referenceDesignators
Constructor Detail |
protected ECADAssembly() throws WTException
protected ECADAssembly(ECADDocument assemblyDoc) throws WTException
Method Detail |
public ECADDesign getDesign()
public ECADDocument getAssemblyDoc()
public ECADDocument getBoardDoc()
public String getTargetRevision()
public ECADDocument getSourceDoc()
public ECADDocument getSchematicDoc()
public void setSchematicDoc(ECADDocument schematicDoc)
public ECADDocument getContentDoc(String number)
public Vector getContentDocs()
public void addContentDoc(ECADDocument contentDoc) throws WTException
WTException
public void removeContentDoc(ECADDocument contentDoc)
public boolean isCheckedOut() throws WTException
WTException
public static boolean isCheckedOut(EPMDocument document) throws WTException
WTException
public EPMWorkspace getWorkspace()
public ECADDocument getComponentDoc(String number)
public Vector getComponentDocs()
public void addComponentDoc(ECADDocument componentDoc) throws WTException
WTException
public void removeComponentDoc(ECADDocument componentDoc)
public EPMUsesOccurrence getReferenceDesignator(String name)
public Vector getReferenceDesignators()
public void addReferenceDesignator(EPMUsesOccurrence designator)
public void removeReferenceDesignator(EPMUsesOccurrence designator)
public EPMAsStoredConfig getEPMAsStoredConfig() throws WTException
WTException
public Baseline getBaseline() throws WTException
WTException
public String getNumber()
public String getName()
public String getDescription()
public void setDescription(String newDescription) throws WTPropertyVetoException
WTPropertyVetoException
public String getVersion()
public String getIteration()
public String getAuthoringApplication()
private String getTeamTemplateName()
public void setTeamTemplate(String templateName) throws WTPropertyVetoException, WTException
WTPropertyVetoException,
- WTException
WTPropertyVetoException
WTException
public String getLifeCycleName()
public void setLifeCycle(String lifeCycleName, WTContainerRef containerRef) throws WTPropertyVetoException, WTException
WTPropertyVetoException,
- WTException
WTPropertyVetoException
WTException
public Folder getFolder() throws WTException
WTException
public static ECADAssembly newECADAssembly(ECADDesign design, ECADDocument assemblyDoc) throws WTException
WTException
public static ECADAssembly newECADAssembly(ECADDocument assemblyDoc) throws WTException
WTException
public static ECADAssembly getOldAssembly(String number, String version, WTContainerRef containerRef) throws WTException
WTException
public String toString()
public EPMDocument[] getEPMDocuments()
public static EPMDocument getSource(EPMDocument assembly) throws WTException
WTException
public QueryResult getUsesOccurrences(UsesOccurrenceContext context) throws WTException
WTException
public static String generateWorkspaceName(EPMDocument epmDoc)
public static EPMAsStoredConfig getEPMAsStoredConfig(String number, String version, WTContainerRef containerRef)
public static EPMWorkspace getWorkspace(String number, String version, WTContainerRef containerRef)
protected void update(ECADTransaction transaction)
protected void setDesign(ECADDesign _design)
protected EPMCheckpoint lookupCheckpoint() throws WTException
WTException
protected static ManagedBaseline lookupBaseline(EPMDocument epmDoc) throws WTException
WTException
protected void loadDocuments() throws WTException
WTException
protected void loadLinks() throws WTException
WTException
protected void loadRefLinks(ECADDocument ecadDoc) throws WTException
WTException
protected void loadReferenceDesignators() throws WTException
WTException
protected void validateNumber(String newNumber) throws WTException
WTException
protected void loadUses() throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |