sk.baka.ambient.collection
Enum CategoryEnum

java.lang.Object
  extended by java.lang.Enum<CategoryEnum>
      extended by sk.baka.ambient.collection.CategoryEnum
All Implemented Interfaces:
Serializable, Comparable<CategoryEnum>

public enum CategoryEnum
extends Enum<CategoryEnum>

Enumerates all criteria fields.

Author:
Martin Vysny

Enum Constant Summary
Album
          Search by track album.
Artist
          Search by track artist.
Genre
          Search by genre.
Origin
          Deprecated. 
Title
          Search by track title.
YearReleased
          Deprecated. 
 
Field Summary
 int displayableNameId
          The criteria field displayable name.
 
Method Summary
static CategoryEnum valueOf(String name)
          Returns the enum constant of this type with the specified name.
static CategoryEnum[] 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

Title

public static final CategoryEnum Title
Search by track title.


Artist

public static final CategoryEnum Artist
Search by track artist.


Album

public static final CategoryEnum Album
Search by track album.


YearReleased

@Deprecated
public static final CategoryEnum YearReleased
Deprecated. 
Search by year released.


Genre

public static final CategoryEnum Genre
Search by genre.


Origin

@Deprecated
public static final CategoryEnum Origin
Deprecated. 
The track origin.

Field Detail

displayableNameId

public final int displayableNameId
The criteria field displayable name.

Method Detail

values

public static CategoryEnum[] 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 (CategoryEnum c : CategoryEnum.values())
    System.out.println(c);

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

valueOf

public static CategoryEnum 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.