Class ConfigurationType
- java.lang.Object
-
- org.codehaus.cargo.container.configuration.ConfigurationType
-
public class ConfigurationType extends Object
Configuration type ofConfiguration
s. There are currently 3 types: Standalone local, Existing local and runtime configurations.
-
-
Field Summary
Fields Modifier and Type Field Description 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
Constructors Constructor Description ConfigurationType(String type)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object object)
String
getType()
int
hashCode()
String
toString()
static ConfigurationType
toType(String typeAsString)
Transform a type represented as a string into aConfigurationType
object.
-
-
-
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 aConfigurationType
object.- Parameters:
typeAsString
- the string to transform- Returns:
- the
ConfigurationType
object
-
getType
public String getType()
- Returns:
- the configuration type
-
-