Class SimpleInventory
- java.lang.Object
-
- edu.wisc.library.ocfl.core.validation.model.SimpleInventory
-
public class SimpleInventory extends Object
A minimally structured representation of an OCFL inventory
-
-
Field Summary
Fields Modifier and Type Field Description static StringCONTENT_DIR_KEYstatic StringDIGEST_ALGO_KEYstatic StringFIXITY_KEYstatic StringHEAD_KEYstatic StringID_KEYstatic StringMANIFEST_KEYstatic StringTYPE_KEYstatic StringVERSIONS_KEY
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetContentDirectory()StringgetDigestAlgorithm()Map<String,Map<String,List<String>>>getFixity()StringgetHead()StringgetId()Map<String,String>getInvertedManifest()Map<String,String>getInvertedManifestCopy()Map<String,List<String>>getManifest()StringgetType()Map<String,SimpleVersion>getVersions()inthashCode()SimpleInventorysetContentDirectory(String contentDirectory)SimpleInventorysetDigestAlgorithm(String digestAlgorithm)SimpleInventorysetFixity(Map<String,Map<String,List<String>>> fixity)SimpleInventorysetHead(String head)SimpleInventorysetId(String id)SimpleInventorysetManifest(Map<String,List<String>> manifest)SimpleInventorysetType(String type)SimpleInventorysetVersions(Map<String,SimpleVersion> versions)StringtoString()
-
-
-
Field Detail
-
ID_KEY
public static final String ID_KEY
- See Also:
- Constant Field Values
-
TYPE_KEY
public static final String TYPE_KEY
- See Also:
- Constant Field Values
-
DIGEST_ALGO_KEY
public static final String DIGEST_ALGO_KEY
- See Also:
- Constant Field Values
-
HEAD_KEY
public static final String HEAD_KEY
- See Also:
- Constant Field Values
-
CONTENT_DIR_KEY
public static final String CONTENT_DIR_KEY
- See Also:
- Constant Field Values
-
FIXITY_KEY
public static final String FIXITY_KEY
- See Also:
- Constant Field Values
-
MANIFEST_KEY
public static final String MANIFEST_KEY
- See Also:
- Constant Field Values
-
VERSIONS_KEY
public static final String VERSIONS_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getId
public String getId()
-
setId
public SimpleInventory setId(String id)
-
getType
public String getType()
-
setType
public SimpleInventory setType(String type)
-
getDigestAlgorithm
public String getDigestAlgorithm()
-
setDigestAlgorithm
public SimpleInventory setDigestAlgorithm(String digestAlgorithm)
-
getHead
public String getHead()
-
setHead
public SimpleInventory setHead(String head)
-
getContentDirectory
public String getContentDirectory()
-
setContentDirectory
public SimpleInventory setContentDirectory(String contentDirectory)
-
setManifest
public SimpleInventory setManifest(Map<String,List<String>> manifest)
-
getVersions
public Map<String,SimpleVersion> getVersions()
-
setVersions
public SimpleInventory setVersions(Map<String,SimpleVersion> versions)
-
getInvertedManifest
public Map<String,String> getInvertedManifest()
- Returns:
- an inverted version of the manifest -- should NOT be modified
-
getInvertedManifestCopy
public Map<String,String> getInvertedManifestCopy()
- Returns:
- a copy of the inverted version of the manifest -- may be modified
-
-