Class AttachmentImpl
java.lang.Object
org.opencastproject.mediapackage.AbstractMediaPackageElement
org.opencastproject.mediapackage.attachment.AttachmentImpl
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<MediaPackageElement>,Attachment,ManifestContributor,MediaPackageElement
Basic implementation of an attachment.
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.opencastproject.mediapackage.MediaPackageElement
MediaPackageElement.Type -
Field Summary
FieldsFields inherited from class org.opencastproject.mediapackage.AbstractMediaPackageElement
checksum, description, elementType, flavor, id, mediaPackage, mimeType, reference, size, tags, uriFields inherited from interface org.opencastproject.mediapackage.Attachment
FLAVOR, TYPE -
Constructor Summary
ConstructorsModifierConstructorDescriptionNeeded by JAXBprotectedAttachmentImpl(String identifier, MediaPackageElementFlavor flavor, URI uri, Long size, Checksum checksum, MimeType mimeType) Creates an attachment.protectedAttachmentImpl(URI uri) Creates an attachment. -
Method Summary
Modifier and TypeMethodDescriptionstatic AttachmentCreates a new attachment from the url.Returns a map containing the properties for this media package element or an empty map if there are no properties.Methods inherited from class org.opencastproject.mediapackage.AbstractMediaPackageElement
addTag, clearReference, clearTags, clone, compareTo, containsTag, containsTag, equals, generateIdentifier, getChecksum, getElementDescription, getElementType, getFlavor, getIdentifier, getMediaPackage, getMimeType, getReference, getSize, getTags, getURI, hashCode, referTo, referTo, removeTag, setChecksum, setElementDescription, setFlavor, setIdentifier, setMimeType, setReference, setSize, setTags, setURI, toManifest, toString, verifyMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface org.opencastproject.mediapackage.ManifestContributor
toManifestMethods inherited from interface org.opencastproject.mediapackage.MediaPackageElement
addTag, clearReference, clearTags, clone, containsTag, containsTag, generateIdentifier, getChecksum, getElementDescription, getElementType, getFlavor, getIdentifier, getMediaPackage, getMimeType, getReference, getSize, getTags, getURI, referTo, referTo, removeTag, setChecksum, setElementDescription, setFlavor, setIdentifier, setMimeType, setReference, setSize, setTags, setURI, verify
-
Field Details
-
properties
The object properties
-
-
Constructor Details
-
AttachmentImpl
public AttachmentImpl()Needed by JAXB -
AttachmentImpl
protected AttachmentImpl(String identifier, MediaPackageElementFlavor flavor, URI uri, Long size, Checksum checksum, MimeType mimeType) Creates an attachment.- Parameters:
identifier- the attachment identifierflavor- the attachment typeuri- the attachments locationsize- the attachments sizechecksum- the attachments checksummimeType- the attachments mime type
-
AttachmentImpl
Creates an attachment.- Parameters:
uri- the attachments location
-
-
Method Details
-
fromURI
Creates a new attachment from the url.- Parameters:
uri- the attachment location- Returns:
- the attachment
-
getProperties
Description copied from interface:AttachmentReturns a map containing the properties for this media package element or an empty map if there are no properties.- Specified by:
getPropertiesin interfaceAttachment- Returns:
- the properties
-