it.sauronsoftware.feed4j.bean
Class FeedImage

java.lang.Object
  extended by it.sauronsoftware.feed4j.bean.RawElement
      extended by it.sauronsoftware.feed4j.bean.FeedImage
All Implemented Interfaces:
RawNode

public class FeedImage
extends RawElement

This class is used to represent the feed-related images.

Author:
Carlo Pelliccia

Constructor Summary
FeedImage()
           
 
Method Summary
 java.lang.String getDescription()
          This method returns the image description.
 int getHeight()
          This method returns the image height, or -1 if the information is not available.
 java.net.URL getURL()
          This method returns the image URL.
 int getWidth()
          This method returns the image width, or -1 if the information is not available.
 void setDescription(java.lang.String description)
          This method sets the image description.
 void setHeight(int height)
          This method sets the image height.
 void setURL(java.net.URL url)
          This method sets the image URL.
 void setWidth(int width)
          This method sets the image width.
 
Methods inherited from class it.sauronsoftware.feed4j.bean.RawElement
addAttribute, addNode, getAttribute, getAttributeCount, getAttributeValue, getElement, getElements, getElementValue, getName, getNamespaceURI, getNode, getNodeCount, getValue, removeNode, setName, setNamespaceURI, setValue
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeedImage

public FeedImage()
Method Detail

getDescription

public java.lang.String getDescription()
This method returns the image description. It could be null.

Returns:
The image description (it could be null).

setDescription

public void setDescription(java.lang.String description)
This method sets the image description.

Parameters:
description - The image description.

getHeight

public int getHeight()
This method returns the image height, or -1 if the information is not available.

Returns:
The image height, or -1 if the information is not available.

setHeight

public void setHeight(int height)
This method sets the image height.

Parameters:
height - The image height.

getURL

public java.net.URL getURL()
This method returns the image URL.

Returns:
The image URL.

setURL

public void setURL(java.net.URL url)
This method sets the image URL.

Parameters:
url - The image URL.

getWidth

public int getWidth()
This method returns the image width, or -1 if the information is not available.

Returns:
The image width, or -1 if the information is not available.

setWidth

public void setWidth(int width)
This method sets the image width.

Parameters:
width - The image width.