Enum Class Edition

java.lang.Object
java.lang.Enum<Edition>
org.restlet.engine.Edition
All Implemented Interfaces:
Serializable, Comparable<Edition>, Constable

public enum Edition extends Enum<Edition>
Enumeration of Restlet editions.
Author:
Jerome Louvel
  • Enum Constant Details

    • ANDROID

      public static final Edition ANDROID
      Android mobile OS, JEE, JSE, OSGI.
    • JEE

      public static final Edition JEE
    • JSE

      public static final Edition JSE
  • Field Details

    • CURRENT

      public static Edition CURRENT
      The current engine edition.
  • Method Details

    • values

      public static Edition[] 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

      public static Edition valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getFullName

      public String getFullName()
      Returns the full size name of the edition.
      Returns:
      The full size of the edition.
    • getMediumName

      public String getMediumName()
      Returns the medium size name of the edition.
      Returns:
      The medium size name of the edition.
    • getShortName

      public String 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

      public static boolean isCurrentEditionOneOf(Edition... editions)
    • setCurrentEdition

      public void setCurrentEdition()
      Set this edition as the current one.