org.codehaus.cargo.container.configuration
Class ConfigurationType

java.lang.Object
  extended by org.codehaus.cargo.container.configuration.ConfigurationType

public class ConfigurationType
extends Object

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

Version:
$Id: ConfigurationType.java 1705 2008-09-02 13:14:55Z adriana $

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(String type)
           
 
Method Summary
 boolean equals(Object object)
          
 String getType()
           
 int hashCode()
          
 String toString()
          
static ConfigurationType toType(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(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(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(Object object)

Overrides:
equals in class Object
See Also:
Object.equals(Object)

hashCode

public int hashCode()

Overrides:
hashCode in class Object
See Also:
Object.hashCode()

getType

public String getType()
Returns:
the configuration type

toString

public String toString()

Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2004-2012 Codehaus. All Rights Reserved.