Class ConfigurationType
- java.lang.Object
-
- org.codehaus.cargo.container.configuration.ConfigurationType
-
public class ConfigurationType extends Object
Configuration type ofConfigurations. There are currently 3 types: Standalone local, Existing local and runtime configurations.
-
-
Field Summary
Fields Modifier and Type Field Description static ConfigurationTypeEXISTINGRepresents an existing configuration type.static ConfigurationTypeRUNTIMERepresents a runtime configuration type.static ConfigurationTypeSTANDALONERepresents 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 booleanequals(Object object)StringgetType()inthashCode()StringtoString()static ConfigurationTypetoType(String typeAsString)Transform a type represented as a string into aConfigurationTypeobject.
-
-
-
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 aConfigurationTypeobject.- Parameters:
typeAsString- the string to transform- Returns:
- the
ConfigurationTypeobject
-
getType
public String getType()
- Returns:
- the configuration type
-
-