View Javadoc

1   /*
2    * Copyright 2004-2005 Thomas Cotting
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *    http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  /*
17   * $Id: SourceGeneratorIF.java,v 1.2 2005/08/06 14:12:36 tcotting Exp $
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     publicng> 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  }