org.xwiki.rendering.macro.rss
Class RssMacroParameters

java.lang.Object
  extended by org.xwiki.rendering.macro.rss.RssMacroParameters

public class RssMacroParameters
extends Object

Parameters for the org.xwiki.rendering.internal.macro.rss.RssMacro Macro.

Since:
1.8RC1
Version:
$Id: c807a5af3f2710e15a9364f87fc70360d043c77f $

Constructor Summary
RssMacroParameters()
           
 
Method Summary
 int getCount()
           
 String getFeed()
           
 URL getFeedURL()
           
 String getWidth()
           
 boolean isContent()
           
 boolean isDecoration()
           
 boolean isImage()
           
 void setContent(boolean content)
           
 void setCount(int count)
           
 void setDecoration(boolean decoration)
           
 void setFeed(String feed)
           
 void setImage(boolean image)
           
 void setWidth(String width)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RssMacroParameters

public RssMacroParameters()
Method Detail

getFeed

public String getFeed()
Returns:
the RSS feed URL.

setFeed

public void setFeed(String feed)
             throws org.xwiki.rendering.macro.parameter.MacroParameterException
Parameters:
feed - the RSS feed URL.
Throws:
org.xwiki.rendering.macro.parameter.MacroParameterException - if the feed URL is malformed.

setImage

public void setImage(boolean image)
Parameters:
image - whether to display the feed's image.

isImage

public boolean isImage()
Returns:
whether to display the feed's image.

setWidth

public void setWidth(String width)
Parameters:
width - the width of the RSS box, that will dismiss potential CSS rules defining its default value.

getWidth

public String getWidth()
Returns:
the width of the RSS box, that will dismiss potential CSS rules defining its default value.

setCount

public void setCount(int count)
Parameters:
count - the number of feed items to display.

getCount

public int getCount()
Returns:
the number of feed items to display.

getFeedURL

public URL getFeedURL()
Returns:
the feed's URL

setContent

public void setContent(boolean content)
Parameters:
content - if "true" displays the content of each feed in addition to the feed item link

isContent

public boolean isContent()
Returns:
true if the content of each feed should be displayed

setDecoration

public void setDecoration(boolean decoration)
Parameters:
decoration - if "true" displays UI decorations around feed and feed entries (RSS feed icon, feed items in boxes, etc).

isDecoration

public boolean isDecoration()
Returns:
true if UI decorations should be displayed


Copyright © 2004–2015 XWiki. All rights reserved.