|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecteu.etaxonomy.cdm.model.common.CdmBase
eu.etaxonomy.cdm.model.common.VersionableEntity
eu.etaxonomy.cdm.model.media.MediaRepresentation
@Entity public class MediaRepresentation
A media representation is basically anything having a MIME Media Type. A media representation consists of one or more parts. Each of them having the same MIME Type, file suffix (if existing) and quality (more or less). E.g. a list of jpg files that represent a scanned article of multiple pages.
| Field Summary |
|---|
| Fields inherited from class eu.etaxonomy.cdm.model.common.CdmBase |
|---|
uuid |
| Constructor Summary | |
|---|---|
protected |
MediaRepresentation()
|
| Method Summary | ||
|---|---|---|
void |
addRepresentationPart(MediaRepresentationPart mediaRepresentationPart)
|
|
Object |
clone()
Clones this versionable entity. |
|
Media |
getMedia()
|
|
String |
getMimeType()
getter /setter |
|
List<MediaRepresentationPart> |
getParts()
|
|
String |
getSuffix()
|
|
static MediaRepresentation |
NewInstance()
Factory method |
|
static MediaRepresentation |
NewInstance(String mimeType,
String suffix)
Factory method which sets the mime type and the suffix |
|
static
|
NewInstance(String mimeType,
String suffix,
URI uri,
Integer size,
Class<T> clazz)
Factory method which creates a new media representation and adds a media representation part for the uri and the given size. |
|
void |
removeRepresentationPart(MediaRepresentationPart representationPart)
|
|
protected void |
setMedia(Media media)
Deprecated. for internal (bidirectional) use only |
|
void |
setMimeType(String mimeType)
|
|
void |
setSuffix(String suffix)
|
|
| Methods inherited from class eu.etaxonomy.cdm.model.common.VersionableEntity |
|---|
equals, getUpdated, getUpdatedBy, setUpdated, setUpdatedBy |
| Methods inherited from class eu.etaxonomy.cdm.model.common.CdmBase |
|---|
addPropertyChangeListener, addPropertyChangeListener, clone, deproxy, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getCreated, getCreatedBy, getId, getUuid, hashCode, hasListeners, instanceToString, invokeSetMethod, invokeSetMethodWithNull, isInstanceOf, removePropertyChangeListener, removePropertyChangeListener, setCreated, setCreatedBy, setId, setUuid, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface eu.etaxonomy.cdm.model.common.ICdmBase |
|---|
getCreated, getCreatedBy, getId, getUuid, setCreated, setCreatedBy, setId, setUuid |
| Constructor Detail |
|---|
protected MediaRepresentation()
| Method Detail |
|---|
public static MediaRepresentation NewInstance()
public static MediaRepresentation NewInstance(String mimeType,
String suffix)
public static <T extends MediaRepresentationPart> MediaRepresentation NewInstance(String mimeType,
String suffix,
URI uri,
Integer size,
Class<T> clazz)
uri and the given size.
Returns null if uri is empty
IllegalAccessException
InstantiationExceptionpublic String getMimeType()
public void setMimeType(String mimeType)
mimeType - mimeTypepublic String getSuffix()
public void setSuffix(String suffix)
mimeType - mimeTypepublic Media getMedia()
@Deprecated protected void setMedia(Media media)
media - public List<MediaRepresentationPart> getParts()
public void addRepresentationPart(MediaRepresentationPart mediaRepresentationPart)
public void removeRepresentationPart(MediaRepresentationPart representationPart)
public Object clone()
throws CloneNotSupportedException
VersionableEntity
clone in class VersionableEntityCloneNotSupportedExceptionObject.clone()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||