IBM Branch Transformation Toolkit Javadoc

com.ibm.btt.tools.migration.gb
Class GenGBArtifact

java.lang.Object
  extended bycom.ibm.btt.tools.migration.gb.GenGBArtifact

public class GenGBArtifact
extends java.lang.Object

The class is used for Migration purporse


Field Summary
static java.lang.String APPLICATION
           
static java.lang.String BINDTYPE
           
static java.lang.String BP
           
static java.lang.String BTT
           
static java.lang.String BUSINESSCHAE
           
static java.lang.String BUSINESSFMTE
           
static java.lang.String CHA
           
static java.lang.String EAR
           
static java.lang.String EDITFILENAME
           
static java.lang.String EJB
           
static java.lang.String EJB_FACTORY
           
static java.lang.String EJB_HOMECLASS
           
static java.lang.String EJB_IIOP
           
static java.lang.String EJB_JNDI
           
static java.lang.String ETE
           
static java.lang.String ETEE
           
static java.lang.String FILE
           
static java.lang.String FILENAME
           
static java.lang.String ID
           
static java.lang.String INVOKER
           
static java.lang.String INVOKER_IMPLECLASS
           
static java.lang.String INVOKERFILE
           
static java.lang.String INVOKERFOLDER
           
static java.lang.String INVOKERID
           
static java.lang.String INVOKERPACKAGE
           
static java.lang.String INVOKERPROPERTY
           
static java.lang.String ISLOCAL
           
(package private)  XMLString outXMLStr
           
static java.lang.String PRESENTATION
           
static java.lang.String PRESENTATION_FILEName
           
static java.lang.String PRESENTCHAE
           
static java.lang.String PRESENTFMTE
           
static java.lang.String PROJECT
           
static java.lang.String REFBP
           
static java.lang.String REFCHA
           
static java.lang.String REFSEJB
           
static java.lang.String REFWIRE
           
static java.lang.String SERVICE
           
static java.lang.String SINGLEEJB
           
static java.lang.String STRUTSCONFIG
           
static java.lang.String VALUE
           
static java.lang.String WEB
           
static java.lang.String WEBCONTENT
           
static java.lang.String WEBINF
           
static java.lang.String WSIFFILENAME
           
 
Constructor Summary
GenGBArtifact()
           
 
Method Summary
 void createSubBpNode(org.w3c.dom.Document doc, org.w3c.dom.Element presentationElement, java.util.ArrayList array, java.lang.String module, org.eclipse.core.resources.IProject project)
           
 void createSubEjbNode(org.w3c.dom.Document doc, org.w3c.dom.Element presentationElement, java.util.ArrayList array, java.lang.String module, org.eclipse.core.resources.IProject project)
          GenerateSubPresentationNode
 void generate(java.lang.String module, org.eclipse.core.resources.IProject project)
          Generate presentation Node
 void generateCHEFILE(org.eclipse.core.resources.IProject project, java.lang.String path)
           
 void generateDotEtee(java.lang.String module, org.eclipse.core.resources.IProject project)
           
 void generateDotEteeFile(java.lang.String module, org.eclipse.core.resources.IProject project)
           
 void generateEtee(java.lang.String module, org.eclipse.core.resources.IProject project)
          Generate etee xml file
 void generateFMTFILE(org.eclipse.core.resources.IProject project, java.lang.String path)
           
 java.lang.String getBpel(java.lang.String wsdlFile)
           
 java.lang.String getBPELFilePath(java.lang.String module, org.eclipse.core.resources.IProject project)
           
 java.lang.String getDSECtxPath(java.lang.String module, org.eclipse.core.resources.IProject project)
          Get dsectx.xml path
 java.lang.String getEJBXml(java.lang.String module, org.eclipse.core.resources.IProject project)
          Get ejbxml path
 java.lang.String getFactory(java.lang.String invokerID, java.lang.String module, org.eclipse.core.resources.IProject project)
          get factory
 java.lang.String getGphFile(java.lang.String module, org.eclipse.core.resources.IProject project)
          Get gphfile path
 java.lang.String getHomeClassName(java.lang.String invokerID, java.lang.String module, org.eclipse.core.resources.IProject project)
          get homeclassName
 java.lang.String getImplClass(java.lang.String invokerID, java.lang.String module, org.eclipse.core.resources.IProject project)
          get impleClass
 java.lang.String getInvokerFile(java.lang.String module, org.eclipse.core.resources.IProject project)
          Get invokerFile ##BeanInvokerRegistryMapper.properties
 java.lang.String getInvokerFolder(java.lang.String invokerID, java.lang.String module, org.eclipse.core.resources.IProject project)
          get invokerFolder
 java.lang.String getInvokerPackage(java.lang.String invokerID, java.lang.String module, org.eclipse.core.resources.IProject project)
          get invokerPackage
 java.lang.String getInvokerPropFile(java.lang.String invokerID, java.lang.String module, org.eclipse.core.resources.IProject project)
          get
 java.lang.String getInvokerRegistryFile(java.lang.String module, org.eclipse.core.resources.IProject project)
          getInvokerRegistryFile
 java.lang.String getIsLocal(java.lang.String invokerID, java.lang.String module, org.eclipse.core.resources.IProject project)
          get islocal
 java.lang.String getJndiName(java.lang.String invokerID, java.lang.String module, org.eclipse.core.resources.IProject project)
          get jndiName
 java.lang.String getLocation(java.lang.String invokerID, java.lang.String module, org.eclipse.core.resources.IProject project)
          get location
 org.w3c.dom.Document getParserDoc(java.lang.String xmlPath)
          Get pareser document
 java.lang.String getPrefix(org.eclipse.core.resources.IProject project)
           
 java.lang.String getProjName(org.eclipse.core.resources.IProject project)
           
 java.lang.String getWsdlFile(java.lang.String wsdlFile)
           
 void writeFile(java.lang.String strContent, java.lang.String filePath)
          Write to file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ETE

