|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.btt.tools.migration.util.CommonUtils
CommonUtils Provides some of common use of APIs.
Field Summary | |
---|---|
protected static org.eclipse.core.resources.IProject |
EJBProject
|
protected static int |
invokerType
|
protected static java.lang.String |
jspFilePath
|
protected static boolean |
onWSADIE
|
protected static org.eclipse.core.resources.IProject |
SvcProject
|
protected static org.eclipse.core.resources.IProject |
WebProject
|
Constructor Summary | |
---|---|
CommonUtils()
|
Method Summary | |
---|---|
static org.eclipse.core.resources.IProject |
getEJBProject()
|
static int |
getInvokerType()
get the invoker type 0: for html 1: for java client 2: for both |
static java.lang.String |
getJspFilePath()
|
static org.eclipse.core.resources.IProject |
getSvcProject()
|
static org.eclipse.core.resources.IProject |
getWebProject()
|
static void |
initBTTEnv(java.lang.String iniPath)
Initialize the BTT environment by using the specified dse.ini file. |
static boolean |
isBTTEnvInitialized()
Check whether BTT environment is initialized or not |
static boolean |
isOnWSADIE()
|
static void |
redirectSystemOut(java.lang.String logfile)
Redirect the system out from the console to a log file. |
static java.lang.String |
replaceAll(java.lang.String str,
java.lang.String oldStr,
java.lang.String newStr)
Replace a short sting with a long string by a specified string. |
static void |
setEJBProject(org.eclipse.core.resources.IProject project)
|
static void |
setInvokerType(int type)
|
static void |
setJspFilePath(java.lang.String string)
|
static void |
setOnWSADIE(boolean b)
|
static void |
setSvcProject(org.eclipse.core.resources.IProject project)
|
static void |
setWebProject(org.eclipse.core.resources.IProject project)
|
static java.lang.String |
toOneString(int deep,
Tag aTag)
|
static java.lang.String |
toOneString(int deep,
Tag aTag)
|
static java.lang.String |
toOneString(int deep,
Vector Tags)
|
static void |
writeToTaget(java.lang.String targetLoc,
java.lang.String fileName,
java.lang.String outString)
Write the BTT defintion string which is got from the externalizer to a file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static boolean onWSADIE
protected static org.eclipse.core.resources.IProject WebProject
protected static org.eclipse.core.resources.IProject SvcProject
protected static org.eclipse.core.resources.IProject EJBProject
protected static java.lang.String jspFilePath
protected static int invokerType
Constructor Detail |
public CommonUtils()
Method Detail |
public static void redirectSystemOut(java.lang.String logfile) throws java.lang.Exception
java.lang.Exception
public static void initBTTEnv(java.lang.String iniPath) throws java.io.IOException, DSEException
iniPath
-
java.io.IOException
DSEException
public static boolean isBTTEnvInitialized()
public static java.lang.String replaceAll(java.lang.String str, java.lang.String oldStr, java.lang.String newStr)
str
- A string contains the string that will be replacedoldStr
- A string that will be replacednewStr
- A string will be instead of.
public static void writeToTaget(java.lang.String targetLoc, java.lang.String fileName, java.lang.String outString) throws java.lang.Exception
targetLoc
- fileName
- outString
-
java.lang.Exception
public static java.lang.String toOneString(int deep, Tag aTag)
public static java.lang.String toOneString(int deep, Tag aTag)
public static java.lang.String toOneString(int deep, Vector Tags)
public static org.eclipse.core.resources.IProject getEJBProject()
public static boolean isOnWSADIE()
public static org.eclipse.core.resources.IProject getSvcProject()
public static org.eclipse.core.resources.IProject getWebProject()
public static void setEJBProject(org.eclipse.core.resources.IProject project)
project
- public static void setOnWSADIE(boolean b)
b
- public static void setSvcProject(org.eclipse.core.resources.IProject project)
project
- public static void setWebProject(org.eclipse.core.resources.IProject project)
project
- public static java.lang.String getJspFilePath()
public static void setJspFilePath(java.lang.String string)
string
- public static void setInvokerType(int type)
type
- public static int getInvokerType()
|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |