|
|||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use TransferException | |
wt.step | STEP (ISO 10303) Support. |
wt.step.processor | |
wt.step.processor.conversion | |
wt.step.processor.expressParser | |
wt.step.processor.stepParser |
Uses of TransferException in wt.step |
Methods in wt.step that throw TransferException | |
static StepPackager |
StepPackager.getPackagerInstance()
Access the instance of the packager class defined by the property: wt.step.stepPackager |
static String[] |
StepHelper.getExportSchemaNames()
Get a list of Schemas supported when exporting to a STEP file. |
private static Object |
StepHelper.invokeOnServer(String methodName,
Class[] argTypes,
Object[] args)
|
static String[] |
StepHelper.getImportSchemaNames()
Get a list of Schemas supported when importing from a STEP file. |
static String |
StepHelper.getContentFileExtension()
Get the extension for the content file generated by the export. |
static void |
StepHelper.export(ExportSelection selection)
Export a selection of products in STEP format. |
static void |
StepHelper.importStepFile(WTDocument stepFilesHolder,
String importSchema,
ImportScheme versionsImportScheme,
String importFolder,
String[] importFilesList,
ManagedBaseline baseline)
Import a STEP file and associated documents. |
static String[] |
StepHelper.getImportFileList(WTDocument importHolder)
List all associated files in the contained STEP Package file. |
static String |
StepHelper.getConversionLog()
Get the contents of the schema converter log for the last conversion attempt. |
static String[] |
StepHelper.Server.getExportSchemaNames()
|
static String |
StepHelper.Server.getContentFileExtension()
|
static String[] |
StepHelper.Server.getImportSchemaNames()
|
static String[] |
StepHelper.Server.getImportFileList(WTDocument doc)
|
static String |
StepHelper.Server.getConversionLog()
|
static void |
StepHelper.Server.export(ExportSelection selection)
|
static void |
StepHelper.Server.importStepFile(WTDocument stepFilesHolder,
String importSchema,
ImportScheme versionsImportScheme,
String importFolder,
String[] importFilesList,
ManagedBaseline baseline)
|
abstract WTObject[] |
ExportSelection.getSelectedContent()
Calculates and returns the collection of objects defined by this selection |
WTObject[] |
BaselineExportSelection.getSelectedContent()
|
WTObject[] |
AssemblyExportSelection.getSelectedContent()
|
private void |
AssemblyExportSelection.collectAssemblyPartsAndDocuments(WTPart part,
Vector objectCollector)
|
private void |
AssemblyExportSelection.collectAssociatedDocuments(WTPart part,
Vector objectCollector)
|
Uses of TransferException in wt.step.processor |
Subclasses of TransferException in wt.step.processor | |
class |
MandatoryAttributeException
An exception thrown when it is discovered that a mandatory attribute (for the transfer process) is missing. |
Methods in wt.step.processor that throw TransferException | |
static WTStepProcessor |
WTStepProcessor.getInstance()
Get the one and only instance of the WTStepProcessor |
static String[] |
WTStepProcessor.getExportSchemaNames()
|
static String[] |
WTStepProcessor.getImportSchemaNames()
|
void |
WTStepProcessor.export(ExportSelection exportSelection)
Extends the StepProcessor to package up the generated STEP file and add it as primary content to a WTDocument. |
private void |
WTStepProcessor.packageAndAddToDocument(WTDocument document,
File contentDir,
String exportName)
Build a package file from the exported directory structure and upload it as primary content of the given document. |
void |
WTStepProcessor.importStepFile(WTDocument stepFilesHolder,
String importSchema,
ImportScheme versionsImportScheme,
String importFolder,
String[] importFilesList,
ManagedBaseline baseline)
Extends the StepProcessor functionality to import from a WTDocument rather than a file directory structure. |
private void |
WTStepProcessor.extractContentToDirectory(WTDocument doc,
File dir)
Extract the first content item of the given document as a package file, into the given directory. |
private static InputStream |
WTStepProcessor.getPackageFileContentStream(WTDocument doc)
Accesses the first content item of the given document as an InputStream. |
private File |
WTStepProcessor.findBaseStepFile(File dir)
Finds the STEP file for a zip file import. |
static String[] |
WTStepProcessor.getImportFileList(WTDocument doc)
Gets a list of all files in the ZIP file excluding directories and the first STEP (.stp) file in the base directory. |
static Mastered |
WTImportService.findMaster(Class masterClass,
String masterImportNumber,
String masterImportName)
Find a (Part/Document)Master given its class, name and number. |
static Versioned |
WTImportService.findVersion(Mastered master,
String versionId)
Finds the version of the given master with the given version Id. |
static RevisionControlled |
WTImportService.findLatestVersion(Mastered master)
Finds the latest version of the given master. |
static RevisionControlled |
WTImportService.findIteration(Versioned version,
String iterationId)
Finds the iteration of the given version with the given iteration Id. |
static RevisionControlled |
WTImportService.findIteration(Class masterClass,
String masterNumber,
String masterName,
String versionId,
String iterationId)
Finds the iteration given the number and name of the Master and the iteration Id. |
static RevisionControlled |
WTImportService.findLatestIteration(Versioned version)
Finds the latest version of the given master. |
private static Method |
WTImportService.getMethod(Class theClass,
String name)
|
private static Method |
WTImportService.getMethod(Class theClass,
String name,
Class[] args)
|
private static Object |
WTImportService.invokeMethod(Method theMethod)
|
private static Object |
WTImportService.invokeMethod(Method theMethod,
Object instance)
|
private static Object |
WTImportService.invokeMethod(Method theMethod,
Object instance,
Object[] args)
|
static RevisionControlled |
WTImportService.createNewMasterVersionAndIteration(Class iterationClass,
String masterNumber,
String masterName,
String vId,
String iId)
Create a new iteration with a given Number and Name. |
static Mastered |
WTImportService.getMaster(RevisionControlled iteration)
|
static RevisionControlled |
WTImportService.createNewVersionAndIteration(Mastered master,
String masterName,
String masterNumber,
String importVersionId,
String importIterationId)
Create a new version of the given Master. |
static RevisionControlled |
WTImportService.createNewIteration(Versioned version,
String masterName,
String masterNumber,
String versionId,
String iterationId)
Create a new version of the given Master. |
private static void |
WTImportService.validateNewIterationIds(RevisionControlled newIteration,
String masterName,
String masterNumber,
String importVersionId,
String importIterationId,
boolean incrementCheckedout)
Validate that the actual version/iteration ids match the imported version/iteration ids. |
private static void |
WTImportService.setPropertyToDefault(Persistable wtObject,
PropertyDescriptor propertyInfo)
Set a Windchill objects property to its default value. |
static void |
WTImportService.setImportFolder(String folderName)
Set the folder that all instances will be created in. |
static Folder |
WTImportService.getImportFolder()
|
static void |
WTImportService.setImportFolder(Foldered instance)
|
static Persistable |
WTImportService.makePersistent(Persistable instance)
|
static ObjectToObjectLink |
WTImportService.getExistingLink(Class linkClass,
Object tmpLink,
Persistable roleAInstance,
Persistable roleBInstance)
|
static ObjectToObjectLink |
WTImportService.createNewLink(Class linkClass,
Persistable roleAInstance,
Persistable roleBInstance)
Create a new link object. |
static void |
WTImportService.setInstanceAttributes(Persistable wtObject,
StepEntity stepObject,
ExpressSchema wtSchema,
StepData dataForEntityReferences)
Given a parse StepEntity and its corresponding imported Windchill instance set all the attributes it has values for. |
protected static Object |
WTImportService.convertToEnumTypeValue(Object rawValue,
String enumTypeName,
ExpressSchema wtSchema,
StepData dataForEntityRefs)
Takes a parsed value for an enumeration type ( result of EnumeratedType.getStringValue() ) and converts it into a Windchill enumeration type value. |
QueryResult |
TraversalMechanism.traverse(Object originInstance)
|
private void |
StepProcessor.ensureWindchillSchemaLoaded()
Ensures that the Windchill Schema file has been loaded providing access to object types and their attributes. |
protected void |
StepProcessor.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. |
void |
StepProcessor.exportObjects(String p21Filename,
String exportSchemaName,
WTObject[] objects,
boolean downloadFiles)
Exports a collection of Windchill Objects. |
static String |
MappingUtilities.getMandatoryProperty(String propertyName)
Uses getProperty() to access the property and exits with an error message if the propery is not set. |
private static void |
MappingUtilities.initialiseFullnamesMapping()
|
static Class |
MappingUtilities.getWindchillClassForEntityType(String entityTypeName)
|
static String |
MappingUtilities.convertEntityNameToWindchillClassName(String entityName)
Because of the loss of case(Express is case independent) it is necessary to provide an explicit mapping from Express Windchill entity names to their Windchill class equivalents. |
static boolean |
MappingUtilities.isIterationType(StepEntity entity)
|
static boolean |
MappingUtilities.isIterationType(String stepTypeName)
|
static boolean |
MappingUtilities.isEnumeratedType(String stepTypeName)
|
static boolean |
MappingUtilities.isLinkType(StepEntity entity)
|
static boolean |
MappingUtilities.isLinkType(String stepTypeName)
|
static boolean |
MappingUtilities.isMasterType(StepEntity entity)
|
static boolean |
MappingUtilities.isMasterType(String stepTypeName)
|
QueryResult |
LinkTraversalMechanism.traverse(Object originInstance)
|
void |
ImportFromP21Processor.importStepFile(String p21Filename,
ImportScheme importSchemeForVersions,
String importFolder,
String[] importFilesList,
ManagedBaseline baseline)
Import Windchill Schema data from a Part21 STEP file |
void |
ImportFromP21Processor.importStepData(StepData p21data,
ImportScheme importSchemeForVersions,
String importFolder,
String[] importFilesList,
ManagedBaseline baseline)
Import Windchill Schema data from a Part21 data set |
private void |
ImportFromP21Processor.importIterations(StepData p21data)
Looks through the objects in the StepData for PartVersion subclasses which will be instantiated. |
protected void |
ImportFromP21Processor.uploadAnyContentFiles(RevisionControlled iteration,
StepEntity entity)
|
protected void |
ImportFromP21Processor.applyContentsUpload(ContentHandler contentHandler,
FormatContentHolder contentHolder,
String documentNumber,
Vector contents)
|
private void |
ImportFromP21Processor.recordImportedIteration(StepEntity entity,
RevisionControlled instance)
Record an imported iteration in String form so that it can be matched against repetitions in the STEP file. |
private void |
ImportFromP21Processor.recordInBaseline(Object item)
|
private String |
ImportFromP21Processor.getEntityVersionId(StepEntity stepIteration)
For an Entity that represents an iteration, this will return the version identifier. |
private String |
ImportFromP21Processor.getEntityIterationId(StepEntity stepIteration)
For an Entity that represents an iteration, this will return the iteration identifier. |
private Vector |
ImportFromP21Processor.getEntityContentItems(StepEntity stepIteration)
For an Entity that has associated content items, this will return a Vector of their unique filenames (it is possible that the mapping process may lead to repeats being present). |
private RevisionControlled |
ImportFromP21Processor.importIteration(StepEntity stepIteration)
Extracts the required information from the Step Data to enable a new iteration to be created, or an existing instance to be updated. |
private void |
ImportFromP21Processor.importLinks(StepData p21data)
|
private Persistable |
ImportFromP21Processor.mapEntityToWTInstance(StepEntity entity)
|
private ObjectToObjectLink |
ImportFromP21Processor.importLink(StepEntity stepLink,
StepData sd)
Extracts the required information from the Step Data to enable a new link to be created, or an existing instance to be updated. |
private void |
ExportToP21Processor.writeP21Contents(WTObject[] objects)
|
private int |
ExportToP21Processor.translateWindchillInstance(Object windchillInstance)
Translate a Windchill object into STEP format. |
private int |
ExportToP21Processor.translateWindchillInstance(EntityDefinition entityDef,
Object windchillInstance)
|
private StringBuffer |
ExportToP21Processor.createP21EntityStatement(EntityDefinition entityType,
Object windchillInstance)
|
private Object |
ExportToP21Processor.getAssociatedWindchillObjects(Object windchillInstance,
EntityDefinition instanceType,
TypeDefinition attributeType,
EntityDefinition.AttributeDefinition attribute)
Returns associated objects by traversing Windchill ObjectToObject links for an attribute which represents a role of an association. |
private Object |
ExportToP21Processor.getRelatedWindchillObject(Object windchillInstance,
EntityDefinition instanceType,
EntityDefinition.AttributeDefinition attribute)
|
private void |
ExportToP21Processor.writeEntityLinksFrom(EntityDefinition entityType,
Object windchillInstance)
|
private boolean |
ExportToP21Processor.appendEntityAttributesToStatement(StringBuffer statement,
boolean isFirstAttribute,
EntityDefinition entityType,
Object windchillInstance,
Hashtable writtenTypes)
|
private void |
ExportToP21Processor.appendEntityAttributeToStatement(StringBuffer statement,
EntityDefinition instanceType,
Object windchillInstance,
EntityDefinition.AttributeDefinition attribute)
|
private void |
ExportToP21Processor.appendEntityAttributeValueToStatement(StringBuffer statement,
Object windchillValue,
String attributeTypeName)
|
private int |
ExportToP21Processor.getP21IdForWindchillInstance(String attributeType,
Object windchillInstance)
Gets a Part21 step file Id for an instance. |
private Object |
ExportToP21Processor.getWindchillAttributeValue(Object windchillInstance,
EntityDefinition instanceType,
EntityDefinition.AttributeDefinition attribute)
Gets the 'raw' value for a particular Windchill object instance. |
private void |
ExportToP21Processor.downloadAssociatedDocuments(String stepFilename)
Downloads document contents into subdirectories of the step files directory, one for each document with content. |
EntityTraverser |
EntityTraverser.gotoEntity(String nextEntityAttribute)
Traverse through the current entities attributes to a new entity. |
boolean |
EntityTraverser.hasEntity(String entityAttributeName)
|
StepEntity |
EntityTraverser.getEntity(String entityAttributeName)
Gets an Entity attribute from the current entity. |
String |
EntityTraverser.getString(String stringAttributeName)
Gets a String attribute from the current entity. |
Vector |
EntityTraverser.getList(String listAttributeName)
|
Constructors in wt.step.processor that throw TransferException | |
WTStepProcessor()
Access only through getInstance() as a Singleton. |
|
ImportFromP21Processor(ExpressSchema wtSchema)
Constructs the import engine ready for performing STEP imports |
|
ExportToP21Processor(ExpressSchema wtSchema,
Properties exportEntityScope,
String outputFilename,
WTObject[] objects,
boolean downloadAssociatedFiles)
|
|
ExportToP21Processor(ExpressSchema wtSchema,
Properties exportEntityScope,
String outputFilename,
FileOutputStream outputStream,
WTObject[] objects,
boolean downloadAssociatedFiles)
|
|
ExportToP21Processor(ExpressSchema wtSchema,
Properties exportEntityScope,
String outputFilename,
PrintWriter outputWriter,
WTObject[] objects,
boolean downloadAssociatedFiles)
|
Uses of TransferException in wt.step.processor.conversion |
Methods in wt.step.processor.conversion that throw TransferException | |
static SchemaConverter |
SchemaConverter.getConverterInstance()
|
static String[] |
SchemaConverter.getExportSchemaNames()
Lists schemas which have 'export' mappings, that is mappings from Windchill Schema to their Schema for export. |
static String[] |
SchemaConverter.getImportSchemaNames()
Lists schemas which have 'import' mappings, that is mappings from their schema to the Windchill schema that can be imported. |
private static String[] |
SchemaConverter.getSchemaNamesFor(String schemaFunction)
Searchs the schemas dir for sub-directories (schemas) which have the required subdirectory/function ("import" or "export"). |
static String |
SchemaConverter.getWindchillSchemaFilename()
Returns the name of the Windchill schema so that it may be used during schema conversions. |
protected static File |
SchemaConverter.getSchemaFile(String schemaName)
Access the File that matches a schema name, that is: {wt.step.schemasDir}/{schema-name}/{something}.xpx |
protected File |
SchemaConverter.getExportMappingFile(String schemaName)
The export mapping is found in the directory {schemasDir}/{schemaName}/export/{mappingName}.xpx Note: The mapping name MUST match the filename with extension .xpx |
protected File |
SchemaConverter.getImportMappingFile(String schemaName)
The import mapping is found in the directory {schemasDir}/{schemaName}/import/{mappingName}.xpx Note: The mapping name MUST match the filename with extension .xpx |
protected static String |
SchemaConverter.getMandatoryProperty(String propertyName)
Gets a property value. |
abstract void |
SchemaConverter.convertForExport(String srcFilename,
String targetFilename,
String exportSchemaName)
Converts the source file from Windchill schema to that defined by the converters configuration. |
abstract void |
SchemaConverter.convertForImport(String srcFilename,
String targetFilename,
String importSchemaName)
Converts the source file to Windchill schema from that defined by the converters configuration. |
void |
EPMSchemaConverter.convertForExport(String srcFilename,
String targetFilename,
String exportSchemaName)
|
void |
EPMSchemaConverter.convertForImport(String srcFilename,
String targetFilename,
String importSchemaName)
|
private void |
EPMSchemaConverter.applyMapping(String srcSchemaName,
String targetSchemaName,
File mappingFile,
String srcFilename,
String targetFilename)
|
Uses of TransferException in wt.step.processor.expressParser |
Methods in wt.step.processor.expressParser that throw TransferException | |
boolean |
ExpressSchema.isListType(String listTypeName)
|
Vector |
EntityDefinition.getTraversalMechanismsForRole(ExpressSchema schema,
String roleName)
|
Uses of TransferException in wt.step.processor.stepParser |
Methods in wt.step.processor.stepParser that throw TransferException | |
private EntityDefinition |
StepEntity.getEntityDefinition(ExpressSchema schemaOfEntity)
|
private Object |
StepEntity.getAttributeValue(String attributeName,
ExpressSchema schemaOfEntity)
|
boolean |
StepEntity.hasAttributeValue(String attributeName,
ExpressSchema schemaOfEntity)
|
Enumeration |
StepEntity.getAttributeDefinitions(ExpressSchema schemaOfEntity)
Access to the EntityDefinition.AttributeDefinition's of all attributes of this entity. |
Object |
StepEntity.getAttribute(String attributeName,
ExpressSchema schemaOfEntity,
StepData dataForResolvingEntityReferences)
|
|
|||||||||||
PREV NEXT | FRAMES NO FRAMES |