Enum Entity

  • All Implemented Interfaces:
    Serializable, Comparable<Entity>

    public enum Entity
    extends Enum<Entity>

    The type of results you want returned, relative to the specified media type.

    For example: movieArtist for a movie media type search.

    iTunes default is the track entity associated with the specified media type.

    • Enum Constant Detail

      • ALBUM

        public static final Entity ALBUM
      • ALL_ARTIST

        public static final Entity ALL_ARTIST
      • ALL_TRACK

        public static final Entity ALL_TRACK
      • AUDIOBOOK

        public static final Entity AUDIOBOOK
      • AUDIOBOOK_AUTHOR

        public static final Entity AUDIOBOOK_AUTHOR
      • EBOOK

        public static final Entity EBOOK
      • IPAD_SOFTWARE

        public static final Entity IPAD_SOFTWARE
      • MAC_SOFTWARE

        public static final Entity MAC_SOFTWARE
      • MIX

        public static final Entity MIX
      • MOVIE

        public static final Entity MOVIE
      • MOVIE_ARTIST

        public static final Entity MOVIE_ARTIST
      • MUSIC_ARTIST

        public static final Entity MUSIC_ARTIST
      • MUSIC_TRACK

        public static final Entity MUSIC_TRACK
      • MUSIC_VIDEO

        public static final Entity MUSIC_VIDEO
      • PODCAST

        public static final Entity PODCAST
      • PODCAST_AUTHOR

        public static final Entity PODCAST_AUTHOR
      • SHORT_FILM

        public static final Entity SHORT_FILM
      • SHORT_FILM_ARTIST

        public static final Entity SHORT_FILM_ARTIST
      • SOFTWARE

        public static final Entity SOFTWARE
      • SONG

        public static final Entity SONG
      • TV_EPISODE

        public static final Entity TV_EPISODE
      • TV_SEASON

        public static final Entity TV_SEASON
    • Method Detail

      • values

        public static Entity[] 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 (Entity c : Entity.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Entity 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
      • getName

        public String getName()