com.infoengine.convert
Class Upgrade

java.lang.Object
  extended bycom.infoengine.convert.Upgrade

public class Upgrade
extends Object


Nested Class Summary
private  class Upgrade.mapPair
           
 
Field Summary
(package private)  Vector Maper
           
(package private)  String message
           
(package private)  Vector nodePool
           
(package private)  Vector nonDspPool
           
(package private)  String taskdirname1
           
(package private)  String templateFilename
           
 
Constructor Summary
private Upgrade()
           
  Upgrade(String filename)
           
 
Method Summary
 void appMapToProperties()
          Converts the appMap file contents into the Properties file.
 void createHtmlFile()
          Creates HTML template file.
private  boolean createNodePool()
          Creates the webject and html node pool
 void createXmlFile(Upgrade.mapPair map)
          Creates xml file for non DSP webjects refering to the Maper for the Unique file name and the corresponding non DSP webject
private  String getDisplayFormat(Webject webject)
          Gives the Display format for the DISPLAY webject.
private  Webject getNonDspWebject(String grpIn)
          Gives the non DISPLAY webject from the nonDspPool of non DSP webjects
 String getTaskDir()
          Gives the task directory for xml files.
static void main(String[] args)
          Read the given input template file Break it into html and webject nodes Instantiate webject2.x object Upgrade webject2.x to webject4.x Generate necessary xml files Upgrade the template.
 Webject nonDspUpdate(Webject webject)
          Update the non Display webjcts to I*E 4.0 webjects Take each non Display webject from nonDspPool and update it.
 Webject uniqueXmlTaskName(Webject webject)
          Gives the unique xml filename.
(package private)  void writeWebjectToXml(Webject webject, FileOutputStream fos)
          A recurrsive function to write all the required non Display webject to the xml file If the type of the webject is not known - make it as 'UNKNOWN' type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

templateFilename

String templateFilename

nodePool

Vector nodePool

Maper

Vector Maper

nonDspPool

Vector nonDspPool

message

String message

taskdirname1

String taskdirname1
Constructor Detail

Upgrade

private Upgrade()

Upgrade

public Upgrade(String filename)
Method Detail

createNodePool

private boolean createNodePool()
Creates the webject and html node pool

Returns:
true If succeeds

createHtmlFile

public void createHtmlFile()
Creates HTML template file. * Instantiate webject2.x object * Upgrade webject2.x to webject4.x * Write htmltags and display webjects to .html file

Returns:
nothing

createXmlFile

public void createXmlFile(Upgrade.mapPair map)
Creates xml file for non DSP webjects refering to the Maper for the Unique file name and the corresponding non DSP webject


writeWebjectToXml

void writeWebjectToXml(Webject webject,
                       FileOutputStream fos)
                 throws IOException
A recurrsive function to write all the required non Display webject to the xml file If the type of the webject is not known - make it as 'UNKNOWN' type

Throws:
IOException

uniqueXmlTaskName

public Webject uniqueXmlTaskName(Webject webject)
Gives the unique xml filename. Assigns the TASK attribute of the webject to the filename. The pathname information is discarded.


getTaskDir

public String getTaskDir()
Gives the task directory for xml files. The information is from the environment variable - TASKDIR.


getNonDspWebject

private Webject getNonDspWebject(String grpIn)
Gives the non DISPLAY webject from the nonDspPool of non DSP webjects


getDisplayFormat

private String getDisplayFormat(Webject webject)
Gives the Display format for the DISPLAY webject.


nonDspUpdate

public Webject nonDspUpdate(Webject webject)
Update the non Display webjcts to I*E 4.0 webjects Take each non Display webject from nonDspPool and update it.


appMapToProperties

public void appMapToProperties()
Converts the appMap file contents into the Properties file. The appMap file will be set in System Properties 'APPMAP' If System property is not set then the Default file 'conversionTool.properties' is read.


main

public static void main(String[] args)
Read the given input template file Break it into html and webject nodes Instantiate webject2.x object Upgrade webject2.x to webject4.x Generate necessary xml files Upgrade the template.