com.jimischopp.jyoutube
Enum JYouTube.Catgeory

java.lang.Object
  extended by java.lang.Enum<JYouTube.Catgeory>
      extended by com.jimischopp.jyoutube.JYouTube.Catgeory
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<JYouTube.Catgeory>
Enclosing class:
JYouTube

public static enum JYouTube.Catgeory
extends java.lang.Enum<JYouTube.Catgeory>

A list of video content categories as recognized by YouTube. These were discovered empirically by looking at the catid value right there on the YouTube webpage.


Enum Constant Summary
AUTO_AND_VEHICLE
           
COMEDY
           
ENTERTAINMENT
           
FILM_AND_ANIMATION
           
GADGETS_AND_GAMES
           
HOWTO_AND_DIY
           
MUSIC
           
NEWS_AND_POLITICS
           
PEOPLE_AND_BLOGS
           
PETS_AND_ANIMALS
           
SPORTS
           
TRAVEL_AND_PLACES
           
 
Method Summary
 int getCatId()
           
static JYouTube.Catgeory valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static JYouTube.Catgeory[] values()
          Returns an array containing the constants of this enum type, in the order they're 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

FILM_AND_ANIMATION

public static final JYouTube.Catgeory FILM_AND_ANIMATION

AUTO_AND_VEHICLE

public static final JYouTube.Catgeory AUTO_AND_VEHICLE

MUSIC

public static final JYouTube.Catgeory MUSIC

PETS_AND_ANIMALS

public static final JYouTube.Catgeory PETS_AND_ANIMALS

SPORTS

public static final JYouTube.Catgeory SPORTS

TRAVEL_AND_PLACES

public static final JYouTube.Catgeory TRAVEL_AND_PLACES

GADGETS_AND_GAMES

public static final JYouTube.Catgeory GADGETS_AND_GAMES

PEOPLE_AND_BLOGS

public static final JYouTube.Catgeory PEOPLE_AND_BLOGS

COMEDY

public static final JYouTube.Catgeory COMEDY

ENTERTAINMENT

public static final JYouTube.Catgeory ENTERTAINMENT

NEWS_AND_POLITICS

public static final JYouTube.Catgeory NEWS_AND_POLITICS

HOWTO_AND_DIY

public static final JYouTube.Catgeory HOWTO_AND_DIY
Method Detail

values

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

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

valueOf

public static JYouTube.Catgeory 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

getCatId

public int getCatId()