Class 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 Detail

      • SleEntryImpl

        public 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<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 interface 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 Module
        Returns:
        URI of the module.
      • 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.

        Specified by:
        copyFrom in interface CopyFrom
        Parameters:
        obj - the instance to copy properties from.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object