com.ptc.epm.commands.util
Class PartHelper

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

public class PartHelper
extends Object


Nested Class Summary
static class PartHelper.PartOptions
           
static class PartHelper.PartServer
           
 
Field Summary
(package private) static WTContainerRef _containerRef
           
private static boolean CREATE_PARTS
           
private static String ECADRESOURCE
           
private static List pdmContainers
           
(package private) static boolean SERVER
           
private static String SERVER_CLASS
           
 
Constructor Summary
PartHelper()
           
 
Method Summary
private static EPMBuildRule createBuildRule(EPMDocument document, WTPart part, ECADTransaction transaction)
           
private static EPMDescribeLink createDescribeLink(EPMDocument document, WTPart part, ECADTransaction transaction)
           
protected static WTPart createPart(ECADDocument doc, PartHelperDelegate partDelegate, PartHelper.PartOptions options, ECADTransaction transaction)
           
protected static WTPart createPart(String number, String name, PartHelperDelegate partDelegate, PartHelper.PartOptions options, ECADTransaction transaction)
           
protected static ConfigSpec createPartConfigSpec(WTContainerRef containerRef, View view)
           
static WTPart createPartForDoc(ECADDocument doc, ECADAssemblyHelper.AssemblyOptions options, ECADTransaction transaction)
           
static WTPart[] createPartsForDocs(ECADDocument[] docs, ECADAssemblyHelper.AssemblyOptions options, ECADTransaction transaction)
           
private static WTObject createRule(EPMDocument document, WTPart part, boolean createPassiveLinks, ECADTransaction transaction)
           
static WTContainerRef getContainerRef()
           
protected static String[] getDocumentNumbers(ECADDocument[] docs)
           
protected static Folder getPartsFolder(ECADDocument doc)
           
protected static PartType getPartType(ECADDocument doc)
           
protected static boolean isAutoNumber(WTContainerRef cRef)
           
protected static boolean isSchematic(ECADDocument doc)
           
static WTPart lookupPart(ECADDescribeBy dbLink)
           
protected static QueryResult lookupParts(String[] partNumbers, ConfigSpec configSpec)
           
private static QueryResult lookupParts(String[] docNumbers, View view)
           
static void setContainerRef(WTContainerRef myRef)
           
 
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

CREATE_PARTS

private static final boolean CREATE_PARTS

SERVER_CLASS

private static final String SERVER_CLASS

SERVER

static final boolean SERVER

_containerRef

static WTContainerRef _containerRef

pdmContainers

private static List pdmContainers
Constructor Detail

PartHelper

public PartHelper()
Method Detail

setContainerRef

public static void setContainerRef(WTContainerRef myRef)
                            throws WTException
Throws:
WTException

getContainerRef

public static WTContainerRef getContainerRef()
                                      throws WTException
Throws:
WTException

lookupPart

public static WTPart lookupPart(ECADDescribeBy dbLink)
                         throws WTException
Throws:
WTException

lookupParts

protected static QueryResult lookupParts(String[] partNumbers,
                                         ConfigSpec configSpec)
                                  throws WTException
Throws:
WTException

lookupParts

private static QueryResult lookupParts(String[] docNumbers,
                                       View view)
                                throws WTException
Throws:
WTException

createPartForDoc

public static WTPart createPartForDoc(ECADDocument doc,
                                      ECADAssemblyHelper.AssemblyOptions options,
                                      ECADTransaction transaction)
                               throws WTException,
                                      WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException

createPartsForDocs

public static WTPart[] createPartsForDocs(ECADDocument[] docs,
                                          ECADAssemblyHelper.AssemblyOptions options,
                                          ECADTransaction transaction)
                                   throws WTException,
                                          WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException

createPart

protected static WTPart createPart(ECADDocument doc,
                                   PartHelperDelegate partDelegate,
                                   PartHelper.PartOptions options,
                                   ECADTransaction transaction)
                            throws WTException,
                                   WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException

isAutoNumber

protected static boolean isAutoNumber(WTContainerRef cRef)
                               throws WTException
Throws:
WTException

createPart

protected static WTPart createPart(String number,
                                   String name,
                                   PartHelperDelegate partDelegate,
                                   PartHelper.PartOptions options,
                                   ECADTransaction transaction)
                            throws WTException
Throws:
WTException

createRule

private static WTObject createRule(EPMDocument document,
                                   WTPart part,
                                   boolean createPassiveLinks,
                                   ECADTransaction transaction)
                            throws WTException
Throws:
WTException

createBuildRule

private static EPMBuildRule createBuildRule(EPMDocument document,
                                            WTPart part,
                                            ECADTransaction transaction)
                                     throws WTException
Throws:
WTException

createDescribeLink

private static EPMDescribeLink createDescribeLink(EPMDocument document,
                                                  WTPart part,
                                                  ECADTransaction transaction)
                                           throws WTException
Throws:
WTException

isSchematic

protected static boolean isSchematic(ECADDocument doc)

getPartType

protected static PartType getPartType(ECADDocument doc)

getPartsFolder

protected static Folder getPartsFolder(ECADDocument doc)
                                throws WTException
Throws:
WTException

getDocumentNumbers

protected static String[] getDocumentNumbers(ECADDocument[] docs)

createPartConfigSpec

protected static ConfigSpec createPartConfigSpec(WTContainerRef containerRef,
                                                 View view)
                                          throws WTException
Throws:
WTException