public static final java.lang.String ETE
See Also:
Constant Field Values

PRESENTATION

public static final java.lang.String PRESENTATION
See Also:
Constant Field Values

SINGLEEJB

public static final java.lang.String SINGLEEJB
See Also:
Constant Field Values

CHA

public static final java.lang.String CHA
See Also:
Constant Field Values

BP

public static final java.lang.String BP
See Also:
Constant Field Values

INVOKER

public static final java.lang.String INVOKER
See Also:
Constant Field Values

REFCHA

public static final java.lang.String REFCHA
See Also:
Constant Field Values

REFBP

public static final java.lang.String REFBP
See Also:
Constant Field Values

REFSEJB

public static final java.lang.String REFSEJB
See Also:
Constant Field Values

REFWIRE

public static final java.lang.String REFWIRE
See Also:
Constant Field Values

PRESENTATION_FILEName

public static final java.lang.String PRESENTATION_FILEName
See Also:
Constant Field Values

FILENAME

public static final java.lang.String FILENAME
See Also:
Constant Field Values

ID

public static final java.lang.String ID
See Also:
Constant Field Values

WSIFFILENAME

public static final java.lang.String WSIFFILENAME
See Also:
Constant Field Values

INVOKERID

public static final java.lang.String INVOKERID
See Also:
Constant Field Values

INVOKERFILE

public static final java.lang.String INVOKERFILE
See Also:
Constant Field Values

EJB_FACTORY

public static final java.lang.String EJB_FACTORY
See Also:
Constant Field Values

EJB_HOMECLASS

public static final java.lang.String EJB_HOMECLASS
See Also:
Constant Field Values

INVOKER_IMPLECLASS

public static final java.lang.String INVOKER_IMPLECLASS
See Also:
Constant Field Values

EJB_JNDI

public static final java.lang.String EJB_JNDI
See Also:
Constant Field Values

EJB_IIOP

public static final java.lang.String EJB_IIOP
See Also:
Constant Field Values

BINDTYPE

public static final java.lang.String BINDTYPE
See Also:
Constant Field Values

ISLOCAL

public static final java.lang.String ISLOCAL
See Also:
Constant Field Values

INVOKERPROPERTY

public static final java.lang.String INVOKERPROPERTY
See Also:
Constant Field Values

INVOKERPACKAGE

public static final java.lang.String INVOKERPACKAGE
See Also:
Constant Field Values

INVOKERFOLDER

public static final java.lang.String INVOKERFOLDER
See Also:
Constant Field Values

EDITFILENAME

public static final java.lang.String EDITFILENAME
See Also:
Constant Field Values

WEBCONTENT

public static final java.lang.String WEBCONTENT
See Also:
Constant Field Values

WEBINF

public static final java.lang.String WEBINF
See Also:
Constant Field Values

STRUTSCONFIG

public static final java.lang.String STRUTSCONFIG
See Also:
Constant Field Values

PRESENTFMTE

public static final java.lang.String PRESENTFMTE
See Also:
Constant Field Values

BUSINESSFMTE

public static final java.lang.String BUSINESSFMTE
See Also:
Constant Field Values

PRESENTCHAE

