Class JavaEEVersion
java.lang.Object
org.apache.maven.plugins.ear.util.JavaEEVersion
- All Implemented Interfaces:
Comparable<JavaEEVersion>
Represents the supported JavaEE version.
- Author:
- Stephane Nicoll
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JavaEEVersionRepresents the JavaEE 8 version.static final JavaEEVersionRepresents the JakartaEE 11 version.static final JavaEEVersionRepresents the JavaEE 5 version.static final JavaEEVersionRepresents the JakartaEE 9 version.static final JavaEEVersionRepresents the J2EE 1.4 version.static final JavaEEVersionRepresents the J2EE 1.3 version.static final JavaEEVersionRepresents the JavaEE 7 version.static final JavaEEVersionRepresents the JavaEE 6 version.static final JavaEEVersionRepresents the JakartaEE 10 version. -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(JavaEEVersion otherVersion) booleaneq(JavaEEVersion paramVersion) Specifies if this version is equal to the specified version.booleange(JavaEEVersion paramVersion) Specifies if this version is greater or equal to the specified version.static JavaEEVersiongetJavaEEVersion(String paramVersion) Returns the version as a string.booleangt(JavaEEVersion paramVersion) Specifies if this version is greater than the specified version.booleanle(JavaEEVersion paramVersion) Specifies if this version is less or equal to the specified version.booleanlt(JavaEEVersion paramVersion) Specifies if this version is less than the specified version.
-
Field Details
-
ONE_DOT_THREE
Represents the J2EE 1.3 version. -
ONE_DOT_FOUR
Represents the J2EE 1.4 version. -
FIVE
Represents the JavaEE 5 version. -
SIX
Represents the JavaEE 6 version. -
SEVEN
Represents the JavaEE 7 version. -
EIGHT
Represents the JavaEE 8 version. -
NINE
Represents the JakartaEE 9 version. -
TEN
Represents the JakartaEE 10 version. -
ELEVEN
Represents the JakartaEE 11 version.
-
-
Method Details
-
getJavaEEVersion
- Parameters:
paramVersion- The version.- Returns:
JavaEEVersion- Throws:
InvalidJavaEEVersion- in case of a wrong version.
-
getVersion
Returns the version as a string.- Returns:
- the version string
-
ge
Specifies if this version is greater or equal to the specified version.- Parameters:
paramVersion- the version to check- Returns:
- true if this version is greater or equal to
version
-
gt
Specifies if this version is greater than the specified version.- Parameters:
paramVersion- the version to check- Returns:
- true if this version is greater to
version
-
eq
Specifies if this version is equal to the specified version.- Parameters:
paramVersion- the version to check- Returns:
- true if this version is equal to
version
-
le
Specifies if this version is less or equal to the specified version.- Parameters:
paramVersion- the version to check- Returns:
- true if this version is less or equal to
version
-
lt
Specifies if this version is less than the specified version.- Parameters:
paramVersion- the version to check- Returns:
- true if this version is less or equal to
version
-
compareTo
- Specified by:
compareToin interfaceComparable<JavaEEVersion>
-