sk.baka.ambient.activity.search
Enum SearchType

java.lang.Object
  extended by java.lang.Enum<SearchType>
      extended by sk.baka.ambient.activity.search.SearchType
All Implemented Interfaces:
Serializable, Comparable<SearchType>

public enum SearchType
extends Enum<SearchType>

Enumerates search types.

Author:
Martin Vysny

Enum Constant Summary
Ampache
          Searches for tracks using Ampache.
Collection
          Searches for tracks using an arbitrary ICollection.
Library
          Searches for tracks present in the collection.
Magnatune
          Searches for tracks present in the Magnatune collection.
ShoutcastGenres
          Searches for shoutcast genres.
SkreemR
          Searches for tracks using SkreemR.
StoredPlaylists
          Searches for stored playlists.
 
Field Summary
 boolean returnsTrackList
          If true then this search returns a list of tracks.
 
Method Summary
static SearchType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SearchType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Library

public static final SearchType Library
Searches for tracks present in the collection. The model is a list of TrackMetadataBean.


StoredPlaylists

public static final SearchType StoredPlaylists
Searches for stored playlists. The model is null and SearchActivity.INTENTKEY_STRING is the name of the selected playlist.


Magnatune

public static final SearchType Magnatune
Searches for tracks present in the Magnatune collection. The model is a list of TrackMetadataBean.


ShoutcastGenres

public static final SearchType ShoutcastGenres
Searches for shoutcast genres. The model is null and SearchActivity.INTENTKEY_STRING is the name of the selected genre.


SkreemR

public static final SearchType SkreemR
Searches for tracks using SkreemR. The model is a list of TrackMetadataBean.


Ampache

public static final SearchType Ampache
Searches for tracks using Ampache. The model is a list of TrackMetadataBean.


Collection

public static final SearchType Collection
Searches for tracks using an arbitrary ICollection. The model is a list of TrackMetadataBean.

Field Detail

returnsTrackList

public final boolean returnsTrackList
If true then this search returns a list of tracks.

Method Detail

values

public static SearchType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (SearchType c : SearchType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static SearchType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2007-2008. All Rights Reserved.