Package com.rometools.modules.sle
Class SleEntryImpl
- java.lang.Object
-
- com.rometools.modules.sle.SleEntryImpl
-
- All Implemented Interfaces:
SleEntry,CopyFrom,Module,Serializable,Cloneable
public class SleEntryImpl extends Object implements SleEntry
This is a parse only module that holds the values of enternal fields declared in the SLE module. These will not be persisted on an output() call, nor will changing a value here change a value in another module or a foreign markup tag.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SleEntryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()voidcopyFrom(CopyFrom obj)Copies all the properties of the given bean into this one.booleanequals(Object o)EntryValuegetGroupByElement(Group element)Returns an EntryValue for the given element name.EntryValue[]getGroupValues()An array of EntryValue objects that correspond to the grouping for the feed.Class<SleEntry>getInterface()Returns the interface the copyFrom works on.EntryValuegetSortByElement(Sort element)Returns an EntryValue for the given element name.EntryValue[]getSortValues()Returns an array of EntryValues for the fields declared in the heading.StringgetUri()Returns the URI of the module.inthashCode()voidsetGroupValues(EntryValue[] groupValues)voidsetSortValues(EntryValue[] sortValues)StringtoString()
-
-
-
Method Detail
-
getGroupByElement
public EntryValue getGroupByElement(Group element)
Description copied from interface:SleEntryReturns an EntryValue for the given element name.- Specified by:
getGroupByElementin interfaceSleEntry- Parameters:
element- element name to look for- Returns:
- Returns an EntryValue for the given element name.
-
setGroupValues
public void setGroupValues(EntryValue[] groupValues)
-
getGroupValues
public EntryValue[] getGroupValues()
Description copied from interface:SleEntryAn array of EntryValue objects that correspond to the grouping for the feed.- Specified by:
getGroupValuesin interfaceSleEntry- Returns:
- An array of EntryValue objects that correspond to the grouping for the feed.
-
getInterface
public Class<SleEntry> 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:
getInterfacein interfaceCopyFrom- Returns:
- the interface the copyFrom works on.
-
getSortByElement
public EntryValue getSortByElement(Sort element)
Description copied from interface:SleEntryReturns an EntryValue for the given element name.- Specified by:
getSortByElementin interfaceSleEntry- Parameters:
element- element name- Returns:
- Returns an EntryValue for the given element name.
-
setSortValues
public void setSortValues(EntryValue[] sortValues)
-
getSortValues
public EntryValue[] getSortValues()
Description copied from interface:SleEntryReturns an array of EntryValues for the fields declared in the heading. NB:
Right now the parser will take any default=true field and change it to an integer value representing the default order in the field. You should not rely on these values data display to a user!- Specified by:
getSortValuesin interfaceSleEntry- Returns:
- Array of EntryValue implementations from this entry.
-
getUri
public String getUri()
Returns the URI of the module.
-
clone
public Object clone() throws CloneNotSupportedException
- Specified by:
clonein interfaceModule- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-
copyFrom
public void copyFrom(CopyFrom 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.
-
-