Class PackagerType
- java.lang.Object
-
- org.codehaus.cargo.container.packager.PackagerType
-
-
Field Summary
Fields Modifier and Type Field Description static PackagerTypeDIRECTORYRepresents 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 booleanequals(Object object)StringgetType()inthashCode()StringtoString()static PackagerTypetoType(String typeAsString)Transform a type represented as a string into aPackagerTypeobject.
-
-
-
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 aPackagerTypeobject.- Parameters:
typeAsString- the string to transform- Returns:
- the
PackagerTypeobject
-
getType
public String getType()
- Returns:
- the packager's type as a string
-
-