| %line | %branch | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| nl.toolforge.karma.core.manifest.SourceModule |
|
|
| 1 | /* |
|
| 2 | Karma core - Core of the Karma application |
|
| 3 | Copyright (C) 2004 Toolforge <www.toolforge.nl> |
|
| 4 | ||
| 5 | This library is free software; you can redistribute it and/or |
|
| 6 | modify it under the terms of the GNU Lesser General Public |
|
| 7 | License as published by the Free Software Foundation; either |
|
| 8 | version 2.1 of the License, or (at your option) any later version. |
|
| 9 | ||
| 10 | This library is distributed in the hope that it will be useful, |
|
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
| 13 | Lesser General Public License for more details. |
|
| 14 | ||
| 15 | You should have received a copy of the GNU Lesser General Public |
|
| 16 | License along with this library; if not, write to the Free Software |
|
| 17 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
| 18 | */ |
|
| 19 | package nl.toolforge.karma.core.manifest; |
|
| 20 | ||
| 21 | import nl.toolforge.karma.core.Version; |
|
| 22 | import nl.toolforge.karma.core.location.Location; |
|
| 23 | import nl.toolforge.karma.core.manifest.util.ModuleLayoutTemplate; |
|
| 24 | import nl.toolforge.karma.core.manifest.util.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.27 2004/10/19 22:11:15 hippe Exp $ |
|
| 32 | * @see 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 | 284 | this(name, location, null); |
| 44 | 284 | } |
| 45 | ||
| 46 | public Type getInstanceType() { |
|
| 47 | 0 | return Module.JAVA_SOURCE_MODULE; |
| 48 | } |
|
| 49 | ||
| 50 | public ModuleLayoutTemplate getLayoutTemplate() { |
|
| 51 | 28 | 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 | 360 | super(name, location, version); |
| 59 | 360 | } |
| 60 | ||
| 61 | } |
| This report is generated by jcoverage, Maven and Maven JCoverage Plugin. |