nl.toolforge.karma.core.module
Class SourceModule

java.lang.Object
  extended bynl.toolforge.karma.core.module.BaseModule
      extended bynl.toolforge.karma.core.module.SourceModule
All Implemented Interfaces:
Module
Direct Known Subclasses:
MavenModule

public class SourceModule
extends BaseModule

A SourceModule represents a module for which the developer wants to have the sources available to on the local harddisk.

Version:
$Id: SourceModule.java,v 1.1 2004/11/10 22:25:11 hippe Exp $
Author:
D.A. Smedes
See Also:
Module

Nested Class Summary
 
Nested classes inherited from class nl.toolforge.karma.core.module.Module
Module.State, Module.Type
 
Field Summary
 
Fields inherited from class nl.toolforge.karma.core.module.BaseModule
logger
 
Fields inherited from interface nl.toolforge.karma.core.module.Module
DYNAMIC, JAVA_ENTERPRISE_APPLICATION, JAVA_SOURCE_MODULE, JAVA_WEB_APPLICATION, LIBRARY_MODULE, MODULE_DESCRIPTOR, OTHER_MODULE, STATIC, UNKNOWN, WORKING
 
Constructor Summary
SourceModule(java.lang.String name, Location location)
          Constructs a SourceModule with a name and location.
SourceModule(java.lang.String name, Location location, Version version)
          Constructs a SourceModule with a name, location and version.
 
Method Summary
 Module.Type getInstanceType()
           
 ModuleLayoutTemplate getLayoutTemplate()
          Returns the correct layout template for the module.
 
Methods inherited from class nl.toolforge.karma.core.module.BaseModule
createRemote, equals, getBaseDir, getDependencies, getLocation, getName, getPatchLine, getType, getVersion, getVersionAsString, hasDevelopmentLine, hashCode, hasPatchLine, hasVersion, markDevelopmentLine, markPatchLine, setBaseDir, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SourceModule

public SourceModule(java.lang.String name,
                    Location location)
Constructs a SourceModule with a name and location.

Parameters:
name - Mandatory parameter; name of the module.
location - Mandatory parameter; location of the module.

SourceModule

public SourceModule(java.lang.String name,
                    Location location,
                    Version version)
Constructs a SourceModule with a name, location and version.

Method Detail

getInstanceType

public Module.Type getInstanceType()

getLayoutTemplate

public ModuleLayoutTemplate getLayoutTemplate()
Description copied from interface: Module
Returns the correct layout template for the module.

Specified by:
getLayoutTemplate in interface Module
Specified by:
getLayoutTemplate in class BaseModule


Copyright © 2002-2004 Toolforge. All Rights Reserved.