Class DigitalObject
java.lang.Object
de.digitalcollections.model.UniqueObject
de.digitalcollections.model.identifiable.Identifiable
de.digitalcollections.model.identifiable.entity.Entity
de.digitalcollections.model.identifiable.entity.digitalobject.DigitalObject
A (cultural) digital object, can be a retro digitization of a physical object or a digital native
object.
A digital object can be related to an item
, and it also be part of a parent
digital object.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
DigitalObject.DigitalObjectBuilder<C extends DigitalObject,
B extends DigitalObject.DigitalObjectBuilder<C, B>> Nested classes/interfaces inherited from class de.digitalcollections.model.identifiable.entity.Entity
Entity.EntityBuilder<C extends Entity,
B extends Entity.EntityBuilder<C, B>> Nested classes/interfaces inherited from class de.digitalcollections.model.identifiable.Identifiable
Identifiable.IdentifiableBuilder<C extends Identifiable,
B extends Identifiable.IdentifiableBuilder<C, B>> Nested classes/interfaces inherited from class de.digitalcollections.model.UniqueObject
UniqueObject.UniqueObjectBuilder<C extends UniqueObject,
B extends UniqueObject.UniqueObjectBuilder<C, B>> -
Field Summary
Fields inherited from class de.digitalcollections.model.identifiable.entity.Entity
customAttributes, navDate, notes, refId
Fields inherited from class de.digitalcollections.model.identifiable.Identifiable
description, identifiableObjectType, identifiers, label, localizedUrlAliases, previewImage, previewImageRenderingHints, subjects, tags, type
Fields inherited from class de.digitalcollections.model.UniqueObject
created, lastModified, uuid
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor, which also sets the EntityType toEntityType.DIGITAL_OBJECT
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addFileResource
(FileResource fileResource) getItem()
protected void
init()
Use to initialize member variables, used by default constructor and buildervoid
setCreationInfo
(CreationInfo creationInfo) Sets the information about the creation of the digital objectvoid
setFileResources
(List<FileResource> fileResources) Sets the sorted list of file resourcesvoid
Set the item, the digital object belongs tovoid
setLicense
(License license) Sets the licence for the digital objectvoid
setLinkedDataResources
(List<LinkedDataFileResource> linkedDataResources) Sets a sorted list of links (with description) to machine readable formatsvoid
setNumberOfBinaryResources
(Integer numberOfBinaryResources) Sets the number of binary resources for presentationvoid
setParent
(DigitalObject parent) Sets the parent of the digital objectvoid
setRenderingResources
(List<FileResource> renderingResources) Sets the sorted list of links (with description and MIME type) to human readable formatsvoid
setVersion
(Version version) Sets the version of the digital objecttoString()
Methods inherited from class de.digitalcollections.model.identifiable.entity.Entity
addNotes, equals, getCustomAttribute, getCustomAttributes, getEntityType, getNavDate, getNotes, getRefId, hashCode, setCustomAttribute, setCustomAttributes, setNavDate, setNotes, setRefId
Methods inherited from class de.digitalcollections.model.identifiable.Identifiable
addIdentifier, addLocalizedUrlAlias, addSubject, addTag, getDescription, getIdentifiableObjectType, getIdentifierByNamespace, getIdentifiers, getLabel, getLocalizedUrlAliases, getPreviewImage, getPreviewImageRenderingHints, getPrimaryUrlAlias, getSubjects, getTags, getType, removeIdentifier, setDescription, setIdentifiableObjectType, setIdentifiers, setLabel, setLabel, setLocalizedUrlAliases, setPreviewImage, setPreviewImageRenderingHints, setSubjects, setTags, setType
Methods inherited from class de.digitalcollections.model.UniqueObject
getCreated, getLastModified, getUuid, isPersisted, setCreated, setLastModified, setUuid
-
Constructor Details
-
DigitalObject
public DigitalObject()Default constructor, which also sets the EntityType toEntityType.DIGITAL_OBJECT
-
-
Method Details
-
addFileResource
-
getCreationInfo
- Returns:
- meta information about the creation of the digital object
-
getFileResources
- Returns:
- the sorted list of file resources, like images or audio files
-
getItem
- Returns:
- the item, the digital object belongs to. Otherwise, return null.
-
getLicense
- Returns:
- the licence for the digital object (not for the metadata!)
-
getLinkedDataResources
- Returns:
- the sorted list of links (with description) to machine readable formats
-
getNumberOfBinaryResources
- Returns:
- the number of binary resources for presentation
-
getParent
- Returns:
- the parent of the digital object, it available. Otherwise, return null.
-
getRenderingResources
- Returns:
- the sorted list of links (with description and MIME type) to human readable formats
-
getVersion
- Returns:
- the version of the digital object
-
init
protected void init()Description copied from class:UniqueObject
Use to initialize member variables, used by default constructor and builder -
setCreationInfo
Sets the information about the creation of the digital object- Parameters:
creationInfo
- the meta information about the creation
-
setFileResources
Sets the sorted list of file resources- Parameters:
fileResources
- the sorted list of file resources
-
setItem
Set the item, the digital object belongs to- Parameters:
item
- the item, the digital object belongs to
-
setLicense
Sets the licence for the digital object- Parameters:
license
- the licence of the digital object
-
setLinkedDataResources
Sets a sorted list of links (with description) to machine readable formats- Parameters:
linkedDataResources
- the sorted list of links
-
setNumberOfBinaryResources
Sets the number of binary resources for presentation- Parameters:
numberOfBinaryResources
- the number of binary resources
-
setParent
Sets the parent of the digital object- Parameters:
parent
- of the digital object
-
setRenderingResources
Sets the sorted list of links (with description and MIME type) to human readable formats- Parameters:
renderingResources
- the sorted list of links
-
setVersion
Sets the version of the digital object- Parameters:
version
- of the digital object
-
toString
-