KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > finalist > jag > skelet > SkeletModule


1 /* Copyright (C) 2003 Finalist IT Group
2  *
3  * This file is part of JAG - the Java J2EE Application Generator
4  *
5  * JAG is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  * JAG is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  * You should have received a copy of the GNU General Public License
14  * along with JAG; if not, write to the Free Software
15  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16  */

17
18 package com.finalist.jag.skelet;
19
20
21 import java.util.*;
22
23
24 /**
25  * Class SkeletModule
26  *
27  *
28  * @author Wendel D. de Witte
29  * @version %I%, %G%
30  */

31 public class SkeletModule extends ModuleData {
32
33    /** Field refname */
34    private String JavaDoc refname;
35
36    /** Field refs */
37    private Collection refs = null;
38
39
40    /**
41     * Constructor SkeletModule
42     *
43     *
44     * @param name
45     *
46     */

47    public SkeletModule(String JavaDoc name) {
48       super(name, new ArrayList());
49    }
50
51
52    /**
53     * Method getRefname
54     *
55     *
56     * @return
57     *
58     */

59    public String JavaDoc getRefname() {
60       return (this.refname);
61    }
62
63
64    /**
65     * Method setRefname
66     *
67     *
68     * @param refname
69     *
70     */

71    public void setRefname(String JavaDoc refname) {
72       this.refname = refname;
73    }
74
75
76    /**
77     * Method getRefs
78     *
79     *
80     * @return
81     *
82     */

83    public Collection getRefs() {
84
85       if (refs == null) {
86          refs = new ArrayList();
87       }
88
89       return (this.refs);
90    }
91
92
93    /**
94     * Method setRefs
95     *
96     *
97     * @param refs
98     *
99     */

100    public void setRefs(Collection refs) {
101       this.refs = refs;
102    }
103
104    public String JavaDoc toString() {
105       return "<SkeletModule: refname=" + refname + " - refs=" + refs + '>';
106    }
107 }
Popular Tags