|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.ixb.publicforapps.ExpImporter
wt.ixb.publicforapps.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 IxbHelper.newExport()
with the desired signatures.
There are two major categories of methods in this class to execute export:
doExport
method convert Windchill
objects into XML document.
finalizeExport
finalizes export process.
Field Summary | |
private ApplicationExportHandler |
applicationExportHandler
|
private static String |
CLASSNAME
|
private int |
countObjectsSkipped
|
private int |
countObjectsToBeExported
|
private int |
countObjectsWithoutHandler
|
protected ExportActionTuner |
expActionTuner
|
private HashSet |
ignoredObjectList
|
private HashSet |
implicitExportList
|
private static String |
RESOURCE
|
private WTContainerRef |
sourceContainer
|
private HashSet |
updateForImplicitExportList
|
Fields inherited from class wt.ixb.publicforapps.ExpImporter |
attributeExporterImporterManager, dtd, generalContext, ixbHandlersManager, tuner |
Constructor Summary | |
(package private) |
Exporter(ApplicationExportHandler _applicationExportHandler,
WTContainerRef _sourceContainer,
String targetDTD,
File localMappingRuleFile,
File policyRuleFile,
String actionName)
|
(package private) |
Exporter(ApplicationExportHandler _applicationExportHandler,
WTContainerRef _sourceContainer,
String targetDTD,
IxbElement localMappingRules)
|
(package private) |
Exporter(ApplicationExportHandler _applicationExportHandler,
WTContainerRef _sourceContainer,
String targetDTD,
IxbElement localMappingRules,
File policyRuleFile,
String actionName)
|
Method Summary | |
void |
addIntoImplicitExportList(Object obj)
Adds object into list of object that will be additionally exported in the end of the export process. |
IxbDocument |
createIxbElementForExportResult(String tag)
Deprecated. |
void |
doExport(Object obj)
Performs export of given object under Windchill's default DTD. |
void |
doExport(Object obj,
String targetDTD)
Performs export of given object into given target DTD. |
void |
doExport(Object obj,
String targetDTD,
String targetElem)
Performs export of given object into given target DTD into given element's tag. |
private void |
finalizeAdditionalInfo()
|
void |
finalizeExport()
Finalizes export process. |
private void |
finalizeImplicitExportList()
|
ApplicationExportHandler |
getApplicationExportHandler()
|
ExportActionTuner |
getExportActionTuner()
|
HashSet |
getIgnoredObjectList()
Returns the ignored objects for this export session. |
WTContainerRef |
getSourceContainerRef()
Returns the container reference where the export is launched. |
int |
getTotalExportedObjects()
Returns the number of exported objects for this export session. |
void |
logMessage(String resourceBundle,
String messageKey,
Object[] textInserts)
Sends log message to export/import application Supported API: true |
void |
logMessage(String resourceBundle,
String messageKey,
Object[] textInserts,
int importanceLevel)
Sends log message to export/import application Supported API: true |
private boolean |
objectShldBeIgnored(Object obj)
Since IXB framework support the command "IGNORE_MASTER" either through system registry or from client mapping rule files, when this command is satisfied and validated, the object (e.g. |
boolean |
objectWillBeReallyExported(Object obj)
Test whether the corresponding object has handler under the default DTD. |
private static void |
PP(String s)
|
String |
storeDocument(IxbDocument element)
Applies export mapping rules and stores XML document through application handler. |
Methods inherited from class wt.ixb.publicforapps.ExpImporter |
getDTD |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private ApplicationExportHandler applicationExportHandler
private HashSet implicitExportList
private HashSet updateForImplicitExportList
private HashSet ignoredObjectList
private int countObjectsToBeExported
private int countObjectsWithoutHandler
private int countObjectsSkipped
protected ExportActionTuner expActionTuner
private WTContainerRef sourceContainer
Constructor Detail |
Exporter(ApplicationExportHandler _applicationExportHandler, WTContainerRef _sourceContainer, String targetDTD, IxbElement localMappingRules) throws WTException
Exporter(ApplicationExportHandler _applicationExportHandler, WTContainerRef _sourceContainer, String targetDTD, IxbElement localMappingRules, File policyRuleFile, String actionName) throws WTException
Exporter(ApplicationExportHandler _applicationExportHandler, WTContainerRef _sourceContainer, String targetDTD, File localMappingRuleFile, File policyRuleFile, String actionName) throws WTException
Method Detail |
public void addIntoImplicitExportList(Object obj) throws WTException
obj
- object that will be additionally exported
WTException
public void finalizeExport() throws WTException
WTException
public String storeDocument(IxbDocument element) throws WTException
element
- element wt.ixb.publicforapps.IxbDocument
, representing the XML document, produced by export handler
WTException
public void doExport(Object obj) throws WTException
obj
-
WTException
doExport (Object obj, String targetDTD)
public void doExport(Object obj, String targetDTD) throws WTException
obj
- targetDTD
-
WTException
public void doExport(Object obj, String targetDTD, String targetElem) throws WTException
obj
- targetDTD
- targetElem
-
WTException
public void logMessage(String resourceBundle, String messageKey, Object[] textInserts) throws WTException
logMessage
in class ExpImporter
resourceBundle
- messageKey
- textInserts
-
WTException
public void logMessage(String resourceBundle, String messageKey, Object[] textInserts, int importanceLevel) throws WTException
logMessage
in class ExpImporter
resourceBundle
- messageKey
- textInserts
- importanceLevel
-
WTException
public boolean objectWillBeReallyExported(Object obj) throws WTException
IXBHelper.service.getExportHandler (String obType, String dtd)
WTException
Supported API: true
private void finalizeImplicitExportList() throws WTException
WTException
public IxbDocument createIxbElementForExportResult(String tag) throws WTException
This method is deprecated.
Supported API: false
WTException
public ApplicationExportHandler getApplicationExportHandler()
public ExportActionTuner getExportActionTuner()
public HashSet getIgnoredObjectList()
HashSet
public WTContainerRef getSourceContainerRef()
WTContainerRef
private boolean objectShldBeIgnored(Object obj) throws WTException
WTException
private void finalizeAdditionalInfo() throws WTException
WTException
public int getTotalExportedObjects()
private static void PP(String s)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |