com.ptc.epm.commands
Class XMLtoWindchillAdaptor
java.lang.Object
com.ptc.epm.commands.XMLtoWindchillAdaptor
- public class XMLtoWindchillAdaptor
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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
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