Package org.glassfish.spec
Enum SpecMode
- All Implemented Interfaces:
Serializable,Comparable<SpecMode>,java.lang.constant.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 -
Method Summary
Modifier and TypeMethodDescriptionstatic SpecModegetSpecMode(String name) Get spec plugin mode with corresponding name.Returns group ID and package prefix for this mode.static SpecModeReturns the enum constant of this type with the specified name.static SpecMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
JAVAEE
Java EE spec mode forjavaeevalue ofspecModeproperty (default). -
JAKARTA
Jakarta EE4J spec mode forjakartavalue ofspecModeproperty.
-
-
Field Details
-
COUNT
public static final int COUNTSpec mode enumeration elements count.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type 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
JAVAEEvalue 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
-