nl.toolforge.karma.core.module
Class Module.State

java.lang.Object
  extended bynl.toolforge.karma.core.module.Module.State
Enclosing class:
Module

public static final class Module.State
extends java.lang.Object

Inner class representing the 'state' of a module. Three states exist at the moment : WORKING, STATIC and DYNAMIC.

Author:
D.A. Smedes

Constructor Summary
Module.State(java.lang.String stateString)
          Constructor.
 
Method Summary
 boolean equals(java.lang.Object o)
          Checks equality of one State instance to this State instance.
 java.lang.String getHiddenFileName()
          Returns the filename for this state on disk (generally something like .WORKING or .STATIC.
 int hashCode()
           
 java.lang.String toString()
          Gets the string representation of this state object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Module.State

public Module.State(java.lang.String stateString)
Constructor. Initializes the State instance with the correct state string.

Parameters:
stateString -
Method Detail

toString

public java.lang.String toString()
Gets the string representation of this state object.

Returns:
A String representation of this state object.

hashCode

public int hashCode()

equals

public boolean equals(java.lang.Object o)
Checks equality of one State instance to this State instance. Instances are equal when their state strings are equal.

Parameters:
o - An object instance that must be checked for equality with this State instance.
Returns:
true if this State instance equals o, otherwise false.

getHiddenFileName

public java.lang.String getHiddenFileName()
Returns the filename for this state on disk (generally something like .WORKING or .STATIC.

Returns:


Copyright © 2002-2004 Toolforge. All Rights Reserved.