public class Image extends Object
channel level image.| Constructor and Description |
|---|
Image() |
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
Text that is included in the TITLE attribute of the link formed around
the image in the HTML rendering.
|
Integer |
getHeight()
Indicates the height of the image in pixels.
|
String |
getLink()
The URL of the site, when the channel is rendered, the image is a link to
the site.
|
Long |
getTime()
The time offset, in milliseconds, in relation to the media object.
|
String |
getTitle()
Describes the image, it's used in the ALT attribute of the HTML
<img> tag when the channel is rendered in HTML |
String |
getUrl()
The URL of a GIF, JPEG or PNG image that represents the channel.
|
Integer |
getWidth()
Indicates the width of the image in pixels.
|
void |
setDescription(String description) |
void |
setHeight(Integer height) |
void |
setLink(String link) |
void |
setTime(Long time) |
void |
setTitle(String title) |
void |
setUrl(String url) |
void |
setWidth(Integer width) |
String |
toString() |
public String getUrl()
The URL of a GIF, JPEG or PNG image that represents the channel.
Required for image elements in RSS specification.
nullpublic void setUrl(String url)
public String getTitle()
Describes the image, it's used in the ALT attribute of the HTML
<img> tag when the channel is rendered in HTML
Required for image elements in RSS specification.
nullpublic void setTitle(String title)
public String getLink()
The URL of the site, when the channel is rendered, the image is a link to
the site. (Note, in practice the image <title> and <link>
should have the same value as the channel's <title> and
<link>.
Required for image elements in RSS specification.
nullpublic void setLink(String link)
public Integer getWidth()
Indicates the width of the image in pixels.
Optional for image elements in RSS specification.
nullpublic void setWidth(Integer width)
public Integer getHeight()
Indicates the height of the image in pixels.
Optional for image elements in RSS specification.
nullpublic void setHeight(Integer height)
public String getDescription()
Text that is included in the TITLE attribute of the link formed around the image in the HTML rendering.
Optional for image elements in RSS specification.
nullpublic void setDescription(String description)
public Long getTime()
The time offset, in milliseconds, in relation to the media object. Typically this is used when creating multiple keyframes within a single video. The format for this attribute should be in the DSM-CC's Normal Play Time (NTP) as used in RTSP [RFC 2326 3.6 Normal Play Time]. It is an optional attribute.
Optional for thumbnail elements in Media RSS specification.
Long or nullpublic void setTime(Long time)
Copyright © 2018. All rights reserved.