org.codehaus.cargo.container.configuration
Class ConfigurationType

java.lang.Object
  extended byorg.codehaus.cargo.container.configuration.ConfigurationType

public class ConfigurationType
extends java.lang.Object

Configuration type of Configurations. There are currently 3 types: Standalone local, Existing local and runtime configurations.

Version:
$Id: $

Field Summary
static ConfigurationType EXISTING
          Represents an existing configuration type.
static ConfigurationType RUNTIME
          Represents a runtime configuration type.
static ConfigurationType STANDALONE
          Represents a standalone configuration type.
 
Constructor Summary
ConfigurationType(java.lang.String type)
           
 
Method Summary
 boolean equals(java.lang.Object object)
          
 java.lang.String getType()
           
 int hashCode()
          
 java.lang.String toString()
          
static ConfigurationType toType(java.lang.String typeAsString)
          Transform a type represented as a string into a ConfigurationType object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

STANDALONE

public static final ConfigurationType STANDALONE
Represents a standalone configuration type.


EXISTING

public static final ConfigurationType EXISTING
Represents an existing configuration type.


RUNTIME

public static final ConfigurationType RUNTIME
Represents a runtime configuration type.

Constructor Detail

ConfigurationType

public ConfigurationType(java.lang.String type)
Parameters:
type - the internal string representation of the configuration type. For example: "standalone", "existing" or "runtime".
Method Detail

toType

public static ConfigurationType toType(java.lang.String typeAsString)
Transform a type represented as a string into a ConfigurationType object.

Parameters:
typeAsString - the string to transform
Returns:
the ConfigurationType object

equals

public boolean equals(java.lang.Object object)

See Also:
Object.equals(Object)

hashCode

public int hashCode()

See Also:
Object.hashCode()

getType

public java.lang.String getType()
Returns:
the configuration type

toString

public java.lang.String toString()

See Also:
Object.toString()


Copyright © 2004-2007 Codehaus. All Rights Reserved.