Package ghidra.framework.store
Enum Class CheckoutType
- All Implemented Interfaces:
Serializable
,Comparable<CheckoutType>
,Constable
ChecoutType
identifies the type of checkout-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionCheckout is a persistent exclusive checkout which ensures no other checkout can occur while this checkout persists.Checkout is a normal non-exclusive checkoutSimilar to an EXCLUSIVE checkout, this checkout only persists while the associated client-connection is alive. -
Field Summary
Modifier and TypeFieldDescriptionstatic final long
Rely on standard Java serialization for enum If the above enum naming/order is changed, the server interface version must be changed -
Method Summary
Modifier and TypeMethodDescriptionstatic CheckoutType
getCheckoutType
(int typeID) Get the CheckoutType whose name corresponds to the specified IDint
getID()
Get the abbreviated/short name for this checkout type for use with serialization.static CheckoutType
Returns the enum constant of this class with the specified name.static CheckoutType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NORMAL
Checkout is a normal non-exclusive checkout -
EXCLUSIVE
Checkout is a persistent exclusive checkout which ensures no other checkout can occur while this checkout persists. -
TRANSIENT
Similar to an EXCLUSIVE checkout, this checkout only persists while the associated client-connection is alive. This checkout is only permitted for remote versioned file systems which support its use.
-
-
Field Details
-
serialVersionUID
public static final long serialVersionUIDRely on standard Java serialization for enum If the above enum naming/order is changed, the server interface version must be changed- See Also:
-
-
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
-
getID
public int getID()Get the abbreviated/short name for this checkout type for use with serialization.- Returns:
- short name
-
getCheckoutType
Get the CheckoutType whose name corresponds to the specified ID- Parameters:
typeID
- checkout type ID- Returns:
- CheckoutType of null if ID is invalid
-