Class HashedNTupleIdEncapsulationLayoutConfig
- java.lang.Object
-
- edu.wisc.library.ocfl.core.extension.storage.layout.config.HashedNTupleIdEncapsulationLayoutConfig
-
- All Implemented Interfaces:
OcflExtensionConfig
public class HashedNTupleIdEncapsulationLayoutConfig extends Object implements OcflExtensionConfig
Configuration for the Hashed Truncated N-tuple Trees with Object ID Encapsulating Directory extension.
-
-
Constructor Summary
Constructors Constructor Description HashedNTupleIdEncapsulationLayoutConfig()Creates a new config object with all of the default values set.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)DigestAlgorithmgetDigestAlgorithm()StringgetExtensionName()Returns the name of the extension the config is for.intgetNumberOfTuples()intgetTupleSize()inthashCode()booleanhasParameters()Indicates if the extension defines parameters.HashedNTupleIdEncapsulationLayoutConfigsetDigestAlgorithm(DigestAlgorithm digestAlgorithm)The digest algorithm to apply on the OCFL object identifier; MUST be an algorithm that is allowed in the OCFL fixity blockvoidsetExtensionName(String extensionName)HashedNTupleIdEncapsulationLayoutConfigsetNumberOfTuples(int numberOfTuples)Indicates how many segments are used for path generationHashedNTupleIdEncapsulationLayoutConfigsetTupleSize(int tupleSize)Indicates the size of the segments (in characters) that the digest is split intoStringtoString()
-
-
-
Method Detail
-
getExtensionName
public String getExtensionName()
Description copied from interface:OcflExtensionConfigReturns the name of the extension the config is for.- Specified by:
getExtensionNamein interfaceOcflExtensionConfig- Returns:
- extension name
-
setExtensionName
public void setExtensionName(String extensionName)
-
hasParameters
public boolean hasParameters()
Description copied from interface:OcflExtensionConfigIndicates if the extension defines parameters.- Specified by:
hasParametersin interfaceOcflExtensionConfig- Returns:
- true if the extension defines parameters; false otherwise
-
getDigestAlgorithm
public DigestAlgorithm getDigestAlgorithm()
- Returns:
- the digest algorithm to use
-
setDigestAlgorithm
public HashedNTupleIdEncapsulationLayoutConfig setDigestAlgorithm(DigestAlgorithm digestAlgorithm)
The digest algorithm to apply on the OCFL object identifier; MUST be an algorithm that is allowed in the OCFL fixity block- Parameters:
digestAlgorithm- the digest algorithm to use- Returns:
- this
-
getTupleSize
public int getTupleSize()
- Returns:
- size of tuples in characters
-
setTupleSize
public HashedNTupleIdEncapsulationLayoutConfig setTupleSize(int tupleSize)
Indicates the size of the segments (in characters) that the digest is split into- Parameters:
tupleSize- size of tuples in characters- Returns:
- this
-
getNumberOfTuples
public int getNumberOfTuples()
- Returns:
- number of tuples
-
setNumberOfTuples
public HashedNTupleIdEncapsulationLayoutConfig setNumberOfTuples(int numberOfTuples)
Indicates how many segments are used for path generation- Parameters:
numberOfTuples- number of tuples- Returns:
- this
-
-