Package org.codehaus.cargo.container
Class ContainerType
- java.lang.Object
-
- org.codehaus.cargo.container.ContainerType
-
-
Field Summary
Fields Modifier and Type Field Description static ContainerType
EMBEDDED
Represents a local embedded container type.static ContainerType
INSTALLED
Represents a local installed container type.static ContainerType
REMOTE
Represents a remote container type.
-
Constructor Summary
Constructors Constructor Description ContainerType(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()
boolean
isLocal()
boolean
isRemote()
String
toString()
static ContainerType
toType(String typeAsString)
Transform a type represented as a string into aContainerType
object.
-
-
-
Field Detail
-
INSTALLED
public static final ContainerType INSTALLED
Represents a local installed container type.
-
EMBEDDED
public static final ContainerType EMBEDDED
Represents a local embedded container type.
-
REMOTE
public static final ContainerType REMOTE
Represents a remote container type.
-
-
Constructor Detail
-
ContainerType
public ContainerType(String type)
- Parameters:
type
- the internal representation of the container type. For example: "installed","embedded" or "remote".
-
-
Method Detail
-
toType
public static ContainerType toType(String typeAsString)
Transform a type represented as a string into aContainerType
object.- Parameters:
typeAsString
- the string to transform- Returns:
- the
ContainerType
object
-
getType
public String getType()
- Returns:
- the container's type as a string
-
isLocal
public boolean isLocal()
- Returns:
- true if the container type is a local type (installed or embedded)
-
isRemote
public boolean isRemote()
- Returns:
- true if the container type is a remote type
-
-