Package org.restlet.engine
Enum Class Edition
- All Implemented Interfaces:
Serializable,Comparable<Edition>,Constable
Enumeration of Restlet editions.
- Author:
- Jerome Louvel
-
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 TypeMethodDescriptionReturns the full size name of the edition.Returns the medium size name of the edition.Returns the short size name of the edition.booleanReturns true if this edition is the current one.static booleanisCurrentEditionOneOf(Edition... editions) booleanReturns true if this edition is not the current one.voidSet this edition as the current one.static EditionReturns the enum constant of this class with the specified name.static Edition[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ANDROID
Android mobile OS, JEE, JSE, OSGI. -
JEE
-
JSE
-
-
Field Details
-
CURRENT
The current engine edition.
-
-
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
-
getFullName
Returns the full size name of the edition.- Returns:
- The full size of the edition.
-
getMediumName
Returns the medium size name of the edition.- Returns:
- The medium size name of the edition.
-
getShortName
Returns the short size name of the edition.- Returns:
- The short size name of the edition.
-
isCurrentEdition
public boolean isCurrentEdition()Returns true if this edition is the current one.- Returns:
- True if this edition is the current one.
-
isNotCurrentEdition
public boolean isNotCurrentEdition()Returns true if this edition is not the current one.- Returns:
- True if this edition is not the current one.
-
isCurrentEditionOneOf
-
setCurrentEdition
public void setCurrentEdition()Set this edition as the current one.
-