org.ocap.shared.dvr.navigation
Class AppIDFilter

java.lang.Object
  extended by org.ocap.shared.dvr.navigation.RecordingListFilter
      extended by org.ocap.shared.dvr.navigation.AppIDFilter

public class AppIDFilter
extends RecordingListFilter

Filter to filter based on AppID.


Constructor Summary
AppIDFilter(AppID appID)
          Constructs the filter based on a particular AppID.
 
Method Summary
 boolean accept(RecordingRequest entry)
          Tests if the given RecordingRequest passes the filter.
 AppID getFilterValue()
          Reports the value of AppID used to create this filter.
 
Methods inherited from class org.ocap.shared.dvr.navigation.RecordingListFilter
getCascadingFilter, setCascadingFilter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AppIDFilter

public AppIDFilter(AppID appID)
Constructs the filter based on a particular AppID.

Parameters:
appID - AppID value for matching RecordingRequests.
Method Detail

getFilterValue

public AppID getFilterValue()
Reports the value of AppID used to create this filter.

Returns:
The value of AppID used to create this filter.

accept

public boolean accept(RecordingRequest entry)
Tests if the given RecordingRequest passes the filter.

Specified by:
accept in class RecordingListFilter
Parameters:
entry - An individual RecordingRequest to be evaluated against the filtering algorithm.
Returns:
true if RecordingRequest is of the type indicated by the filter value; false otherwise.