KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > SOFA > SOFAnode > Made > CodeGen > GenFileList


1 /* $Id: GenFileList.java,v 1.1.1.1 2003/02/11 16:19:40 bures Exp $ */
2 package SOFA.SOFAnode.Made.CodeGen;
3
4 /** List of generated files.
5   *
6   * @author Petr Hnetynka
7   */

8 public class GenFileList extends java.util.ArrayList JavaDoc {
9   /** Returns index-th object in the list. */
10   public GenFile getObject(int index) {
11     return (GenFile) get(index);
12   }
13
14   /** Creates and adds new object to the list.
15     *
16     * @param genName name of the generated file
17     * @param cdlName name of the cdl entity
18     */

19   public void addNewObject(String JavaDoc genName, String JavaDoc cdlName) {
20     add(new GenFile(genName, cdlName));
21   }
22 }
23
Popular Tags