org.rometools.feed.module.sle
Class SleEntryImpl

java.lang.Object
  extended by org.rometools.feed.module.sle.SleEntryImpl
All Implemented Interfaces:
com.sun.syndication.feed.CopyFrom, com.sun.syndication.feed.module.Module, Serializable, Cloneable, SleEntry

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.

Author:
Robert "kebernet" Cooper
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.rometools.feed.module.sle.SleEntry
URI
 
Constructor Summary
SleEntryImpl()
          Creates a new instance of SleEntryImpl
 
Method Summary
 Object clone()
           
 void copyFrom(com.sun.syndication.feed.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 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()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SleEntryImpl

public SleEntryImpl()
Creates a new instance of SleEntryImpl

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 interface SleEntry
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 interface SleEntry
Returns:
An array of EntryValue objects that correspond to the grouping for the feed.

getInterface

public 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.

getSortByElement

public EntryValue getSortByElement(Sort element)
Description copied from interface: SleEntry
Returns an EntryValue for the given element name.

Specified by:
getSortByElement in interface SleEntry
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 interface SleEntry
Returns:
Array of EntryValue implementations from this entry.

getUri

public String getUri()
Returns the URI of the module.

Specified by:
getUri in interface com.sun.syndication.feed.module.Module
Returns:
URI of the module.

clone

public Object clone()
             throws CloneNotSupportedException
Specified by:
clone in interface com.sun.syndication.feed.module.Module
Overrides:
clone in class Object
Throws:
CloneNotSupportedException

copyFrom

public void copyFrom(com.sun.syndication.feed.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.

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

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013 ROME Project. All Rights Reserved.