Package org.glassfish.spec
Enum Class SpecMode
- All Implemented Interfaces:
Serializable
,Comparable<SpecMode>
,Constable
API specification modes.
Value of API specification mode is passed as
specMode
configuration property.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SpecMode
getSpecMode
(String name) Get spec plugin mode with corresponding name.Returns group ID and package prefix for this mode.static SpecMode
Returns the enum constant of this class with the specified name.static SpecMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
JAVAEE
Java EE spec mode forjavaee
value ofspecMode
property (default). -
JAKARTA
Jakarta EE4J spec mode forjakarta
value ofspecMode
property.
-
-
Field Details
-
COUNT
public static final int COUNTSpec mode enumeration elements count. -
STR_TO_SPECMODE_MAP
Spec mode name to SpecMode instance conversion map. -
name
Name of spec plugin mode. Value ofname.toLowerCase()
must match correspondingspecMode
lowercase value frompom.xml
. -
prefix
Group ID and package prefix for this mode. Including'.'
at the end.
-
-
Constructor Details
-
SpecMode
Creates an instance of spec plugin mode.- Parameters:
modeName
- name of spec plugin modegroupIdPrefix
- group ID prefix for specific mode
-
-
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
-
getSpecMode
Get spec plugin mode with corresponding name.- Parameters:
name
- name of spec plugin mode- Returns:
- spec plugin mode with corresponding name or default
JAVAEE
value when no appropriate value was found.
-
grePrefix
Returns group ID and package prefix for this mode. Including'.'
at the end.- Returns:
- group ID and package prefix for this mode
-