org.codehaus.cargo.container.packager
Class PackagerType

java.lang.Object
  extended byorg.codehaus.cargo.container.packager.PackagerType

public class PackagerType
extends java.lang.Object

Types of Packagers. There's currently one type only: "directory".

Version:
$Id: $

Field Summary
static PackagerType DIRECTORY
          Represents a directory packager, ie a packager that creates a package in a given directory.
 
Constructor Summary
PackagerType(java.lang.String type)
           
 
Method Summary
 boolean equals(java.lang.Object object)
          
 java.lang.String getType()
           
 int hashCode()
          
 java.lang.String toString()
          
static PackagerType toType(java.lang.String typeAsString)
          Transform a type represented as a string into a PackagerType object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

DIRECTORY

public static final PackagerType DIRECTORY
Represents a directory packager, ie a packager that creates a package in a given directory.

Constructor Detail

PackagerType

public PackagerType(java.lang.String type)
Parameters:
type - the internal representation of the packager type. For example: "directory".
Method Detail

toType

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

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

equals

public boolean equals(java.lang.Object object)

See Also:
Object.equals(Object)

hashCode

public int hashCode()

See Also:
Object.hashCode()

getType

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

toString

public java.lang.String toString()

See Also:
Object.toString()


Copyright © 2004-2008 Codehaus. All Rights Reserved.