public class AttachmentImpl extends AbstractMediaPackageElement implements Attachment
| Modifier and Type | Class and Description |
|---|---|
static class |
AttachmentImpl.Adapter |
MediaPackageElement.Type| Modifier and Type | Field and Description |
|---|---|
protected Map<String,String> |
properties
The object properties
|
checksum, description, elementType, flavor, id, mediaPackage, mimeType, reference, size, tags, uriFLAVOR, TYPE| Modifier | Constructor and Description |
|---|---|
|
AttachmentImpl()
Needed by JAXB
|
protected |
AttachmentImpl(MediaPackageElementFlavor flavor,
URI uri,
long size,
Checksum checksum,
MimeType mimeType)
Creates an attachment.
|
protected |
AttachmentImpl(String identifier,
MediaPackageElementFlavor flavor,
URI uri,
long size,
Checksum checksum,
MimeType mimeType)
Creates an attachment.
|
protected |
AttachmentImpl(String identifier,
URI uri)
Creates an attachment.
|
protected |
AttachmentImpl(URI uri)
Creates an attachment.
|
| Modifier and Type | Method and Description |
|---|---|
static Attachment |
fromURI(URI uri)
Creates a new attachment from the url.
|
Map<String,String> |
getProperties()
Returns a map containing the properties for this media package element or an empty map if there are no properties.
|
addTag, clearReference, clearTags, clone, compareTo, containsTag, containsTag, equals, getChecksum, getElementDescription, getElementType, getFlavor, getIdentifier, getMediaPackage, getMimeType, getReference, getSize, getTags, getURI, hashCode, referTo, referTo, referTo, removeTag, setChecksum, setElementDescription, setFlavor, setIdentifier, setMimeType, setReference, setSize, setURI, toManifest, toString, verifyfinalize, getClass, notify, notifyAll, wait, wait, waitaddTag, clearReference, clearTags, clone, containsTag, containsTag, getChecksum, getElementDescription, getElementType, getFlavor, getIdentifier, getMediaPackage, getMimeType, getReference, getSize, getTags, getURI, referTo, referTo, referTo, removeTag, setChecksum, setElementDescription, setFlavor, setIdentifier, setMimeType, setReference, setSize, setURI, verifytoManifestcompareTopublic AttachmentImpl()
protected AttachmentImpl(String identifier, MediaPackageElementFlavor flavor, URI uri, long size, Checksum checksum, MimeType mimeType)
identifier - the attachment identifierflavor - the attachment typeuri - the attachments locationsize - the attachments sizechecksum - the attachments checksummimeType - the attachments mime typeprotected AttachmentImpl(MediaPackageElementFlavor flavor, URI uri, long size, Checksum checksum, MimeType mimeType)
flavor - the attachment typeuri - the attachment locationsize - the attachment sizechecksum - the attachment checksummimeType - the attachment mime typeprotected AttachmentImpl(String identifier, URI uri)
identifier - the attachment identifieruri - the attachments locationprotected AttachmentImpl(URI uri)
uri - the attachments locationpublic static Attachment fromURI(URI uri)
uri - the attachment locationpublic Map<String,String> getProperties()
AttachmentgetProperties in interface AttachmentCopyright © 2009–2020 Opencast Project. All rights reserved.