org.codehaus.cargo.container
Class ContainerType

java.lang.Object
  extended by org.codehaus.cargo.container.ContainerType

public class ContainerType
extends java.lang.Object

Types of Containers. There are currently 3 types: Local Installed, Local Embedded and Remote.

Version:
$Id: ContainerType.java 1247 2006-11-28 12:29:37Z vmassol $

Field Summary
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
ContainerType(java.lang.String type)
           
 
Method Summary
 boolean equals(java.lang.Object object)
          
 java.lang.String getType()
           
 int hashCode()
          
 boolean isLocal()
           
 boolean isRemote()
           
 java.lang.String toString()
          
static ContainerType toType(java.lang.String typeAsString)
          Transform a type represented as a string into a ContainerType object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

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(java.lang.String type)
Parameters:
type - the internal representation of the container type. For example: "installed","embedded" or "remote".
Method Detail

toType

public static ContainerType toType(java.lang.String typeAsString)
Transform a type represented as a string into a ContainerType object.

Parameters:
typeAsString - the string to transform
Returns:
the ContainerType object

equals

public boolean equals(java.lang.Object object)

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

hashCode

public int hashCode()

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

getType

public java.lang.String getType()
Returns:
the container's type as a string

toString

public java.lang.String toString()

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

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


Copyright © 2004-2010 Codehaus. All Rights Reserved.