wt.replication.ixbutil
Class ReplIxbExportHandler

java.lang.Object
  extended bywt.ixb.publicforapps.ApplicationExportHandlerTemplate
      extended bywt.replication.ixbutil.ReplIxbExportHandler
All Implemented Interfaces:
ApplicationExpImportHandler, ApplicationExportHandler

public class ReplIxbExportHandler
extends ApplicationExportHandlerTemplate


Field Summary
private  HashSet contentFileNames
           
private  int fnum
           
private  Manifest manifest
           
private  WTUnit unit
           
 
Fields inherited from class wt.ixb.publicforapps.ApplicationExportHandlerTemplate
 
Fields inherited from interface wt.ixb.publicforapps.ApplicationExpImportHandler
IMPORTANCE_LEVEL_DEFAULT
 
Constructor Summary
ReplIxbExportHandler(WTUnit a_unit)
           
 
Method Summary
 void exportObjectContent(Object obj, Exporter exporter, ContentItem item, String exportFileName)
           
private static void PP(String s)
           
 String storeContent(Object attribute)
          Stores the given content of exported object.
 String storeDocument(IxbElement doc, String dtd)
          Stores the given XML element, which is the XML representation of exported object, based on the provided DTD.
 void storeLogMessage(String resourceBundle, String messageKey, Object[] textInserts, int importanceLevel)
          Supplies the localized log message for the application.
 
Methods inherited from class wt.ixb.publicforapps.ApplicationExportHandlerTemplate
finalizeAdditionalInfo, reallyStoreContent, storeAdditionalInfo, storeContent, storeDocument, storeLogMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

unit

private WTUnit unit

manifest

private Manifest manifest

fnum

private int fnum

contentFileNames

private HashSet contentFileNames
Constructor Detail

ReplIxbExportHandler

public ReplIxbExportHandler(WTUnit a_unit)
Method Detail

storeContent

public String storeContent(Object attribute)
                    throws WTException
Description copied from class: ApplicationExportHandlerTemplate
Stores the given content of exported object. The return value is String, that will be used in XML file as an identifier of this content. Application should be able to find the content during the import process by this identifier. The content of the associated object might not be saved, depending on the implementation of the this interface.

Supported API: true

Specified by:
storeContent in interface ApplicationExportHandler
Overrides:
storeContent in class ApplicationExportHandlerTemplate
Parameters:
attribute - The content attribute which is related to InputStream or BLOB. e.g. it can be ApplicationData , File or String (full path of a file), etc
Returns:
String
Throws:
WTException

exportObjectContent

public void exportObjectContent(Object obj,
                                Exporter exporter,
                                ContentItem item,
                                String exportFileName)
                         throws WTException
Throws:
WTException

storeDocument

public String storeDocument(IxbElement doc,
                            String dtd)
                     throws WTException
Description copied from class: ApplicationExportHandlerTemplate
Stores the given XML element, which is the XML representation of exported object, based on the provided DTD. If parameter dtd is null, Windchill's default DTD is assumed. Return XML file name or some other string identifier for the stored element.

Supported API: true

Specified by:
storeDocument in interface ApplicationExportHandler
Overrides:
storeDocument in class ApplicationExportHandlerTemplate
Parameters:
doc -
dtd -
Returns:
String
Throws:
WTException
See Also:
storeDocument (IxbElement elem)

storeLogMessage

public void storeLogMessage(String resourceBundle,
                            String messageKey,
                            Object[] textInserts,
                            int importanceLevel)
                     throws WTException
Description copied from class: ApplicationExportHandlerTemplate
Supplies the localized log message for the application.

Supported API: true

Specified by:
storeLogMessage in interface ApplicationExpImportHandler
Overrides:
storeLogMessage in class ApplicationExportHandlerTemplate
Parameters:
resourceBundle -
messageKey -
textInserts -
importanceLevel -
Throws:
WTException

PP

private static void PP(String s)