1   
2   
3   
4   
5   
6   
7   
8   
9   
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  package ch.oscg.jreleaseinfo;
20  
21  import java.util.Map;
22  
23  
24  /***
25   * Source Generator Interface defines the
26   * method an implementation must provide in
27   * order to be called as Plug-In from the BuilInfoBean
28   * class.
29   * @author Thomas Cotting, Tangarena Engineering AG, Luzern
30   * @version $Revision: 1.2 $ ($Date: 2005/08/06 14:12:36 $ / $Author: tcotting $)
31   */
32  public interface SourceGeneratorIF {
33     /***
34      * Set the packagename.
35      * @param packageName
36      */
37     public abstract void setPackageName(String packageName)/package-summary.html">ng> abstract void setPackageName(String packageName);
38  
39     /***
40      * Set the classname.
41      * @param className
42      */
43     public abstract void setClassName(String className);
44  
45     /***
46      * Set the property map.
47      * @param property map
48      */
49     public abstract void setProperties(Map props);
50  
51     /***
52      * Utility method to write the class java code to a String.
53      * @return the created java class in a string
54      */
55     public abstract String createCode();
56  }