Class FedoraOcflMapping

java.lang.Object
org.fcrepo.persistence.ocfl.impl.FedoraOcflMapping

public class FedoraOcflMapping extends Object
A mapping that links the parent fedora resource to its corresponding OCFL object.
Author:
dbernstein
  • Constructor Details

    • FedoraOcflMapping

      public FedoraOcflMapping(org.fcrepo.kernel.api.identifiers.FedoraId rootObjectIdentifier, String ocflObjectId)
      Default constructor
      Parameters:
      rootObjectIdentifier - The fedora root object resource identifier
      ocflObjectId - The OCFL Object identitifer
  • Method Details

    • getRootObjectIdentifier

      public org.fcrepo.kernel.api.identifiers.FedoraId getRootObjectIdentifier()
      The id for the fedora resource which represents this ocfl object
      Returns:
      the fedora root object identifier
    • getOcflObjectId

      Retrieve the OCFL object identifier associated with the Fedora resource
      Returns:
      the ocfl object identifier
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object