Enum Class EE
- All Implemented Interfaces:
Serializable, Comparable<EE>, Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionall()EE[]static EEgetEEFromClassVersion(int majorVersion) Return the EE associated with the given class file versionstatic EEgetEEFromReleaseVersion(int releaseVersion) Return the EE related to the release versiongetEEsFromRequirement(String requirement) From a Require-Capability header, extract the Execution Environment capability and match against EEs.intReturn the list of modulesReturn the list of packagesintorg.osgi.resource.ResourceReturn a list of capabilities associated with this EEhighestFromTargetVersion(String targetVersion) static EEstatic EEReturns the enum constant of this class with the specified name.static EE[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OSGI_Minimum_1_0
-
OSGI_Minimum_1_1
-
OSGI_Minimum_1_2
-
JRE_1_1
-
J2SE_1_2
-
J2SE_1_3
-
J2SE_1_4
-
J2SE_1_5
-
JavaSE_1_6
-
JavaSE_1_7
-
JavaSE_compact1_1_8
-
JavaSE_compact2_1_8
-
JavaSE_compact3_1_8
-
JavaSE_1_8
-
JavaSE_9
-
JavaSE_10
-
JavaSE_11
-
JavaSE_12
-
JavaSE_13
-
JavaSE_14
-
JavaSE_15
-
JavaSE_16
-
JavaSE_17
-
JavaSE_18
-
JavaSE_19
-
JavaSE_20
-
JavaSE_21
-
JavaSE_22
-
JavaSE_23
-
JavaSE_24
-
JavaSE_25
-
JavaSE_26
-
JavaSE_27
-
JavaSE_28
-
JavaSE_29
-
JavaSE_30
-
JavaSE_31
-
JavaSE_32
-
JavaSE_33
-
JavaSE_34
-
JavaSE_35
-
JavaSE_36
-
JavaSE_37
-
JavaSE_38
-
JavaSE_39
-
JavaSE_40
-
JavaSE_41
-
JavaSE_42
-
JavaSE_43
-
JavaSE_44
-
JavaSE_45
-
JavaSE_46
-
JavaSE_47
-
JavaSE_48
-
JavaSE_49
-
JavaSE_50
-
UNKNOWN
-
-
Field Details
-
MAX_SUPPORTED_RELEASE
public static final int MAX_SUPPORTED_RELEASE- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getEEName
-
getCompatible
- Returns:
- An array of EEs that this EE implicitly offers, through backwards compatibility.
-
getCapabilityName
-
getVersionLabel
-
getCapabilityVersion
-
getReleaseTarget
- Returns:
- the java release target corresponding to this EE
-
highestFromTargetVersion
-
parse
-
getPackages
Return the list of packages- Throws:
IOException- (Unchecked viaExceptions)
-
getModules
Return the list of modules- Throws:
IOException- (Unchecked viaExceptions)
-
getRelease
public int getRelease() -
getMajorVersion
public int getMajorVersion() -
getEEsFromRequirement
From a Require-Capability header, extract the Execution Environment capability and match against EEs. This is generally used with one requirement. If you add multiple, the EE's are or'ed.- Parameters:
requirement- the Require-Capability header- Returns:
- A sorted set of EEs that match one of the given requirements
-
getEEFromClassVersion
Return the EE associated with the given class file version- Parameters:
majorVersion- the class file major version- Returns:
- the EE or empty
-
getEEFromReleaseVersion
Return the EE related to the release version -
all
-
getResource
public org.osgi.resource.Resource getResource()Return a list of capabilities associated with this EE
-