Package wt.ixb.publicforapps
Class Exporter
Exporter is the container representing export handlers for the context of the export operation. Exporter instance is
not stateless and there should be only one instance for each export request.
To construct an instance of Export, use
There are two major categories of methods in this class to execute export:
Supported API: true
Extendable: true
To construct an instance of Export, use
IxbHelper.newExport() with the desired signatures. There are two major categories of methods in this class to execute export:
- Various forms of the
doExportmethod convert Windchill objects into XML document. - The method
finalizeExportfinalizes export process.
Supported API: true
Extendable: true
-
Field Summary
Fields inherited from class wt.ixb.publicforapps.ExpImporter
generalContext, ixbHandlersManager -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds object into list of object that will be additionally exported in the end of the export process.voidPerforms export of given object under Windchill's default DTD.voidPerforms export of given object into given target DTD.voidPerforms export of given object into given target DTD into given element's tag.voidFinalizes export process.voidfinalizeExport(boolean writeManifest) Finalizes export process.Get Fault Tolerance handler for export
Supported API: trueReturns the ignored objects for this export session.Returns the container reference where the export is launched.intReturns the number of exported objects for this export session.booleanDeprecated.storeDocument(IxbDocument element) Applies export mapping rules and stores XML document through application handler.
-
Method Details
-
addIntoImplicitExportList
Adds object into list of object that will be additionally exported in the end of the export process.
Supported API: true- Parameters:
obj- object that will be additionally exported
-
finalizeExport
Finalizes export process. Calls finalizeExport method for all export handlers.
Supported API: true- Throws:
WTException- See Also:
-
finalizeExport
Finalizes export process. Calls finalizeExport method for all export handlers. Depending on the writeManifest value it will generate the manifest, if writeManifest=true
Supported API: true- Parameters:
writeManifest- Whether to add manifest file- Throws:
WTException
-
storeDocument
Applies export mapping rules and stores XML document through application handler. Should be used by export handlers. Return the file name (or other file id) if the element is actually stored, null otherwise.
Supported API: true- Parameters:
element- elementwt.facade.ixb.IxbDocument, representing the XML document, produced by export handler- Returns:
- String
- Throws:
WTException
-
doExport
Performs export of given object under Windchill's default DTD.
Supported API: true- Parameters:
obj-- Throws:
WTException- See Also:
-
doExport(Object, String)
-
doExport
Performs export of given object into given target DTD. IXB service supports an ability to export object into different XML languages. To achieve that export handler should be registered for given class and given XML language.
Supported API: true- Parameters:
obj-targetDTD-- Throws:
WTException
-
doExport
Performs export of given object into given target DTD into given element's tag. IXB service supports an ability to export object into different XML languages and into different element's tag. In order to do this the export handler should be registered for given class, given XML language and given element's tag
This API doesn't call prepareForExport. If you intend to have it called then usedoExport(Object)ordoExport(Object, String)
Supported API: true- Parameters:
obj-targetDTD-targetElem-- Throws:
WTException
-
objectWillBeReallyExported
Deprecated.* @depracated Test whether the corresponding object has handler under the default DTD.
This method is deprecated. To test an object has the corresponding export handler or not, use the methodIXBHelper.service.getExportHandler (String obType, String dtd)- Parameters:
obj-- Returns:
- Throws:
WTException- See Also:
-
Supported API: true
-
getIgnoredObjectList
Returns the ignored objects for this export session.
Supported API: true- Returns:
HashSet
-
getSourceContainerRef
Returns the container reference where the export is launched.
Supported API: true- Returns:
WTContainerRef
-
getTotalExportedObjects
public int getTotalExportedObjects()Returns the number of exported objects for this export session.
Supported API: true- Returns:
-
getFaultToleranceOpHandler
Get Fault Tolerance handler for export
Supported API: true- Returns:
-