org.xnap.search
Interface SearchFilter

All Known Implementing Classes:
DefaultSearchFilter

public interface SearchFilter

Defines the requirements for classes that provide search functionality.


Field Summary
static java.lang.String MAX_FILESIZE
          Default key for the maximum filesize.
static java.lang.String MEDIA_TYPE
          Default key for the media type.
static java.lang.String MIN_FILESIZE
          Default key for the minimum filesize.
static java.lang.String PATH
          Default key for path.
static java.lang.String TEXT
          Default key for the search text.
 
Method Summary
 java.lang.Object get(java.lang.String key)
          Returns a value.
 MediaType getMediaType()
          Returns the media type.
 java.lang.String getText()
          Returns the search text.
 boolean matches(SearchResult result)
          Returns true, if the filter accepts result.
 void put(java.lang.String key, java.lang.Object value)
          Sets a value.
 

Field Detail

MIN_FILESIZE

static final java.lang.String MIN_FILESIZE
Default key for the minimum filesize.

See Also:
Constant Field Values

MAX_FILESIZE

static final java.lang.String MAX_FILESIZE
Default key for the maximum filesize.

See Also:
Constant Field Values

MEDIA_TYPE

static final java.lang.String MEDIA_TYPE
Default key for the media type.

See Also:
Constant Field Values

PATH

static final java.lang.String PATH
Default key for path.

See Also:
Constant Field Values

TEXT

static final java.lang.String TEXT
Default key for the search text.

See Also:
Constant Field Values
Method Detail

get

java.lang.Object get(java.lang.String key)
Returns a value.


getMediaType

MediaType getMediaType()
Returns the media type.


getText

java.lang.String getText()
Returns the search text.


put

void put(java.lang.String key,
         java.lang.Object value)
Sets a value.


matches

boolean matches(SearchResult result)
Returns true, if the filter accepts result.



Copyright © 2001-2005 XNap Team. All Rights Reserved.