eu.etaxonomy.cdm.model.media
Class MediaRepresentationPart

java.lang.Object
  extended by eu.etaxonomy.cdm.model.common.CdmBase
      extended by eu.etaxonomy.cdm.model.common.VersionableEntity
          extended by eu.etaxonomy.cdm.model.media.MediaRepresentationPart
All Implemented Interfaces:
ICdmBase, IVersionableEntity, Serializable, Cloneable
Direct Known Subclasses:
AudioFile, ImageFile, MovieFile

@Entity
public class MediaRepresentationPart
extends VersionableEntity
implements Cloneable

A media representation part is a resource that can be referenced by an URI. It represents a part of or the entire media.
E.g. a jpg file or a website

Version:
1.0
Author:
a.mueller
See Also:
Serialized Form

Field Summary
 
Fields inherited from class eu.etaxonomy.cdm.model.common.CdmBase
uuid
 
Constructor Summary
protected MediaRepresentationPart()
           
protected MediaRepresentationPart(URI uri, Integer size)
           
 
Method Summary
 Object clone()
          Clones this versionable entity.
 MediaRepresentation getMediaRepresentation()
          getter /setter
 Integer getSize()
           
 URI getUri()
           
static MediaRepresentationPart NewInstance(URI uri, Integer size)
          Factory method
protected  void setMediaRepresentation(MediaRepresentation mediaRepresentation)
          Deprecated. for internal (bidirectional) use only
 void setSize(Integer size)
           
 void setUri(URI uri)
           
 
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

MediaRepresentationPart

protected MediaRepresentationPart()

MediaRepresentationPart

protected MediaRepresentationPart(URI uri,
                                  Integer size)
Method Detail

NewInstance

public static MediaRepresentationPart NewInstance(URI uri,
                                                  Integer size)
Factory method

Returns:

getMediaRepresentation

public MediaRepresentation getMediaRepresentation()
getter /setter


setMediaRepresentation

@Deprecated
protected void setMediaRepresentation(MediaRepresentation mediaRepresentation)
Deprecated. for internal (bidirectional) use only


getUri

public URI getUri()

setUri

public void setUri(URI uri)
Parameters:
uri - uri

getSize

public Integer getSize()
Returns:

setSize

public void setSize(Integer size)
Parameters:
size - size

clone

public Object clone()
             throws CloneNotSupportedException
Description copied from class: VersionableEntity
Clones this versionable entity. Set fields for nextVersion, previousVersion, updated, updatedBy and createdBy are set to null The id is set to 0. The uuid is created new. The createdWhen is set to the current date.

Overrides:
clone in class VersionableEntity
Throws:
CloneNotSupportedException
See Also:
Object.clone()


Copyright © 2007-2013 EDIT. All Rights Reserved.