1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package nl.toolforge.karma.core.module;
20
21 import nl.toolforge.karma.core.Version;
22 import nl.toolforge.karma.core.location.Location;
23 import nl.toolforge.karma.core.module.template.ModuleLayoutTemplate;
24 import nl.toolforge.karma.core.module.template.SourceModuleLayoutTemplate;
25
26 /***
27 * <p>A <code>SourceModule</code> represents a module for which the developer wants to have the sources available to
28 * on the local harddisk.
29 *
30 * @author D.A. Smedes
31 * @version $Id: SourceModule.java,v 1.1 2004/11/10 22:25:11 hippe Exp $
32 * @see nl.toolforge.karma.core.module.Module
33 */
34 public class SourceModule extends BaseModule {
35
36 /***
37 * Constructs a <code>SourceModule</code> with a <code>name</code> and <code>location</code>.
38 *
39 * @param name Mandatory parameter; name of the module.
40 * @param location Mandatory parameter; location of the module.
41 */
42 public SourceModule(String name, Location location) {
43 this(name, location, null);
44 }
45
46 public Type getInstanceType() {
47 return Module.JAVA_SOURCE_MODULE;
48 }
49
50 public ModuleLayoutTemplate getLayoutTemplate() {
51 return new SourceModuleLayoutTemplate();
52 }
53
54 /***
55 * Constructs a <code>SourceModule</code> with a <code>name</code>, <code>location</code> and <code>version</code>.
56 */
57 public SourceModule(String name, Location location, Version version) {
58 super(name, location, version);
59 }
60
61 }