com.evolution.player.core.media.search
Enum SearchType

java.lang.Object
  extended by java.lang.Enum<SearchType>
      extended by com.evolution.player.core.media.search.SearchType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<SearchType>

public enum SearchType
extends java.lang.Enum<SearchType>

Each search type defines a search which a search provider could perform.

Since:
0.5

Enum Constant Summary
ALBUM
           Search for an album based on a string.
ALBUM_SONGS
           Search for all songs from an album.
ARTIST
           Search for an artist based on a string.
DISCOGRAPY
           Search for all songs from an artist.
SONG
           Search for a song based on a string.
 
Method Summary
static SearchType valueOf(java.lang.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
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ALBUM

public static final SearchType ALBUM

Search for an album based on a string.

In: IStringSearchPattern
Out: 0..n matches each SearchMatch#getMedias(org.eclipse.core.runtime.IProgressMonitor) returns all downloadable songs from the album.


ARTIST

public static final SearchType ARTIST

Search for an artist based on a string.

In: IStringSearchPattern
Out: 0..n matches each SearchMatch#getMedias(org.eclipse.core.runtime.IProgressMonitor) returns all downloadable songs from the artist.


SONG

public static final SearchType SONG

Search for a song based on a string.

In: IStringSearchPattern
Out: 0..n matches each SearchMatch#getMedias(org.eclipse.core.runtime.IProgressMonitor) returns one downloadable media for the song.


ALBUM_SONGS

public static final SearchType ALBUM_SONGS

Search for all songs from an album.

In: IMediaSearchPattern
Out: 0..1 matches SearchMatch#getMedias(org.eclipse.core.runtime.IProgressMonitor) returns all downloadable songs from the album.


DISCOGRAPY

public static final SearchType DISCOGRAPY

Search for all songs from an artist.

In: IMediaSearchPattern
Out: 0..1 matches each SearchMatch#getMedias(org.eclipse.core.runtime.IProgressMonitor) returns all downloadable songs from the artist.

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(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null