com.ptc.epm.commands.util
Class ComponentHelper

java.lang.Object
  extended bycom.ptc.epm.commands.util.ComponentHelper

public class ComponentHelper
extends Object


Nested Class Summary
protected static class ComponentHelper.ComponentEntry
           
protected static class ComponentHelper.RDEntry
           
 
Field Summary
private  ECADAssembly assembly
           
private  HashMap componentList
           
private  WTContainerRef containerRef
           
private  ECADAssemblyHelper.AssemblyOptions options
           
private  HashMap RDList
           
private  ECADTransaction transaction
           
 
Constructor Summary
protected ComponentHelper(ECADAssembly assembly, ECADAssemblyHelper.AssemblyOptions myOptions, ECADTransaction transaction)
           
 
Method Summary
protected  EPMMemberLink addComponent(ECADDocument component, int quantity)
           
protected  void addNewComponents()
           
protected  void addNewReferenceDesignators()
           
protected  void buildRDTable(Vector refDesVector)
           
protected  void createReferenceDesignator(String name, String componentNumber)
           
protected  void deleteReferenceDesignator(EPMUsesOccurrence designator)
           
protected  Vector getNewComponentNumbers()
           
protected  EPMMemberLink removeComponent(ECADDocument component)
           
protected  void updateAssemblyComponents()
           
static void updateAssemblyComponents(ECADAssembly assembly, Vector refDesVector, ECADAssemblyHelper.AssemblyOptions myOptions, ECADTransaction transaction)
           
static void updateAssemblyComponents(ECADDesign design, Vector components, ECADAssemblyHelper.AssemblyOptions myOptions, ECADTransaction transaction)
           
protected  void updateComponents()
           
protected  EPMMemberLink updateQuantity(ECADDocument component, int newQuantity)
           
protected  void updateReferenceDesignator(EPMUsesOccurrence designator, String componentNumber)
           
protected  void updateReferenceDesignators()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

assembly

private ECADAssembly assembly

componentList

private HashMap componentList

RDList

private HashMap RDList

transaction

private ECADTransaction transaction

containerRef

private WTContainerRef containerRef

options

private ECADAssemblyHelper.AssemblyOptions options
Constructor Detail

ComponentHelper

protected ComponentHelper(ECADAssembly assembly,
                          ECADAssemblyHelper.AssemblyOptions myOptions,
                          ECADTransaction transaction)
Method Detail

updateAssemblyComponents

public static void updateAssemblyComponents(ECADDesign design,
                                            Vector components,
                                            ECADAssemblyHelper.AssemblyOptions myOptions,
                                            ECADTransaction transaction)
                                     throws WTException,
                                            WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException

updateAssemblyComponents

public static void updateAssemblyComponents(ECADAssembly assembly,
                                            Vector refDesVector,
                                            ECADAssemblyHelper.AssemblyOptions myOptions,
                                            ECADTransaction transaction)
                                     throws WTException,
                                            WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException

updateAssemblyComponents

protected void updateAssemblyComponents()
                                 throws WTException,
                                        WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException

addNewComponents

protected void addNewComponents()
                         throws WTException,
                                WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException

updateComponents

protected void updateComponents()
                         throws WTException
Throws:
WTException

updateReferenceDesignators

protected void updateReferenceDesignators()
                                   throws WTException
Throws:
WTException

addNewReferenceDesignators

protected void addNewReferenceDesignators()
                                   throws WTException
Throws:
WTException

getNewComponentNumbers

protected Vector getNewComponentNumbers()

addComponent

protected EPMMemberLink addComponent(ECADDocument component,
                                     int quantity)
                              throws WTException
Throws:
WTException

updateQuantity

protected EPMMemberLink updateQuantity(ECADDocument component,
                                       int newQuantity)
                                throws WTException
Throws:
WTException

removeComponent

protected EPMMemberLink removeComponent(ECADDocument component)
                                 throws WTException
Throws:
WTException

createReferenceDesignator

protected void createReferenceDesignator(String name,
                                         String componentNumber)
                                  throws WTException
Throws:
WTException

updateReferenceDesignator

protected void updateReferenceDesignator(EPMUsesOccurrence designator,
                                         String componentNumber)
                                  throws WTException
Throws:
WTException

deleteReferenceDesignator

protected void deleteReferenceDesignator(EPMUsesOccurrence designator)
                                  throws WTException
Throws:
WTException

buildRDTable

protected void buildRDTable(Vector refDesVector)