com.ptc.epm.commands
Class XMLtoWindchillAdaptor

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

public class XMLtoWindchillAdaptor
extends Object


Field Summary
private  Vector asmXDocVector
           
static String ASSEMBLY_TAG
           
static String BOARD_TAG
           
private  ECADXMLDocument brdXDoc
           
private static String ECADRESOURCE
           
static String msg1
           
static String SCHEMATIC_TAG
           
private  ECADXMLDocument schXDoc
           
private  ECADXMLDocument srcXDoc
           
private  File zipFile
           
 
Constructor Summary
XMLtoWindchillAdaptor(File _xmlFile, File _zipFile)
           
XMLtoWindchillAdaptor(Reader reader)
           
XMLtoWindchillAdaptor(Reader reader, String zipFileName)
           
XMLtoWindchillAdaptor(String xmlFileName, String zipFileName)
           
 
Method Summary
protected  void checkForNeededParts(ECADDesign design, ECADXMLDocument contentXDoc, HashMap checkedOutItems, HashMap partsToCheckout)
           
 boolean checkinSelectedItems(EPMAsStoredConfig storedConfig, Baseline workspaceBaseline, Vector objectsToCheckin)
           
 void createAssembly(WTContainerRef containerRef)
           
static String createNew(Reader reader, String zipFileName)
           
static void delete(Reader reader)
           
 void deleteDesign(ECADDesign design)
           
private static boolean fileIsReady(String fileName)
           
 Vector getAssemblyECADXMLDocumentVector()
           
 ECADAssemblyHelper.AssemblyOptions getAssmOptions(WTContainerRef containerRef)
           
 ECADXMLDocument getBoardECADXMLDocument()
           
 ECADXMLDocument getSchematicECADXMLDocument()
           
 ECADXMLDocument getSourceECADXMLDocument()
           
protected  WTContainerRef getTargetContainer()
           
private  void parseXML(Reader reader)
           
private  void scanParsedData(ECADDesign design, ECADAssemblyHelper.AssemblyOptions options, Vector contentVector, Vector refDesVector)
           
 ECADDesign setup()
           
 
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

ASSEMBLY_TAG

public static final String ASSEMBLY_TAG
See Also:
Constant Field Values

BOARD_TAG

public static final String BOARD_TAG
See Also:
Constant Field Values

SCHEMATIC_TAG

public static final String SCHEMATIC_TAG
See Also:
Constant Field Values

msg1

public static final String msg1
See Also:
Constant Field Values

zipFile

private File zipFile

brdXDoc

private ECADXMLDocument brdXDoc

srcXDoc

private ECADXMLDocument srcXDoc

schXDoc

private ECADXMLDocument schXDoc

asmXDocVector

private Vector asmXDocVector
Constructor Detail

XMLtoWindchillAdaptor

public XMLtoWindchillAdaptor(String xmlFileName,
                             String zipFileName)
                      throws WTException,
                             IOException

XMLtoWindchillAdaptor

public XMLtoWindchillAdaptor(Reader reader)
                      throws WTException,
                             IOException

XMLtoWindchillAdaptor

public XMLtoWindchillAdaptor(File _xmlFile,
                             File _zipFile)
                      throws WTException,
                             IOException

XMLtoWindchillAdaptor

public XMLtoWindchillAdaptor(Reader reader,
                             String zipFileName)
                      throws WTException,
                             IOException
Method Detail

createNew

public static String createNew(Reader reader,
                               String zipFileName)
                        throws WTException
Throws:
WTException

delete

public static void delete(Reader reader)
                   throws WTException
Throws:
WTException

fileIsReady

private static boolean fileIsReady(String fileName)

setup

public ECADDesign setup()
                 throws WTException
Throws:
WTException

parseXML

private void parseXML(Reader reader)
               throws WTException
Throws:
WTException

createAssembly

public void createAssembly(WTContainerRef containerRef)
                    throws WTException
Throws:
WTException

deleteDesign

public void deleteDesign(ECADDesign design)
                  throws WTException
Throws:
WTException

scanParsedData

private void scanParsedData(ECADDesign design,
                            ECADAssemblyHelper.AssemblyOptions options,
                            Vector contentVector,
                            Vector refDesVector)
                     throws WTException
Throws:
WTException

getAssmOptions

public ECADAssemblyHelper.AssemblyOptions getAssmOptions(WTContainerRef containerRef)
                                                  throws WTException
Throws:
WTException

getTargetContainer

protected WTContainerRef getTargetContainer()
                                     throws WTException
Throws:
WTException

getBoardECADXMLDocument

public ECADXMLDocument getBoardECADXMLDocument()

getSchematicECADXMLDocument

public ECADXMLDocument getSchematicECADXMLDocument()

getSourceECADXMLDocument

public ECADXMLDocument getSourceECADXMLDocument()

getAssemblyECADXMLDocumentVector

public Vector getAssemblyECADXMLDocumentVector()

checkinSelectedItems

public boolean checkinSelectedItems(EPMAsStoredConfig storedConfig,
                                    Baseline workspaceBaseline,
                                    Vector objectsToCheckin)
                             throws WTException,
                                    WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException

checkForNeededParts

protected void checkForNeededParts(ECADDesign design,
                                   ECADXMLDocument contentXDoc,
                                   HashMap checkedOutItems,
                                   HashMap partsToCheckout)
                            throws WTException
Throws:
WTException