Enum F3State
- java.lang.Object
-
- java.lang.Enum<F3State>
-
- org.fcrepo.migration.validator.impl.F3State
-
- All Implemented Interfaces:
Serializable,Comparable<F3State>
public enum F3State extends Enum<F3State>
Possible states for Fedora 3 Objects- Author:
- mikejritter
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static F3StatefromProperty(org.fcrepo.migration.ObjectProperty property)Create a F3State from an ObjectPropertystatic F3StatefromString(String state)Create a F3State from a StringbooleanisDeleted(boolean deleteInactive)Check if a F3State should be treated as Deleted in the Fedora 6 repositorystatic F3StatevalueOf(String name)Returns the enum constant of this type with the specified name.static F3State[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Method Detail
-
values
public static F3State[] 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 (F3State c : F3State.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static F3State 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
-
fromString
public static F3State fromString(String state)
Create a F3State from a String- Parameters:
state- the state- Returns:
-
fromProperty
public static F3State fromProperty(org.fcrepo.migration.ObjectProperty property)
Create a F3State from an ObjectProperty- Parameters:
property- the ObjectProperty- Returns:
-
isDeleted
public boolean isDeleted(boolean deleteInactive)
Check if a F3State should be treated as Deleted in the Fedora 6 repository- Parameters:
deleteInactive- if Inactive state are Deleted- Returns:
- true if the F3State is Deleted or deleteInactive is set and the state is Inactive
-
-