public static final java.lang.String PRESENTCHAE
See Also:
Constant Field Values

BUSINESSCHAE

public static final java.lang.String BUSINESSCHAE
See Also:
Constant Field Values

APPLICATION

public static final java.lang.String APPLICATION
See Also:
Constant Field Values

ETEE

public static final java.lang.String ETEE
See Also:
Constant Field Values

EAR

public static final java.lang.String EAR
See Also:
Constant Field Values

BTT

public static final java.lang.String BTT
See Also:
Constant Field Values

EJB

public static final java.lang.String EJB
See Also:
Constant Field Values

WEB

public static final java.lang.String WEB
See Also:
Constant Field Values

SERVICE

public static final java.lang.String SERVICE
See Also:
Constant Field Values

FILE

public static final java.lang.String FILE
See Also:
Constant Field Values

PROJECT

public static final java.lang.String PROJECT
See Also:
Constant Field Values

VALUE

public static final java.lang.String VALUE
See Also:
Constant Field Values

outXMLStr

XMLString outXMLStr
Constructor Detail

GenGBArtifact

public GenGBArtifact()
Method Detail

getParserDoc

public org.w3c.dom.Document getParserDoc(java.lang.String xmlPath)
                                  throws java.io.IOException,
                                         org.xml.sax.SAXException
Get pareser document

Parameters:
xmlPath -
Returns:
Document
Throws:
java.io.IOException
org.xml.sax.SAXException

writeFile

public void writeFile(java.lang.String strContent,
                      java.lang.String filePath)
               throws java.io.IOException
Write to file

Parameters:
strContent -
filePath -
Throws:
java.io.IOException

generateEtee

public void generateEtee(java.lang.String module,
                         org.eclipse.core.resources.IProject project)
                  throws java.lang.Exception
Generate etee xml file

Parameters:
module -
project -
Throws:
java.io.IOException
java.lang.Exception

generateDotEtee

public void generateDotEtee(java.lang.String module,
                            org.eclipse.core.resources.IProject project)
                     throws java.lang.Exception
Parameters:
module -
project -
Throws:
java.lang.Exception

generate

public void generate(java.lang.String module,
                     org.eclipse.core.resources.IProject project)
              throws java.lang.Exception
Generate presentation Node

Parameters:
module -
project -
Throws:
java.io.IOException - ,SAXException
java.lang.Exception

createSubEjbNode

public void createSubEjbNode(org.w3c.dom.Document doc,
                             org.w3c.dom.Element presentationElement,
                             java.util.ArrayList array,
                             java.lang.String module,
                             org.eclipse.core.resources.IProject project)
                      throws java.lang.Exception
GenerateSubPresentationNode

Parameters:
doc -
array -
module -
project -
Throws:
java.lang.Exception

createSubBpNode

public void createSubBpNode(org.w3c.dom.Document doc,
                            org.w3c.dom.Element presentationElement,
                            java.util.ArrayList array,
                            java.lang.String module,
                            org.eclipse.core.resources.IProject project)
                     throws java.lang.Exception
Parameters:
doc -
presentationElement -
array -
module -
project -
Throws:
java.lang.Exception

getGphFile

public java.lang.String getGphFile(java.lang.String module,
                                   org.eclipse.core.resources.IProject project)
                            throws java.lang.Exception
Get gphfile path

Parameters:
module -
project -
Returns:
String
Throws:
java.lang.Exception

getDSECtxPath

public java.lang.String getDSECtxPath(java.lang.String module,
                                      org.eclipse.core.resources.IProject project)
                               throws java.lang.Exception
Get dsectx.xml path

Parameters:
module -
project -
Returns:
String
Throws:
java.lang.Exception

getEJBXml

public java.lang.String getEJBXml(java.lang.String module,
                                  org.eclipse.core.resources.IProject project)
                           throws java.lang.Exception
Get ejbxml path

Parameters:
module -
project -
Returns:
String
Throws:
java.lang.Exception

getInvokerFile

public java.lang.String getInvokerFile(java.lang.String module,
                                       org.eclipse.core.resources.IProject project)
                                throws java.lang.Exception
Get invokerFile ##BeanInvokerRegistryMapper.properties

Parameters:
module -
project -
Returns:
String
Throws:
java.lang.Exception

getInvokerRegistryFile

public java.lang.String getInvokerRegistryFile(java.lang.String module,
                                               org.eclipse.core.resources.IProject project)
                                        throws java.lang.Exception
getInvokerRegistryFile

Parameters:
module -
project -
Returns:
String
Throws:
java.lang.Exception

getBPELFilePath

