|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.endeca.infront.cartridge.model.MediaObject
public class MediaObject
A generic media object that could represent an image or a video.
| Constructor Summary | |
|---|---|
MediaObject()
|
|
| Method Summary | |
|---|---|
int |
getContentBytes()
|
int |
getContentHeight()
|
String |
getContentSrcKey()
Gets the key that will be used to identify the content source of the object. |
String |
getContentType()
|
int |
getContentWidth()
|
String |
getUri()
|
void |
setContentBytes(int bytes)
Sets the size of the media object in bytes. |
void |
setContentHeight(int height)
If the media object is an image, it sets the image height. |
void |
setContentSrcKey(String contentSrcKey)
Sets the content source key that should be used to retrieve this media object. |
void |
setContentType(String contentType)
Sets the content type of this MediaObject. |
void |
setContentWidth(int width)
If the media object is an image, it sets the image width. |
void |
setUri(String uri)
Sets the URI to get this media object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MediaObject()
| Method Detail |
|---|
public String getContentType()
public void setContentType(String contentType)
MediaObject. Examples: audio/mpeg, image/jpeg.
contentType - public String getContentSrcKey()
public void setContentSrcKey(String contentSrcKey)
contentSrcKey - the content source keypublic String getUri()
public void setUri(String uri)
uri - the URIpublic int getContentWidth()
public void setContentWidth(int width)
width - the image widthpublic int getContentHeight()
public void setContentHeight(int height)
height - the image heightpublic int getContentBytes()
public void setContentBytes(int bytes)
bytes - the size of the media object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||