DeviceFilter

Overview | Package | Class | Use | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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

Constructor Summary
`DeviceFilter(Device device)` Creates a new DeviceFilter.

Method Summary
`boolean` | `accept(ContentEntry entry)` Inherited from ContentDatabaseFilter.

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### 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

Method Detail

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

Overview | Package | Class | Use | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD