IBM Branch Transformation Toolkit Javadoc

com.ibm.btt.tools.migration
Class DefinitionImportKit

java.lang.Object
  extended bycom.ibm.btt.tools.migration.DefinitionImportKit

public class DefinitionImportKit
extends java.lang.Object

DefinitionImportKit The entry of the definition import module. It provides the interfaces to perform the necessary tasks.


Constructor Summary
DefinitionImportKit()
           
 
Method Summary
static java.lang.String[] getDseIniListInEAR()
          Retrieve the list of the dse.ini file in the EAR file.
static java.lang.String[] getDseIniListInEAR(java.lang.String earFile)
          Retrieve the list of the dse.ini file in the EAR file.
static ImportFromURL getImportFromURLInstance()
          Get the instance of ImportFromURL.
static java.lang.String getTargetLoc()
          Get the target path that will store the imported definition files.
static void importFromEAR(java.lang.String dseIniFile)
          Import the definition file with the specified dse.ini file from EAR.
static void importFromEAR(java.lang.String dseIniFile, java.lang.String earFile)
          Import the definition file with the specified dse.ini file from EAR.
static void importFromURL(java.lang.String dseIniFile)
          Import the definition file with the specified dse.ini file from the disk or URL
static void main(java.lang.String[] args)
           
static void setImportEAR(java.lang.String earFile)
          Set the ear file which will be extracted the definition file
static void setTargetLoc(java.lang.String path)
          Set the target path to put the imported files
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefinitionImportKit

public DefinitionImportKit()
Method Detail

main

public static void main(java.lang.String[] args)

setTargetLoc

public static void setTargetLoc(java.lang.String path)
Set the target path to put the imported files

Parameters:
path -

setImportEAR

public static void setImportEAR(java.lang.String earFile)
Set the ear file which will be extracted the definition file

Parameters:
earFile -

getImportFromURLInstance

public static ImportFromURL getImportFromURLInstance()
Get the instance of ImportFromURL. Singleton

Returns:
ImportFromURL

getDseIniListInEAR

public static java.lang.String[] getDseIniListInEAR()
                                             throws java.lang.Exception
Retrieve the list of the dse.ini file in the EAR file. The EAR file was specified by setImportEAR

Returns:
String[]
Throws:
java.lang.Exception

getDseIniListInEAR

public static java.lang.String[] getDseIniListInEAR(java.lang.String earFile)
                                             throws java.lang.Exception
Retrieve the list of the dse.ini file in the EAR file.

Parameters:
earFile - the EAR file that contains the dse.ini file
Returns:
String[]
Throws:
java.lang.Exception

importFromEAR

public static void importFromEAR(java.lang.String dseIniFile)
                          throws java.lang.Exception
Import the definition file with the specified dse.ini file from EAR. The ear file is specified by setImportEAR method

Parameters:
dseIniFile -
Throws:
java.lang.Exception

importFromURL

public static void importFromURL(java.lang.String dseIniFile)
                          throws java.lang.Exception
Import the definition file with the specified dse.ini file from the disk or URL

Parameters:
dseIniFile -
Throws:
java.lang.Exception

importFromEAR

public static void importFromEAR(java.lang.String dseIniFile,
                                 java.lang.String earFile)
                          throws java.lang.Exception
Import the definition file with the specified dse.ini file from EAR.

Parameters:
dseIniFile -
earFile -
Throws:
java.lang.Exception

getTargetLoc

public static java.lang.String getTargetLoc()
Get the target path that will store the imported definition files.

Returns:
String

IBM Branch Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2005