Enum F3State

    • Enum Constant Detail

      • DELETED

        public static final F3State DELETED
      • INACTIVE

        public static final F3State INACTIVE
      • ACTIVE

        public static final F3State ACTIVE
    • 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 name
        NullPointerException - 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