public java.lang.String getBPELFilePath(java.lang.String module,
                                        org.eclipse.core.resources.IProject project)
                                 throws java.lang.Exception
Parameters:
module -
project -
Returns:
String
Throws:
java.lang.Exception

getInvokerPropFile

public java.lang.String getInvokerPropFile(java.lang.String invokerID,
                                           java.lang.String module,
                                           org.eclipse.core.resources.IProject project)
                                    throws java.lang.Exception
get

Parameters:
invokerID -
module -
project -
Returns:
String
Throws:
java.lang.Exception

getInvokerFolder

public java.lang.String getInvokerFolder(java.lang.String invokerID,
                                         java.lang.String module,
                                         org.eclipse.core.resources.IProject project)
                                  throws java.lang.Exception
get invokerFolder

Parameters:
invokerID -
module -
project -
Returns:
String
Throws:
java.lang.Exception

getImplClass

public java.lang.String getImplClass(java.lang.String invokerID,
                                     java.lang.String module,
                                     org.eclipse.core.resources.IProject project)
                              throws java.lang.Exception
get impleClass

Parameters:
invokerID -
module -
project -
Returns:
String
Throws:
java.lang.Exception

getJndiName

public java.lang.String getJndiName(java.lang.String invokerID,
                                    java.lang.String module,
                                    org.eclipse.core.resources.IProject project)
                             throws java.lang.Exception
get jndiName

Parameters:
invokerID -
module -
project -
Returns:
String
Throws:
java.lang.Exception

getFactory

public java.lang.String getFactory(java.lang.String invokerID,
                                   java.lang.String module,
                                   org.eclipse.core.resources.IProject project)
                            throws java.lang.Exception
get factory

Parameters:
invokerID -
module -
project -
Returns:
String
Throws:
java.lang.Exception

getLocation

public java.lang.String getLocation(java.lang.String invokerID,
                                    java.lang.String module,
                                    org.eclipse.core.resources.IProject project)
                             throws java.lang.Exception
get location

Parameters:
invokerID -
module -
project -
Returns:
String
Throws:
java.lang.Exception

getHomeClassName

public java.lang.String getHomeClassName(java.lang.String invokerID,
                                         java.lang.String module,
                                         org.eclipse.core.resources.IProject project)
                                  throws java.lang.Exception
get homeclassName

Parameters:
invokerID -
module -
project -
Returns:
String
Throws:
java.lang.Exception

getIsLocal

public java.lang.String getIsLocal(java.lang.String invokerID,
                                   java.lang.String module,
                                   org.eclipse.core.resources.IProject project)
                            throws java.lang.Exception
get islocal

Parameters:
invokerID -
module -
project -
Returns:
String
Throws:
java.lang.Exception

getInvokerPackage

public java.lang.String getInvokerPackage(java.lang.String invokerID,
                                          java.lang.String module,
                                          org.eclipse.core.resources.IProject project)
                                   throws java.lang.Exception
get invokerPackage

Parameters:
invokerID -
module -
project -
Returns:
String
Throws:
java.lang.Exception

getBpel

public java.lang.String getBpel(java.lang.String wsdlFile)
                         throws java.lang.Exception
Parameters:
wsdlFile -
Returns:
String
Throws:
java.lang.Exception

getWsdlFile

public java.lang.String getWsdlFile(java.lang.String wsdlFile)
                             throws java.lang.Exception
Parameters:
wsdlFile -
Returns:
String
Throws:
java.lang.Exception

getPrefix

public java.lang.String getPrefix(org.eclipse.core.resources.IProject project)
                           throws java.lang.Exception
Parameters:
project -
Returns:
String
Throws:
java.lang.Exception

getProjName

public java.lang.String getProjName(org.eclipse.core.resources.IProject project)
                             throws java.lang.Exception
Parameters:
project -
Returns:
String
Throws:
java.lang.Exception

generateDotEteeFile

public void generateDotEteeFile(java.lang.String module,
                                org.eclipse.core.resources.IProject project)
                         throws java.lang.Exception
Parameters:
module -
project -
Throws:
java.lang.Exception

generateFMTFILE

public void generateFMTFILE(org.eclipse.core.resources.IProject project,
                            java.lang.String path)
                     throws java.lang.Exception
Parameters:
project -
path -
Throws:
java.lang.Exception

generateCHEFILE

public void generateCHEFILE(org.eclipse.core.resources.IProject project,
                            java.lang.String path)
                     throws java.lang.Exception
Parameters:
project -
path -
Throws:
java.lang.Exception

IBM Branch Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2005