Class PackagerType
- java.lang.Object
-
- org.codehaus.cargo.container.packager.PackagerType
-
-
Field Summary
Fields Modifier and Type Field Description static PackagerType
DIRECTORY
Represents a directory packager, ie a packager that creates a package in a given directory.
-
Constructor Summary
Constructors Constructor Description PackagerType(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()
String
toString()
static PackagerType
toType(String typeAsString)
Transform a type represented as a string into aPackagerType
object.
-
-
-
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(String type)
- Parameters:
type
- the internal representation of the packager type. For example: "directory".
-
-
Method Detail
-
toType
public static PackagerType toType(String typeAsString)
Transform a type represented as a string into aPackagerType
object.- Parameters:
typeAsString
- the string to transform- Returns:
- the
PackagerType
object
-
getType
public String getType()
- Returns:
- the packager's type as a string
-
-