Class DeployableVersion
- java.lang.Object
-
- org.codehaus.cargo.container.deployable.DeployableVersion
-
public final class DeployableVersion extends Object
Version of Deployable. Can be J2EE, Java EE, Jakarta EE, etc.
-
-
Field Summary
Fields Modifier and Type Field Description static DeployableVersion
J2EE
The J2EE deployable version.static DeployableVersion
JAKARTA_EE
The Jakarta EE deployable version.static DeployableVersion
JAVA_EE
The Java EE deployable version.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object object)
String
getVersion()
int
hashCode()
String
toString()
static DeployableVersion
toVersion(String versionAsString)
Transform a version represented as a string into aDeployableVersion
object.
-
-
-
Field Detail
-
J2EE
public static final DeployableVersion J2EE
The J2EE deployable version.
-
JAVA_EE
public static final DeployableVersion JAVA_EE
The Java EE deployable version.
-
JAKARTA_EE
public static final DeployableVersion JAKARTA_EE
The Jakarta EE deployable version.
-
-
Method Detail
-
toVersion
public static DeployableVersion toVersion(String versionAsString)
Transform a version represented as a string into aDeployableVersion
object.- Parameters:
versionAsString
- the string to transform- Returns:
- the
DeployableVersion
object
-
getVersion
public String getVersion()
- Returns:
- the deployable version
-
-