Package org.fcrepo.migration
Enum MigrationType
- java.lang.Object
-
- java.lang.Enum<MigrationType>
-
- org.fcrepo.migration.MigrationType
-
- All Implemented Interfaces:
Serializable,Comparable<MigrationType>
public enum MigrationType extends Enum<MigrationType>
Describes format to migrate objects to- Author:
- pwinckles
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FEDORA_OCFLAn OCFL object with Fedora specific metadataPLAIN_OCFLAn OCFL object without any F6 specific metadata
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MigrationTypevalueOf(String name)Returns the enum constant of this type with the specified name.static MigrationType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PLAIN_OCFL
public static final MigrationType PLAIN_OCFL
An OCFL object without any F6 specific metadata
-
FEDORA_OCFL
public static final MigrationType FEDORA_OCFL
An OCFL object with Fedora specific metadata
-
-
Method Detail
-
values
public static MigrationType[] 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 (MigrationType c : MigrationType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MigrationType 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
-
-