com.ptc.epm.commands
Class XMLtoWCUtility

java.lang.Object
  extended bycom.ptc.epm.commands.XMLtoWCUtility

public class XMLtoWCUtility
extends Object


Field Summary
private static String ECADRESOURCE
           
 
Constructor Summary
XMLtoWCUtility()
           
 
Method Summary
protected static ECADAssembly addAssembly(ECADDesign design, ECADXMLDocument assyXDoc, ECADAssemblyHelper.AssemblyOptions options, ECADTransaction transaction)
           
protected static ECADDocument buildECADDocument(ECADXMLDocument ecadXDoc, String ecad_author, String docType, WTContainerRef containerRef)
           
static void checkinAssembly(ECADDesign design, File zipFile, ECADAssemblyHelper.AssemblyOptions options, ECADXMLDocument assyXDoc, ECADTransaction transaction, HashMap checkedOutItems, HashMap itemsToCheckin, HashMap deferredMoves)
           
static void checkinDesignDoc(ECADDesign design, File zipFile, ECADXMLDocument contentXDoc, ECADTransaction transaction, HashMap checkedOutItems, HashMap itemsToCheckin)
          DesignDoc can be any major ECADDocument (Design, Assembly, Board or Schematic) and has the following properties: - Can contain Content - Can contain Describes links - Can contain Attributes - Can contain FileGroups - Is possible for any combination of the doc and/or its File Groups to not be checked out.
protected static void listComponents(Vector components)
           
protected static void listOptions(ECADAssemblyHelper.AssemblyOptions options)
           
static void updateComponents(ECADXMLDocument elmXDoc, ECADDocument elm_doc)
           
static void updateContent(ECADXMLDocument elmXDoc, ECADDocument elm_doc)
           
protected static boolean validateOptions(ECADAssemblyHelper.AssemblyOptions options)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ECADRESOURCE

private static final String ECADRESOURCE
See Also:
Constant Field Values
Constructor Detail

XMLtoWCUtility

public XMLtoWCUtility()
Method Detail

buildECADDocument

protected static ECADDocument buildECADDocument(ECADXMLDocument ecadXDoc,
                                                String ecad_author,
                                                String docType,
                                                WTContainerRef containerRef)
                                         throws WTException
Throws:
WTException

updateContent

public static void updateContent(ECADXMLDocument elmXDoc,
                                 ECADDocument elm_doc)

updateComponents

public static void updateComponents(ECADXMLDocument elmXDoc,
                                    ECADDocument elm_doc)

listOptions

protected static void listOptions(ECADAssemblyHelper.AssemblyOptions options)

validateOptions

protected static boolean validateOptions(ECADAssemblyHelper.AssemblyOptions options)

listComponents

protected static void listComponents(Vector components)

checkinDesignDoc

public static void checkinDesignDoc(ECADDesign design,
                                    File zipFile,
                                    ECADXMLDocument contentXDoc,
                                    ECADTransaction transaction,
                                    HashMap checkedOutItems,
                                    HashMap itemsToCheckin)
                             throws WTException,
                                    WTPropertyVetoException
DesignDoc can be any major ECADDocument (Design, Assembly, Board or Schematic) and has the following properties: - Can contain Content - Can contain Describes links - Can contain Attributes - Can contain FileGroups - Is possible for any combination of the doc and/or its File Groups to not be checked out. This requires checking of each object to make sure it is a working copy before updating. The DesignDoc and FileGroups will be saved, added to the baseline, checked in and removed from checkedInItems

Throws:
WTException
WTPropertyVetoException

checkinAssembly

public static void checkinAssembly(ECADDesign design,
                                   File zipFile,
                                   ECADAssemblyHelper.AssemblyOptions options,
                                   ECADXMLDocument assyXDoc,
                                   ECADTransaction transaction,
                                   HashMap checkedOutItems,
                                   HashMap itemsToCheckin,
                                   HashMap deferredMoves)
                            throws WTException,
                                   WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException

addAssembly

protected static ECADAssembly addAssembly(ECADDesign design,
                                          ECADXMLDocument assyXDoc,
                                          ECADAssemblyHelper.AssemblyOptions options,
                                          ECADTransaction transaction)
                                   throws WTException,
                                          WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException