|
Sun Message Library for SWIFT API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.stc.otd.codegen.BaseGenerator
com.stc.swift.codegen.SwiftGenerator
public class SwiftGenerator
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.stc.otd.codegen.Generator |
|---|
com.stc.otd.codegen.Generator.Task |
| Field Summary | |
|---|---|
static java.lang.String |
THUNK_BPEL_CODEGEN_BYPASS
System property name to flag the Generator to suspend BPEL code generation. |
| Fields inherited from interface com.stc.otd.codegen.Generator |
|---|
DONT_PRINT_SOURCE, PRINT_SOURCE, PRINT_SOURCE_KEY, wsdlPrefix |
| Constructor Summary | |
|---|---|
SwiftGenerator()
Creates new SwiftGenerator |
|
| Method Summary | |
|---|---|
void |
compile(java.io.File sourceDir,
java.io.File targetDir)
Compile generated code. |
void |
compile(java.io.File sourceDir,
java.io.File targetDir,
java.lang.String classpath)
Compile generated code. |
void |
compile2(java.io.File srcDir,
java.io.File targetDir)
for utilities use; |
void |
generate(com.stc.otd.forest.OtdMetaContainer otd,
java.io.File baseDir,
java.lang.String jarName)
|
void |
generateJavaCode(com.stc.otd.forest.OtdMetaContainer otd,
java.io.File workingDir)
Generate all code from given tasks. |
java.util.List |
getDependentJarClassNames()
|
com.stc.log4j.Logger |
getLogger()
|
boolean |
isBuildTimeUse()
|
void |
isBuildTimeUse(boolean f)
|
void |
jarFromDir(java.io.File srcDir,
java.lang.String srcDirIncludes,
java.lang.String srcDirExcludes,
java.io.File destJar,
boolean destUpdate)
Create/update a jar with files from a directory. |
void |
jarFromJar(java.io.File srcJar,
java.lang.String srcJarIncludes,
java.lang.String srcJarExcludes,
java.io.File destJar,
boolean destUpdate)
Create/update a jar with files from another jar. |
static void |
main(java.lang.String[] args)
|
com.stc.model.common.ObjectTypeDefinition |
newRepositoryOtd(java.lang.String otdName)
Create Swift ObjectTypeDefinition object |
| Methods inherited from class com.stc.otd.codegen.BaseGenerator |
|---|
addToArchive, buildOtd, delete, generate, generate, getClassLoader, getJarFileName, jar, newDelete, newWSDLObject, newWSDLObject, normalizeOtd, setClassLoader, validateOtd |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String THUNK_BPEL_CODEGEN_BYPASS
| Constructor Detail |
|---|
public SwiftGenerator()
| Method Detail |
|---|
public com.stc.model.common.ObjectTypeDefinition newRepositoryOtd(java.lang.String otdName)
newRepositoryOtd in interface com.stc.otd.codegen.GeneratornewRepositoryOtd in class com.stc.otd.codegen.BaseGeneratorotdName - Name for new ObjectTypeDefinition
java.lang.Exception - if any errors occurBaseGenerator.newRepositoryOtd(java.lang.String)
public void compile(java.io.File sourceDir,
java.io.File targetDir)
sourceDir - Directory in which the generated code is locatedtargetDir - Directoy into which the compiled classes are placedGenerator.compile(java.io.File, java.io.File)
public void compile(java.io.File sourceDir,
java.io.File targetDir,
java.lang.String classpath)
compile in interface com.stc.otd.codegen.Generatorcompile in class com.stc.otd.codegen.BaseGeneratorsourceDir - Directory in which the generated code is locatedtargetDir - Directoy into which the compiled classes are placedclasspath - Classpath to use during compilationBaseGenerator.compile(java.io.File, java.io.File, java.lang.String)
public void compile2(java.io.File srcDir,
java.io.File targetDir)
compiler - otdMeta - srcDir - targetDir - msgType -
public void generateJavaCode(com.stc.otd.forest.OtdMetaContainer otd,
java.io.File workingDir)
throws com.stc.otd.codegen.OtdCodeGenException
otd - OTD meta container to generate code fromworkingDir - Directory where generated code and package structure should be
placed
com.stc.otd.codegen.OtdCodeGenException - if an error occurs during the code generation processGenerator.generateJavaCode(com.stc.otd.forest.OtdMetaContainer, java.io.File)
public void generate(com.stc.otd.forest.OtdMetaContainer otd,
java.io.File baseDir,
java.lang.String jarName)
throws com.stc.otd.codegen.OtdCodeGenException
generate in class com.stc.otd.codegen.BaseGeneratorotd - OtdMetaContainerbaseDir - base directory to store generated codes
com.stc.otd.codegen.OtdCodeGenExceptionBaseGenerator.generate(com.stc.otd.forest.OtdMetaContainer, java.io.File, java.lang.String)
public void jarFromJar(java.io.File srcJar,
java.lang.String srcJarIncludes,
java.lang.String srcJarExcludes,
java.io.File destJar,
boolean destUpdate)
srcJar - The source jar where some files will be extracted from.srcJarIncludes - Pattern for includessrcJarExcludes - Pattern for excludesdestJar - The destination jar which will be created/updated.destUpdate - true - update the destJar; false - overwrite/create the destJar
public void jarFromDir(java.io.File srcDir,
java.lang.String srcDirIncludes,
java.lang.String srcDirExcludes,
java.io.File destJar,
boolean destUpdate)
srcDir - The source dir where some files will be picked from.srcDirIncludes - Pattern for includessrcDirExcludes - Pattern for excludesdestJar - The destination jar which will be created/updated.destUpdate - true - update the destJar; false - overwrite/create the destJarpublic java.util.List getDependentJarClassNames()
getDependentJarClassNames in interface com.stc.otd.codegen.GeneratorgetDependentJarClassNames in class com.stc.otd.codegen.BaseGeneratorBaseGenerator.getDependentJarClassNames()public void isBuildTimeUse(boolean f)
f - public boolean isBuildTimeUse()
public static void main(java.lang.String[] args)
public com.stc.log4j.Logger getLogger()
|
Sun Message Library for SWIFT API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||