org.ocap.hn.content.navigation
Class DeviceFilter
java.lang.Object
org.ocap.hn.content.navigation.ContentDatabaseFilter
org.ocap.hn.content.navigation.DeviceFilter
public class DeviceFilter
- extends ContentDatabaseFilter
This class represents a filtering criteria based on a particular device. Applications
may use this filter to create a ContentList with content entries from a particular device.
- Author:
- Labeeb Ismail, Liberate, Dr. Immo Benjes , Philips Digital Systems Labs, Redhill, UK
DeviceFilter
public DeviceFilter(Device device)
- Creates a new DeviceFilter. Only ContentItems which are hosted by the specified Device
will pass this filter.
- Parameters:
device
- the device to filter on
accept
public boolean accept(ContentEntry entry)
- Inherited from ContentDatabaseFilter. This function SHALL return true if the
entry passed in is from the device specified in the constructor of this class.
- Specified by:
accept
in class ContentDatabaseFilter
- Parameters:
entry
- The entry to test for acceptance
- Returns:
true
if the entry passed in is from the associated device,
false
otherwise.