Package org.codehaus.cargo.container
Class ContainerType
- java.lang.Object
-
- org.codehaus.cargo.container.ContainerType
-
-
Field Summary
Fields Modifier and Type Field Description static ContainerTypeEMBEDDEDRepresents a local embedded container type.static ContainerTypeINSTALLEDRepresents a local installed container type.static ContainerTypeREMOTERepresents 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 booleanequals(Object object)StringgetType()inthashCode()booleanisLocal()booleanisRemote()StringtoString()static ContainerTypetoType(String typeAsString)Transform a type represented as a string into aContainerTypeobject.
-
-
-
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 aContainerTypeobject.- Parameters:
typeAsString- the string to transform- Returns:
- the
ContainerTypeobject
-
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
-
-