com.sun.syndication.samples.module
Interface SampleModule

All Superinterfaces:
java.lang.Cloneable, com.sun.syndication.feed.CopyFrom, com.sun.syndication.feed.module.Module
All Known Implementing Classes:
SampleModuleImpl

public interface SampleModule
extends com.sun.syndication.feed.module.Module

Sample ModuleImpl Interface.

To show how to integrate a module in Rome.

Author:
Alejandro Abdelnur

Field Summary
static java.lang.String URI
          URI of the Sample ModuleImpl (http://rome.dev.java.net/module/foo/1.0).
 
Method Summary
 java.lang.String getBar()
          Returns the Sample module bar value.
 java.util.Date getDate()
          Returns the Sample module date.
 java.util.List getFoos()
          Returns the Sample module foos.
 void setBar(java.lang.String bar)
          Sets the Sample module bar value.
 void setDate(java.util.Date date)
          Sets the Sample module date.
 void setFoos(java.util.List foos)
          Sets the Sample module foos.
 
Methods inherited from interface com.sun.syndication.feed.module.Module
clone, getUri
 
Methods inherited from interface com.sun.syndication.feed.CopyFrom
copyFrom, getInterface
 

Field Detail

URI

public static final java.lang.String URI
URI of the Sample ModuleImpl (http://rome.dev.java.net/module/foo/1.0).

See Also:
Constant Field Values
Method Detail

getBar

public java.lang.String getBar()
Returns the Sample module bar value.

Returns:
the bar value.

setBar

public void setBar(java.lang.String bar)
Sets the Sample module bar value.

Parameters:
bar - the bar value, null if none.

getFoos

public java.util.List getFoos()
Returns the Sample module foos.

Returns:
a list of String elements with the Sample module foos, an empty list if none.

setFoos

public void setFoos(java.util.List foos)
Sets the Sample module foos.

Parameters:
foos - the list of String elements with the Sample module foos to set, an empty list or null if none.

getDate

public java.util.Date getDate()
Returns the Sample module date.

Returns:
the Sample module date, null if none.

setDate

public void setDate(java.util.Date date)
Sets the Sample module date.

Parameters:
date - the Sample module date to set, null if none.


Copyright © 2004-2006 Sun Microsystems. All Rights Reserved.