| 
Rational Developer for Power Systems Software V7.6  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ibm.etools.systems.application.visual.editor.actions.DefaultTopologyExporter
public class DefaultTopologyExporter
Default implementation of IApplicationDiagramModelExporter which can generate topology from ApplicationModel and save it to a text file. This class will be enhanced in the future by externizing the report template.
| Field Summary | |
|---|---|
protected  ApplicationModel | 
appModel
 | 
protected  String | 
artifactSeparater
 | 
static String | 
copyright
 | 
protected  String | 
groupSeparater
 | 
protected  int | 
nameGap
 | 
protected static String | 
newLineChar
 | 
protected  PrintWriter | 
printWriter
 | 
protected  String | 
sectionSeparater
 | 
protected  int | 
separatorLength
 | 
protected  int | 
tabPadding
 | 
protected  int | 
titlePad
 | 
protected  String | 
titleSeparater
 | 
| Constructor Summary | |
|---|---|
DefaultTopologyExporter()
Constructor.  | 
|
| Method Summary | |
|---|---|
protected  void | 
closeOutputWriter()
Close output writer.  | 
 void | 
copyToFile(List modelElements,
           IPath destination,
           IProgressMonitor monitor)
 | 
protected  void | 
exportBinaryArtifact(BinaryArtifact binArtifact)
Export single BinaryArtifact.  | 
protected  int | 
exportBinaryElements(ApplicationModel appModel,
                     List binaryList)
Export binary model elements.  | 
protected  void | 
exportOtherElements(ApplicationModel appModel,
                    List otherList)
Export other model elements.  | 
protected  void | 
exportSourceContainer(SourceContainer srcContainer)
Export single source container.  | 
protected  int | 
exportSourceElements(ApplicationModel appModel,
                     List sourceList)
Export source model elements.  | 
protected  PrintWriter | 
getPrintWriter()
Return printWriter.  | 
protected  void | 
handleCallblocksSummary(EList callableBlocks)
Handle summary of callable blocks.  | 
protected  void | 
handleCalledBy(EList callableBlocks)
Handle called by.  | 
protected  void | 
handleCalls(EList callableBlocks)
Handle calls.  | 
protected  void | 
handleMainEntryPoint(MainEntryPoint mp)
Handle main entry point.  | 
protected  void | 
handleModules(BinaryArtifact binArtifact)
Process module section.  | 
protected  void | 
handleUsedBy(BinaryArtifact binArtifact)
Process used by section.  | 
protected  void | 
handleUses(BinaryArtifact binArtifact)
Process uses section.  | 
protected  StringBuffer | 
padding(int number)
Pad with space.  | 
protected  StringBuffer | 
padding(int number,
        String paddingChars)
Pad with space.  | 
protected  boolean | 
prepareOutputWriter(IPath destination)
Prepare the output stream for saving topology.  | 
protected  void | 
processModelElements(ApplicationModelEditPart appModelEditPart)
Process all model elements.  | 
protected  List | 
sortElements(List list,
             boolean ignoreCase)
 | 
protected  void | 
writeBinaryArtifactSubTitle(BinaryArtifact binArtifact)
Write binary artifact subtitle.  | 
protected  void | 
writeSeparator(String separaterChar)
Write report separator.  | 
protected  void | 
writeSourceArtifactSubTitle(SourceContainer srcContainer)
Write source artifact subtitile.  | 
protected  void | 
writeTitle()
Write title.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final String copyright
protected ApplicationModel appModel
protected PrintWriter printWriter
protected int separatorLength
protected int titlePad
protected int tabPadding
protected int nameGap
protected String titleSeparater
protected String groupSeparater
protected String artifactSeparater
protected String sectionSeparater
protected static final String newLineChar
| Constructor Detail | 
|---|
public DefaultTopologyExporter()
| Method Detail | 
|---|
public void copyToFile(List modelElements,
                       IPath destination,
                       IProgressMonitor monitor)
copyToFile in interface IApplicationDiagramModelExporterprotected boolean prepareOutputWriter(IPath destination)
path - 
protected void closeOutputWriter()
protected void processModelElements(ApplicationModelEditPart appModelEditPart)
protected void writeTitle()
protected void writeSeparator(String separaterChar)
protected List sortElements(List list,
                            boolean ignoreCase)
appModel2 - 
protected int exportSourceElements(ApplicationModel appModel,
                                   List sourceList)
protected void exportSourceContainer(SourceContainer srcContainer)
srcContainer - protected void writeSourceArtifactSubTitle(SourceContainer srcContainer)
protected void handleCallblocksSummary(EList callableBlocks)
protected void handleMainEntryPoint(MainEntryPoint mp)
protected void handleCalledBy(EList callableBlocks)
protected void handleCalls(EList callableBlocks)
protected int exportBinaryElements(ApplicationModel appModel,
                                   List binaryList)
protected void exportBinaryArtifact(BinaryArtifact binArtifact)
binArtifact - protected void writeBinaryArtifactSubTitle(BinaryArtifact binArtifact)
protected void handleModules(BinaryArtifact binArtifact)
protected void handleUsedBy(BinaryArtifact binArtifact)
protected void handleUses(BinaryArtifact binArtifact)
protected void exportOtherElements(ApplicationModel appModel,
                                   List otherList)
protected StringBuffer padding(int number)
protected StringBuffer padding(int number,
                               String paddingChars)
protected PrintWriter getPrintWriter()
  | 
Rational Developer for Power Systems Software V7.6  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||