wt.projmgmt.msproject
Class ImportRequestExporter

java.lang.Object
  extended bywt.projmgmt.msproject.Exporter
      extended bywt.projmgmt.msproject.ImportRequestExporter

public class ImportRequestExporter
extends Exporter

This class exports a ProjectPlan in Existing Project XML format. This XML serves as a request for a client to import the specified file into a PTC Windchill server.


Field Summary
private static int ALL
           
private static int APPEND
           
private static int DEPENDENCIES
           
private static int MERGE
           
private static int MILESTONE
           
private static int MILESTONE_SUMMARY
           
private static int NONE
           
private static int REPLACE
           
private static String RESOURCE
           
private static int RESOURCES
           
private static int SUMMARY
           
private static int TOP_MILESTONE
           
private static int TOP_MILESTONE_SUMMARY
           
private static int TOP_SUMMARY
           
private static int USEPROJECTLINKDATE
           
private static int USEXMLDATE
           
 
Fields inherited from class wt.projmgmt.msproject.Exporter
 
Constructor Summary
ImportRequestExporter(OutputStream ostream, ImportInfo info)
           
 
Method Summary
 void export(WfContainer c)
          Generate a request to import the specified file into the specified ProjectPlan or SummaryActivity.
(package private) static int toBitMask(ImportInfo info)
          Convert the ImportInfo object into a bitmap.
 
Methods inherited from class wt.projmgmt.msproject.Exporter
close, comment, decreaseIndent, endElement, exportBoolean, exportClass, exportCurrency, exportDateTime, exportDateTime, exportDuration, exportDuration, exportDuration, exportEnumeratedType, exportInt, exportNonNegInt, exportOwner, exportPercent, exportPrincipal, exportPrincipal, exportRate, exportString, exportUID, exportWork, getInfo, increaseIndent, startElement, startElement, writeElement, writeElement, writeElement, writeElement, writeElement, writeElement, writeElement, writeElementData, writeHeader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

NONE

private static final int NONE
See Also:
Constant Field Values

ALL

private static final int ALL
See Also:
Constant Field Values

MILESTONE

private static final int MILESTONE
See Also:
Constant Field Values

TOP_MILESTONE

private static final int TOP_MILESTONE
See Also:
Constant Field Values

MILESTONE_SUMMARY

private static final int MILESTONE_SUMMARY
See Also:
Constant Field Values

TOP_MILESTONE_SUMMARY

private static final int TOP_MILESTONE_SUMMARY
See Also:
Constant Field Values

SUMMARY

private static final int SUMMARY
See Also:
Constant Field Values

TOP_SUMMARY

private static final int TOP_SUMMARY
See Also:
Constant Field Values

DEPENDENCIES

private static final int DEPENDENCIES
See Also:
Constant Field Values

RESOURCES

private static final int RESOURCES
See Also:
Constant Field Values

USEPROJECTLINKDATE

private static final int USEPROJECTLINKDATE
See Also:
Constant Field Values

USEXMLDATE

private static final int USEXMLDATE
See Also:
Constant Field Values

REPLACE

private static final int REPLACE
See Also:
Constant Field Values

APPEND

private static final int APPEND
See Also:
Constant Field Values

MERGE

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

ImportRequestExporter

public ImportRequestExporter(OutputStream ostream,
                             ImportInfo info)
                      throws UnsupportedEncodingException
Method Detail

export

public void export(WfContainer c)
            throws WTException,
                   IOException
Generate a request to import the specified file into the specified ProjectPlan or SummaryActivity. The generated XML conforms to the Existing Project XML Schema.

The XML is written to the OutputStream that was passed in when this exporter was created.

Specified by:
export in class Exporter
Parameters:
c - the ProjectPlan or SummaryActivity to export
Throws:
WTException
IOException

toBitMask

static final int toBitMask(ImportInfo info)
Convert the ImportInfo object into a bitmap.