Bean Builder

com.adventnet.builder.source.sourceengine
Class JavaSourceWrapper

java.lang.Object
  |
  +--com.adventnet.builder.source.sourceengine.InnerJavaSourceWrapper
        |
        +--com.adventnet.builder.source.sourceengine.JavaSourceWrapper

public class JavaSourceWrapper
extends InnerJavaSourceWrapper

JavaSourceWrapper is instantiated in the class XMLToSourceGenerator.java This class generates the required source This class extends InnerJavaSourceWrapper that contains details for inner classes in the source It also contains the neccessary informations like import statements,packages involved etc,..


Fields inherited from class com.adventnet.builder.source.sourceengine.InnerJavaSourceWrapper
accessSpecifier, classNameToInstNamesMap, extendClass, idList, implementsList, sourceList
 
Constructor Summary
JavaSourceWrapper()
          JavaSourceWrapper() is the constructor in which an arrayList is instantiated.
 
Method Summary
 void addExtraImports(java.lang.String importCode)
           
 void addImports(java.lang.String importPackage)
          Any generator like ScreenSourceGenerator,ManagedObjectGenerator,etc..
 java.lang.String getClassName()
          Any generator like ScreenSourceGenerator,ManagedObjectGenerator,etc..
 java.lang.String getImportsSourceString()
          Any generator like ScreenSourceGenerator,ManagedObjectGenerator,etc..
 java.lang.String getPackageSourceString()
          Any generator like ScreenSourceGenerator,ManagedObjectGenerator,etc..
 void setClassName(java.lang.String classNameArg)
          The setClassName method is called in ManagedObjectGenerator.java It takes string as argument and that will be class name of the generated source
 void setPackageName(java.lang.String pkgName)
          Any generator like ScreenSourceGenerator,ManagedObjectGenerator,etc..
 java.lang.String toString()
          Any generator like ScreenSourceGenerator,ManagedObjectGenerator,etc..
 
Methods inherited from class com.adventnet.builder.source.sourceengine.InnerJavaSourceWrapper
addCode, addImplements, addInnerClassCode, addMethod, addMethod, addMethod, addVariable, addVariables, getAccessSpecifier, getClassToInstNamesList, getExtendsSourceString, getImplementsSourceString, getInnerClassName, getInnerClassSource, getJunkSource, getMethodPosition, getMethodsSource, getMethodWrapper, getMethodWrapper, getMethodWrapper, getPosition, getVariablesSource, setAccessSpecifier, setExtendsClass, setInnerClassName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JavaSourceWrapper

public JavaSourceWrapper()
JavaSourceWrapper() is the constructor in which an arrayList is instantiated. This arrayList contains the packages to be imported in the source
Method Detail

setClassName

public void setClassName(java.lang.String classNameArg)
The setClassName method is called in ManagedObjectGenerator.java It takes string as argument and that will be class name of the generated source

getClassName

public java.lang.String getClassName()
Any generator like ScreenSourceGenerator,ManagedObjectGenerator,etc.. can call getClassName method It returns the class name of the generated source

setPackageName

public void setPackageName(java.lang.String pkgName)
Any generator like ScreenSourceGenerator,ManagedObjectGenerator,etc.. can call setPackageName method It takes string as an argument and that was package name specifed while creating a new project in the BeanBuilder

addImports

public void addImports(java.lang.String importPackage)
Any generator like ScreenSourceGenerator,ManagedObjectGenerator,etc.. can call addImports method It takes string as an argument and that is the java package to be imported in the source It is enough to give only the package name instead of specifying it along with the "import" word. Eg. specification java.util.* is enough instead of import java.util.*;

getPackageSourceString

public java.lang.String getPackageSourceString()
Any generator like ScreenSourceGenerator,ManagedObjectGenerator,etc.. can call getPackageSourceString * method It returns the package name of the project.

addExtraImports

public void addExtraImports(java.lang.String importCode)

getImportsSourceString

public java.lang.String getImportsSourceString()
Any generator like ScreenSourceGenerator,ManagedObjectGenerator,etc.. can call getImportsSourceString method It returns all the import statements in the source generated

toString

public java.lang.String toString()
Any generator like ScreenSourceGenerator,ManagedObjectGenerator,etc.. can call toString method It returns a string buffer and this string buffer contains the source
Overrides:
toString in class InnerJavaSourceWrapper

Bean Builder

© 2001 - 2002 AdventNet Inc. Visit us at: http://www.adventnet.com