nl.toolforge.karma.core.module
Class ModuleDigester

java.lang.Object
  extended bynl.toolforge.karma.core.module.ModuleDigester

public final class ModuleDigester
extends java.lang.Object

Class modelling a <module>-element in a manifest file.

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

Field Summary
static java.lang.String LOCATION_PATTERN_STRING
           
static java.lang.String NAME_PATTERN_STRING
           
 
Constructor Summary
ModuleDigester(java.lang.String name, java.lang.String location)
           
 
Method Summary
 boolean equals(java.lang.Object o)
          Modules are equal when their name and location are equal.
 java.lang.String getLocation()
           
 java.lang.String getName()
           
 java.lang.String getVersion()
           
 int hashCode()
           
 void setVersion(java.lang.String version)
          Sets the modules' version.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME_PATTERN_STRING

public static final java.lang.String NAME_PATTERN_STRING
See Also:
Constant Field Values

LOCATION_PATTERN_STRING

public static final java.lang.String LOCATION_PATTERN_STRING
See Also:
Constant Field Values
Constructor Detail

ModuleDigester

public ModuleDigester(java.lang.String name,
                      java.lang.String location)
Method Detail

getName

public java.lang.String getName()

getLocation

public java.lang.String getLocation()

setVersion

public void setVersion(java.lang.String version)
Sets the modules' version. Version is used to validate the version-string that is passed as a parameter.

Parameters:
version - Version string.

getVersion

public java.lang.String getVersion()

equals

public boolean equals(java.lang.Object o)
Modules are equal when their name and location are equal.

Parameters:
o - The object instance that should be compared with this.
Returns:
true if this module descriptor

hashCode

public int hashCode()


Copyright © 2002-2004 Toolforge. All Rights Reserved.