Class SimpleListExtensionImpl

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void copyFrom​(CopyFrom obj)
      Copies all the properties of the given bean into this one.
      Group[] getGroupFields()
      The cf:group element is intended to inform the client that the property to which it refers is one that is “groupable” – that is, that the client should provide a user interface that allows the user to group or filter on the values of that property.
      Class<SimpleListExtension> getInterface()
      Returns the interface the copyFrom works on.
      Sort[] getSortFields()
      The cf:sort element is intended to inform the client that the property to which it refers is one that is “sortable” – that is, that the client should provide a user interface that allows the user to sort on that property.
      String getTreatAs()
      This XML element allows the publisher of a feed document to indicate to the consumers of the feed that the feed is intended to be consumed as a list.
      String getUri()
      Returns the URI of the module.
      void setGroupFields​(Group[] groupFields)
      The cf:group element is intended to inform the client that the property to which it refers is one that is “groupable” – that is, that the client should provide a user interface that allows the user to group or filter on the values of that property.
      void setSortFields​(Sort[] sortFields)
      The cf:sort element is intended to inform the client that the property to which it refers is one that is “sortable” – that is, that the client should provide a user interface that allows the user to sort on that property.
      void setTreatAs​(String treatAs)
      This XML element allows the publisher of a feed document to indicate to the consumers of the feed that the feed is intended to be consumed as a list.
      • Methods inherited from interface com.rometools.rome.feed.module.Module

        clone
    • Constructor Detail

      • SimpleListExtensionImpl

        public SimpleListExtensionImpl()
    • Method Detail

      • setGroupFields

        public void setGroupFields​(Group[] groupFields)
        Description copied from interface: SimpleListExtension
        The cf:group element is intended to inform the client that the property to which it refers is one that is “groupable” – that is, that the client should provide a user interface that allows the user to group or filter on the values of that property. Groupable properties should contain a small set of discrete values (e.g. book genres are perfect for groups).
        Specified by:
        setGroupFields in interface SimpleListExtension
        Parameters:
        groupFields - Array of types.Group objects.
      • getGroupFields

        public Group[] getGroupFields()
        Description copied from interface: SimpleListExtension
        The cf:group element is intended to inform the client that the property to which it refers is one that is “groupable” – that is, that the client should provide a user interface that allows the user to group or filter on the values of that property. Groupable properties should contain a small set of discrete values (e.g. book genres are perfect for groups).
        Specified by:
        getGroupFields in interface SimpleListExtension
        Returns:
        Array of types.Group objects.
      • getInterface

        public Class<SimpleListExtension> 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.
      • setSortFields

        public void setSortFields​(Sort[] sortFields)
        Description copied from interface: SimpleListExtension
        The cf:sort element is intended to inform the client that the property to which it refers is one that is “sortable” – that is, that the client should provide a user interface that allows the user to sort on that property.
        Specified by:
        setSortFields in interface SimpleListExtension
        Parameters:
        sortFields - Array of types.Sort objects
      • getSortFields

        public Sort[] getSortFields()
        Description copied from interface: SimpleListExtension
        The cf:sort element is intended to inform the client that the property to which it refers is one that is “sortable” – that is, that the client should provide a user interface that allows the user to sort on that property.
        Specified by:
        getSortFields in interface SimpleListExtension
        Returns:
        Array of types.Sort objects
      • setTreatAs

        public void setTreatAs​(String treatAs)
        Description copied from interface: SimpleListExtension
        This XML element allows the publisher of a feed document to indicate to the consumers of the feed that the feed is intended to be consumed as a list. (defaults to "list" )
        Specified by:
        setTreatAs in interface SimpleListExtension
        Parameters:
        treatAs - treatAs value
      • getTreatAs

        public String getTreatAs()
        Description copied from interface: SimpleListExtension
        This XML element allows the publisher of a feed document to indicate to the consumers of the feed that the feed is intended to be consumed as a list.
        Specified by:
        getTreatAs in interface SimpleListExtension
        Returns:
        treatAs value.
      • getUri

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

        Specified by:
        getUri in interface Module
        Overrides:
        getUri in class ModuleImpl
        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.