Package com.composum.sling.nodes.servlet
Enum VersionServlet.Operation
- java.lang.Object
-
- java.lang.Enum<VersionServlet.Operation>
-
- com.composum.sling.nodes.servlet.VersionServlet.Operation
-
- All Implemented Interfaces:
Serializable
,Comparable<VersionServlet.Operation>
- Enclosing class:
- VersionServlet
public static enum VersionServlet.Operation extends Enum<VersionServlet.Operation>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description activity
addlabel
checkin
checkout
checkpoint
configuration
deletelabel
labels
restore
version
versions
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static VersionServlet.Operation
valueOf(String name)
Returns the enum constant of this type with the specified name.static VersionServlet.Operation[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
checkout
public static final VersionServlet.Operation checkout
-
checkin
public static final VersionServlet.Operation checkin
-
addlabel
public static final VersionServlet.Operation addlabel
-
deletelabel
public static final VersionServlet.Operation deletelabel
-
versions
public static final VersionServlet.Operation versions
-
labels
public static final VersionServlet.Operation labels
-
version
public static final VersionServlet.Operation version
-
restore
public static final VersionServlet.Operation restore
-
configuration
public static final VersionServlet.Operation configuration
-
checkpoint
public static final VersionServlet.Operation checkpoint
-
activity
public static final VersionServlet.Operation activity
-
-
Method Detail
-
values
public static VersionServlet.Operation[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (VersionServlet.Operation c : VersionServlet.Operation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static VersionServlet.Operation valueOf(String name)
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
-
-