org.ocap.hn.content.navigation
Class ContentDatabaseFilter

java.lang.Object
  extended by org.ocap.hn.content.navigation.ContentDatabaseFilter
Direct Known Subclasses:
DatabaseQuery, DeviceFilter

public abstract class ContentDatabaseFilter
extends Object

This class represent a filtering criteria to be applied while creating a ContentList.

Author:
Labeeb Ismail, Liberate, Dr. Immo Benjes , Philips Digital Systems Labs, Redhill, UK

Method Summary
abstract  boolean accept(ContentEntry entry)
          This method is called for every ContentEntry in the database/list this filter is applied to.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

accept

public abstract boolean accept(ContentEntry entry)
This method is called for every ContentEntry in the database/list this filter is applied to. Implementations should return true if the specified ContentItem should be in the filtered list. If the ContentItem should not be listed in the new list false should be returned.

Parameters:
entry - the ContentEntry to filter
Returns:
true if the ContentEntry should be in the filtered ContentList, false otherwise.