- 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 Object
clone()
void
copyFrom(CopyFrom obj)
Copies all the properties of the given bean into this one.boolean
equals(Object o)
EntryValue
getGroupByElement(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.EntryValue
getSortByElement(Sort element)
Returns an EntryValue for the given element name.EntryValue[]
getSortValues()
Returns an array of EntryValues for the fields declared in the heading.String
getUri()
Returns the URI of the module.int
hashCode()
void
setGroupValues(EntryValue[] groupValues)
void
setSortValues(EntryValue[] sortValues)
String
toString()
-
-
-
Method Detail
-
getGroupByElement
public EntryValue getGroupByElement(Group element)
Description copied from interface:SleEntry
Returns an EntryValue for the given element name.- Specified by:
getGroupByElement
in 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:SleEntry
An array of EntryValue objects that correspond to the grouping for the feed.- Specified by:
getGroupValues
in 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:
getInterface
in interfaceCopyFrom
- Returns:
- the interface the copyFrom works on.
-
getSortByElement
public EntryValue getSortByElement(Sort element)
Description copied from interface:SleEntry
Returns an EntryValue for the given element name.- Specified by:
getSortByElement
in 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:SleEntry
Returns 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:
getSortValues
in 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:
clone
in interfaceModule
- Overrides:
clone
in 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.
-
-