Enum OpCode
- java.lang.Object
-
- java.lang.Enum<OpCode>
-
- org.ops4j.pax.web.service.spi.task.OpCode
-
- All Implemented Interfaces:
Serializable
,Comparable<OpCode>
public enum OpCode extends Enum<OpCode>
Kind of operation to perform on model
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADD
Add new modelASSOCIATE
Special association operation betweenWebContainerContext
andOsgiContextModel
DELETE
Delete existing model permanentlyDISABLE
Mark existing model as disabled.DISASSOCIATE
Special deassociation operation betweenWebContainerContext
andOsgiContextModel
ENABLE
Mark existing model as enabledMODIFY
Modify properties of existing modelNONE
Operation fully defined by its class
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static OpCode
valueOf(String name)
Returns the enum constant of this type with the specified name.static OpCode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final OpCode NONE
Operation fully defined by its class
-
ADD
public static final OpCode ADD
Add new model
-
MODIFY
public static final OpCode MODIFY
Modify properties of existing model
-
DELETE
public static final OpCode DELETE
Delete existing model permanently
-
ENABLE
public static final OpCode ENABLE
Mark existing model as enabled
-
DISABLE
public static final OpCode DISABLE
Mark existing model as disabled. It is still known, but won't be registered. Such disabled element may wait for the moment where other model (with higher ranking) was disabled/removed
-
ASSOCIATE
public static final OpCode ASSOCIATE
Special association operation betweenWebContainerContext
andOsgiContextModel
-
DISASSOCIATE
public static final OpCode DISASSOCIATE
Special deassociation operation betweenWebContainerContext
andOsgiContextModel
-
-
Method Detail
-
values
public static OpCode[] 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 (OpCode c : OpCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OpCode 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
-
-