eu.etaxonomy.cdm.model.media
Class MovieFile

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
              extended by eu.etaxonomy.cdm.model.media.MovieFile
All Implemented Interfaces:
ICdmBase, IVersionableEntity, Serializable, Cloneable

@Entity
public class MovieFile
extends MediaRepresentationPart

Version:
1.0
Author:
m.doering
See Also:
Serialized Form

Field Summary
 
Fields inherited from class eu.etaxonomy.cdm.model.common.CdmBase
uuid
 
Constructor Summary
protected MovieFile()
          Constructor
protected MovieFile(URI uri, Integer size)
          Constructor
 
Method Summary
 int getDuration()
          The Length of the movie in seconds
static MovieFile NewInstance()
          Factory method
static MovieFile NewInstance(URI uri, Integer size)
           
 void setDuration(int duration)
          Sets the Length of the movie in seconds
 
Methods inherited from class eu.etaxonomy.cdm.model.media.MediaRepresentationPart
clone, getMediaRepresentation, getSize, getUri, setMediaRepresentation, setSize, setUri
 
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

MovieFile

protected MovieFile()
Constructor


MovieFile

protected MovieFile(URI uri,
                    Integer size)
Constructor

Method Detail

NewInstance

public static MovieFile NewInstance(URI uri,
                                    Integer size)

NewInstance

public static MovieFile NewInstance()
Factory method

Returns:

getDuration

public int getDuration()
The Length of the movie in seconds

Returns:

setDuration

public void setDuration(int duration)
Sets the Length of the movie in seconds

Parameters:
duration - duration


Copyright © 2007-2013 EDIT. All Rights Reserved.