Package com.rometools.rome.feed.module
Class SyModuleImpl
- java.lang.Object
-
- com.rometools.rome.feed.module.ModuleImpl
-
- com.rometools.rome.feed.module.SyModuleImpl
-
- All Implemented Interfaces:
CopyFrom,Module,SyModule,Serializable,Cloneable
public class SyModuleImpl extends ModuleImpl implements SyModule
Syndication ModuleImpl, default implementation.- See Also:
- Syndication module., Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SyModuleImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcopyFrom(CopyFrom obj)Copies all the properties of the given bean into this one.Class<? extends Module>getInterface()Returns the interface the copyFrom works on.DategetUpdateBase()Returns the Syndication module update base date.intgetUpdateFrequency()Returns the Syndication module update frequency.StringgetUpdatePeriod()Returns the Syndication module update period.voidsetUpdateBase(Date updateBase)Sets the Syndication module update base date.voidsetUpdateFrequency(int updateFrequency)Sets the Syndication module update frequency.voidsetUpdatePeriod(String updatePeriod)Sets the Syndication module update period.-
Methods inherited from class com.rometools.rome.feed.module.ModuleImpl
clone, equals, getUri, hashCode, toString
-
-
-
-
Method Detail
-
getUpdatePeriod
public String getUpdatePeriod()
Returns the Syndication module update period.- Specified by:
getUpdatePeriodin interfaceSyModule- Returns:
- the Syndication module update period, null if none.
-
setUpdatePeriod
public void setUpdatePeriod(String updatePeriod)
Sets the Syndication module update period.- Specified by:
setUpdatePeriodin interfaceSyModule- Parameters:
updatePeriod- the Syndication module update period to set, null if none.
-
getUpdateFrequency
public int getUpdateFrequency()
Returns the Syndication module update frequency.- Specified by:
getUpdateFrequencyin interfaceSyModule- Returns:
- the Syndication module update frequency, null if none.
-
setUpdateFrequency
public void setUpdateFrequency(int updateFrequency)
Sets the Syndication module update frequency.- Specified by:
setUpdateFrequencyin interfaceSyModule- Parameters:
updateFrequency- the Syndication module update frequency to set, null if none.
-
getUpdateBase
public Date getUpdateBase()
Returns the Syndication module update base date.- Specified by:
getUpdateBasein interfaceSyModule- Returns:
- the Syndication module update base date, null if none.
-
setUpdateBase
public void setUpdateBase(Date updateBase)
Sets the Syndication module update base date.- Specified by:
setUpdateBasein interfaceSyModule- Parameters:
updateBase- the Syndication module update base date to set, null if none.
-
getInterface
public Class<? extends Module> getInterface()
Description copied from interface:CopyFromReturns the interface the copyFrom works on.This is useful when dealing with properties that may have multiple implementations. For example, Module.
- Specified by:
getInterfacein interfaceCopyFrom- Returns:
- the interface the copyFrom works on.
-
copyFrom
public void copyFrom(CopyFrom obj)
Description copied from interface:CopyFromCopies 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.
-
-