|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.step.processor.StepProcessor
Performs import and export from/to local STEP files and associated document structures.
Field Summary | |
private Properties |
_exportScope
The Windchill classes that should be exported |
private ExpressSchema |
_wtSchema
The Windchill Schema containing entities with fields |
private static String |
EXPORT_SCOPE_FILE
|
private static String |
ITERATIONS_IMPORT_SCHEME_PROPERTY
|
private static String |
LOG_FILENAME
|
private static String |
LOGDIR_PROPERTY
|
private Vector |
mkrObjectList
|
private static String |
VERSIONS_IMPORT_SCHEME_PROPERTY
|
Constructor Summary | |
StepProcessor()
|
Method Summary | |
private void |
ensureWindchillSchemaLoaded()
Ensures that the Windchill Schema file has been loaded providing access to object types and their attributes. |
void |
exportObjects(String p21Filename,
String exportSchemaName,
WTObject[] objects,
boolean downloadFiles)
Exports a collection of Windchill Objects. |
Vector |
getImportedInstances()
|
protected void |
importStepFile(String p21Filename,
String schemaName,
ImportScheme versionsImportScheme,
String importFolder,
String[] importFilesList,
ManagedBaseline baseline)
Import a STEP data file by converting it to the Windchill Schema and then importing that data. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private Vector mkrObjectList
private static final String LOGDIR_PROPERTY
private static final String LOG_FILENAME
private static final String VERSIONS_IMPORT_SCHEME_PROPERTY
private static final String ITERATIONS_IMPORT_SCHEME_PROPERTY
private static final String EXPORT_SCOPE_FILE
private ExpressSchema _wtSchema
private Properties _exportScope
Constructor Detail |
public StepProcessor()
Method Detail |
private void ensureWindchillSchemaLoaded() throws TransferException
TransferException
ExpressSchema
protected void importStepFile(String p21Filename, String schemaName, ImportScheme versionsImportScheme, String importFolder, String[] importFilesList, ManagedBaseline baseline) throws TransferException
p21Filename
- The name of the Part21/STEP file to import.schemaName
- The name of the Schema used by the step file.versionsImportScheme
- How to handle imported versionsimportFolder
- The Folder to create new instances inimportFilesList
- A list of the associated files names which should
be imported/uploaded. Null if all referenced files
should be imported.baseline
- Optional baseline for addition of imported items
TransferException
ImportScheme
,
SchemaConverter
public Vector getImportedInstances()
public void exportObjects(String p21Filename, String exportSchemaName, WTObject[] objects, boolean downloadFiles) throws TransferException
p21Filename
- The file to write the export to.exportSchemaName
- The name of the schema to export as.downloadFiles
- Should the content of associated files be
downloaded.
TransferException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |