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 JavaEEVersion
Represents the JavaEE 8 version.static final JavaEEVersion
Represents the JakartaEE 11 version.static final JavaEEVersion
Represents the JavaEE 5 version.static final JavaEEVersion
Represents the JakartaEE 9 version.static final JavaEEVersion
Represents the J2EE 1.4 version.static final JavaEEVersion
Represents the J2EE 1.3 version.static final JavaEEVersion
Represents the JavaEE 7 version.static final JavaEEVersion
Represents the JavaEE 6 version.static final JavaEEVersion
Represents the JakartaEE 10 version. -
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(JavaEEVersion otherVersion) boolean
eq
(JavaEEVersion paramVersion) Specifies if this version is equal to the specified version.boolean
ge
(JavaEEVersion paramVersion) Specifies if this version is greater or equal to the specified version.static JavaEEVersion
getJavaEEVersion
(String paramVersion) Returns the version as a string.boolean
gt
(JavaEEVersion paramVersion) Specifies if this version is greater than the specified version.boolean
le
(JavaEEVersion paramVersion) Specifies if this version is less or equal to the specified version.boolean
lt
(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:
compareTo
in interfaceComparable<JavaEEVersion>
-