com.sun.syndication.samples.module
Class SampleModuleImpl

java.lang.Object
  extended bycom.sun.syndication.feed.module.ModuleImpl
      extended bycom.sun.syndication.samples.module.SampleModuleImpl
All Implemented Interfaces:
java.lang.Cloneable, com.sun.syndication.feed.CopyFrom, com.sun.syndication.feed.module.Module, SampleModule, java.io.Serializable

public class SampleModuleImpl
extends com.sun.syndication.feed.module.ModuleImpl
implements SampleModule

Sample ModuleImpl Implementation.

To show how to integrate a module in Rome.

Author:
Alejandro Abdelnur
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.sun.syndication.samples.module.SampleModule
URI
 
Constructor Summary
SampleModuleImpl()
           
 
Method Summary
 void copyFrom(java.lang.Object obj)
          Copies all the properties of the given bean into this one.
 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.
 java.lang.Class getInterface()
          Returns the interface the copyFrom works on.
 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 class com.sun.syndication.feed.module.ModuleImpl
clone, equals, getUri, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.sun.syndication.feed.module.Module
clone, getUri
 

Constructor Detail

SampleModuleImpl

public SampleModuleImpl()
Method Detail

getBar

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

Specified by:
getBar in interface SampleModule
Returns:
the bar value.

setBar

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

Specified by:
setBar in interface SampleModule
Parameters:
bar - the bar value, null if none.

getFoos

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

Specified by:
getFoos in interface SampleModule
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.

Specified by:
setFoos in interface SampleModule
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.

Specified by:
getDate in interface SampleModule
Returns:
the Sample module date, null if none.

setDate

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

Specified by:
setDate in interface SampleModule
Parameters:
date - the Sample module date to set, null if none.

getInterface

public java.lang.Class getInterface()
Returns the interface the copyFrom works on.

This is useful when dealing with properties that may have multiple implementations. For example, Module.

Specified by:
getInterface in interface com.sun.syndication.feed.CopyFrom
Returns:
the interface the copyFrom works on.

copyFrom

public void copyFrom(java.lang.Object obj)
Copies all the properties of the given bean into this one.

Any existing properties in this bean are lost.

This method is useful for moving from one implementation of a bean interface to another. For example from the default SyndFeed bean implementation to a Hibernate ready implementation.

Specified by:
copyFrom in interface com.sun.syndication.feed.CopyFrom
Parameters:
obj - the instance to copy properties from.


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