Package org.fcrepo.migration
Class DefaultContentDigest
- java.lang.Object
-
- org.fcrepo.migration.DefaultContentDigest
-
- All Implemented Interfaces:
ContentDigest
public class DefaultContentDigest extends Object implements ContentDigest
A default implementation of ContentDigest that accepts values at construction time.- Author:
- mdurbin
-
-
Constructor Summary
Constructors Constructor Description DefaultContentDigest(String type, String digest)default content digest.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDigest()Gets the value of the content digest.StringgetType()Gets the type: one of several defined in the fedora foxml schema.
-
-
-
Constructor Detail
-
DefaultContentDigest
public DefaultContentDigest(String type, String digest)
default content digest.- Parameters:
type- the typedigest- the digest
-
-
Method Detail
-
getType
public String getType()
Description copied from interface:ContentDigestGets the type: one of several defined in the fedora foxml schema.- Specified by:
getTypein interfaceContentDigest- Returns:
- string containing the type
-
getDigest
public String getDigest()
Description copied from interface:ContentDigestGets the value of the content digest.- Specified by:
getDigestin interfaceContentDigest- Returns:
- content digest
-
-