Enum Class Version.Action

All Implemented Interfaces:
Serializable, Comparable<Version.Action>, Constable
Enclosing class:
Version

public static enum Version.Action extends Enum<Version.Action>
The VersionAction attribute may also be the strings FIRST, LATEST, PREVIOUS, NEXT and ALL.
  • Enum Constant Details

    • FIRST

      public static final Version.Action FIRST
      Select the first version of a resource.
    • LAST

      public static final Version.Action LAST
      Select the most recent version of a resource.
    • NEXT

      public static final Version.Action NEXT
      Select the previous version of a resource relative to the version specified using the rid attribute.
    • PREVIOUS

      public static final Version.Action PREVIOUS
      Select the next version of a resource relative to the version specified using the rid attribute.
    • ALL

      public static final Version.Action ALL
      Select all available version of a resource.
  • Method Details

    • values

      public static Version.Action[] 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 Version.Action 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
    • lookup

      public static Version.Action lookup(int ordinal)