Package com.rometools.modules.sle
Class SimpleListExtensionImpl
- java.lang.Object
-
- com.rometools.rome.feed.module.ModuleImpl
-
- com.rometools.modules.sle.SimpleListExtensionImpl
-
- All Implemented Interfaces:
SimpleListExtension,CopyFrom,Module,Serializable,Cloneable
public class SimpleListExtensionImpl extends ModuleImpl implements SimpleListExtension
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface com.rometools.modules.sle.SimpleListExtension
URI
-
-
Constructor Summary
Constructors Constructor Description SimpleListExtensionImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcopyFrom(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.StringgetTreatAs()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.StringgetUri()Returns the URI of the module.voidsetGroupFields(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.voidsetSortFields(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.voidsetTreatAs(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 class com.rometools.rome.feed.module.ModuleImpl
clone, equals, hashCode, toString
-
-
-
-
Method Detail
-
setGroupFields
public void setGroupFields(Group[] groupFields)
Description copied from interface:SimpleListExtensionThe 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:
setGroupFieldsin interfaceSimpleListExtension- Parameters:
groupFields- Array of types.Group objects.
-
getGroupFields
public Group[] getGroupFields()
Description copied from interface:SimpleListExtensionThe 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:
getGroupFieldsin interfaceSimpleListExtension- 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:
getInterfacein interfaceCopyFrom- Returns:
- the interface the copyFrom works on.
-
setSortFields
public void setSortFields(Sort[] sortFields)
Description copied from interface:SimpleListExtensionThe 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:
setSortFieldsin interfaceSimpleListExtension- Parameters:
sortFields- Array of types.Sort objects
-
getSortFields
public Sort[] getSortFields()
Description copied from interface:SimpleListExtensionThe 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:
getSortFieldsin interfaceSimpleListExtension- Returns:
- Array of types.Sort objects
-
setTreatAs
public void setTreatAs(String treatAs)
Description copied from interface:SimpleListExtensionThis 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:
setTreatAsin interfaceSimpleListExtension- Parameters:
treatAs- treatAs value
-
getTreatAs
public String getTreatAs()
Description copied from interface:SimpleListExtensionThis 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:
getTreatAsin interfaceSimpleListExtension- Returns:
- treatAs value.
-
getUri
public String getUri()
Returns the URI of the module.- Specified by:
getUriin interfaceModule- Overrides:
getUriin classModuleImpl- 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.
-
-