org.richfaces.photoalbum.model
Class MediaItem
java.lang.Object
org.richfaces.photoalbum.model.MediaItem
- All Implemented Interfaces:
- Serializable
@Entity
public class MediaItem
- extends Object
- implements Serializable
A reference to a media object such as images, sound bites, video recordings, that can be used in the application.
A media item contains the type of the media, which is required to render it correctly, as well as the URL at which the media
should be sourced.
- Author:
- Marius Bogoevici, Pete Muir
- See Also:
- Serialized Form
MediaItem
public MediaItem()
getId
public Long getId()
getMediaType
public MediaType getMediaType()
setMediaType
public void setMediaType(MediaType mediaType)
getUrl
public String getUrl()
setUrl
public void setUrl(String url)
toString
public String toString()
- Overrides:
toString
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
Copyright © 2014 JBoss by Red Hat. All Rights Reserved.