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.OtherModuleLayoutTemplate;
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 W.H. Schraal
31 * @version $Id: OtherModule.java,v 1.1 2004/11/10 22:25:11 hippe Exp $
32 * @see nl.toolforge.karma.core.module.Module
33 */
34 public class OtherModule extends BaseModule {
35
36 /***
37 * Constructs an <code>OtherModule</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 OtherModule(String name, Location location) {
43 this(name, location, null);
44 }
45
46 /***
47 * Constructs an <code>OtherModule</code> with a <code>name</code>, <code>location</code> and <code>version</code>.
48 */
49 public OtherModule(String name, Location location, Version version) {
50 super(name, location, version);
51 }
52
53 public Type getInstanceType() {
54 return Module.OTHER_MODULE;
55 }
56
57 public ModuleLayoutTemplate getLayoutTemplate() {
58 return new OtherModuleLayoutTemplate();
59 }
60
61 }