Package io.ocfl.api
Enum Class OcflOption
- All Implemented Interfaces:
Serializable
,Comparable<OcflOption>
,java.lang.constant.Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionInstructs an update operation to move files into the repository instead of copying them.Disables validations that ensure the integrity of OCFL objectsInstructs an update operation to overwrite existing files in an object. -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
contains
(OcflOption test, OcflOption... options) Returns true if the set of options contains the specified optionstatic Set
<OcflOption> toSet
(OcflOption... options) Transforms a varargs of options into a setstatic OcflOption
Returns the enum constant of this class with the specified name.static OcflOption[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OVERWRITE
Instructs an update operation to overwrite existing files in an object. -
MOVE_SOURCE
Instructs an update operation to move files into the repository instead of copying them. -
NO_VALIDATION
Disables validations that ensure the integrity of OCFL objects
-
-
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
-
toSet
Transforms a varargs of options into a set- Parameters:
options
- options- Returns:
- set of options
-
contains
Returns true if the set of options contains the specified option- Parameters:
test
- the option to look foroptions
- the set of options- Returns:
- true if the specified option is in the set
-