|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xnap.search.DefaultSearchFilter
public class DefaultSearchFilter
This class provides the default search filter implementation.
Field Summary |
---|
Fields inherited from interface org.xnap.search.SearchFilter |
---|
MAX_FILESIZE, MEDIA_TYPE, MIN_FILESIZE, PATH, TEXT |
Constructor Summary | |
---|---|
DefaultSearchFilter()
|
Method Summary | |
---|---|
java.lang.Object |
clone()
|
java.lang.Object |
get(java.lang.String key)
Returns a value. |
long |
getMaxFilesize()
Returns the maximum filesize. |
MediaType |
getMediaType()
Returns the media type. |
long |
getMinFilesize()
Returns the minimum filesize. |
java.lang.String[] |
getPath()
Returns the path. |
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. |
java.lang.String |
toString()
Returns the value of getText() . |
void |
validate()
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DefaultSearchFilter()
Method Detail |
---|
public java.lang.Object clone()
clone
in class java.lang.Object
public java.lang.Object get(java.lang.String key)
SearchFilter
get
in interface SearchFilter
public MediaType getMediaType()
getMediaType
in interface SearchFilter
public long getMinFilesize()
public long getMaxFilesize()
public java.lang.String[] getPath()
public java.lang.String getText()
getText
in interface SearchFilter
public boolean matches(SearchResult result)
SearchFilter
result
.
matches
in interface SearchFilter
public void put(java.lang.String key, java.lang.Object value)
SearchFilter
put
in interface SearchFilter
public java.lang.String toString()
getText()
.
toString
in class java.lang.Object
public void validate() throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |