|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.maven.plugin.ear.util.JavaEEVersion
public class JavaEEVersion
Represents the supported JavaEE version.
Field Summary | |
---|---|
static JavaEEVersion |
Five
Represents the JavaEE 5 version. |
static JavaEEVersion |
OneDotFour
Represents the J2EE 1.4 version. |
static JavaEEVersion |
OneDotThree
Represents the J2EE 1.3 version. |
static JavaEEVersion |
Six
Represents the JavaEE 7 version. |
Method Summary | |
---|---|
int |
compareTo(JavaEEVersion otherVersion)
|
boolean |
eq(JavaEEVersion version)
Specifies if this version is equal to the specified version. |
boolean |
ge(JavaEEVersion version)
Specifies if this version is greater or equal to the specified version. |
static JavaEEVersion |
getJavaEEVersion(String version)
|
String |
getVersion()
Returns the version as a string. |
boolean |
gt(JavaEEVersion version)
Specifies if this version is greater than the specified version. |
boolean |
le(JavaEEVersion version)
Specifies if this version is less or equal to the specified version. |
boolean |
lt(JavaEEVersion version)
Specifies if this version is less than the specified version. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final JavaEEVersion OneDotThree
public static final JavaEEVersion OneDotFour
public static final JavaEEVersion Five
public static final JavaEEVersion Six
Method Detail |
---|
public static JavaEEVersion getJavaEEVersion(String version) throws InvalidJavaEEVersion
InvalidJavaEEVersion
public String getVersion()
public boolean ge(JavaEEVersion version)
version
- the version to check
public boolean gt(JavaEEVersion version)
version
- the version to check
public boolean eq(JavaEEVersion version)
version
- the version to check
public boolean le(JavaEEVersion version)
version
- the version to check
public boolean lt(JavaEEVersion version)
version
- the version to check
public int compareTo(JavaEEVersion otherVersion)
compareTo
in interface Comparable<JavaEEVersion>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |