wt.step.processor.conversion
Class NullSchemaConverter

java.lang.Object
  extended bywt.step.processor.conversion.SchemaConverter
      extended bywt.step.processor.conversion.NullSchemaConverter

public class NullSchemaConverter
extends SchemaConverter

A SchemaConverter which performs no conversion. This removes the requirement for a third party Express Schema Conversion tool but only generates STEP files in Windchill Schema.


Nested Class Summary
 
Nested classes inherited from class wt.step.processor.conversion.SchemaConverter
SchemaConverter.ExtensionFilter
 
Field Summary
private static int COPY_FILE_BUFFER_SIZE
           
 
Fields inherited from class wt.step.processor.conversion.SchemaConverter
SCHEMAS_DIR_PROP, WINDCHILL_SCHEMA_NAME_PROP
 
Constructor Summary
NullSchemaConverter()
           
 
Method Summary
 void convertForExport(String srcFilename, String targetFilename, String exportSchemaName)
          Converts the source file from Windchill schema to that defined by the converters configuration.
 void convertForImport(String srcFilename, String targetFilename, String importSchemaName)
          Converts the source file to Windchill schema from that defined by the converters configuration.
private  void copyFile(String fromFile, String toFile)
           
 
Methods inherited from class wt.step.processor.conversion.SchemaConverter
clearConversionLog, getConversionLog, getConverterInstance, getExportMappingFile, getExportSchemaNames, getExpressNameFromFile, getImportMappingFile, getImportSchemaNames, getLogFilename, getMandatoryProperty, getProperty, getSchemaFile, getSingleTypedFile, getWindchillSchemaFilename
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COPY_FILE_BUFFER_SIZE

private static final int COPY_FILE_BUFFER_SIZE
See Also:
Constant Field Values
Constructor Detail

NullSchemaConverter

public NullSchemaConverter()
Method Detail

convertForExport

public void convertForExport(String srcFilename,
                             String targetFilename,
                             String exportSchemaName)
                      throws ConversionException
Description copied from class: SchemaConverter
Converts the source file from Windchill schema to that defined by the converters configuration. The result is the completed export file. Implementations can assume that the source and target files will have a different file location/name.

Specified by:
convertForExport in class SchemaConverter
Parameters:
exportSchemaName - The name of the schema to export to. This should
Throws:
ConversionException

convertForImport

public void convertForImport(String srcFilename,
                             String targetFilename,
                             String importSchemaName)
                      throws ConversionException
Description copied from class: SchemaConverter
Converts the source file to Windchill schema from that defined by the converters configuration. The result is a STEP file ready for import into Windchill. Implementations can assume that the source and target files will have a different file location/name.

Specified by:
convertForImport in class SchemaConverter
Throws:
ConversionException

copyFile

private void copyFile(String fromFile,
                      String toFile)
               throws ConversionException
Throws:
ConversionException