com.sun.syndication.feed.module.itunes.types
Class Category

java.lang.Object
  extended by com.sun.syndication.feed.module.itunes.types.Category
All Implemented Interfaces:
java.io.Serializable

public class Category
extends java.lang.Object
implements java.io.Serializable

This Category information. Basically a name and an optional Subcategory. Categories are defined by Apple. See ITMS for a view.

Version:
$Revision: 1.2 $
Author:
Robert "kebernet" Cooper
See Also:
Serialized Form

Constructor Summary
Category()
          Creates a new instance of Category
Category(java.lang.String name)
          Creates a new instance of Category with a given name.
 
Method Summary
 java.lang.Object clone()
          Returns a copy of this category.
 java.lang.String getName()
          Returns the name of the category
 Subcategory getSubcategory()
          Returns the Subcategory object for this category
 void setName(java.lang.String name)
          Sets the name of the category
 void setSubcategory(Subcategory subcategory)
          Sets the Subcategory object for this category
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Category

public Category()
Creates a new instance of Category


Category

public Category(java.lang.String name)
Creates a new instance of Category with a given name.

Parameters:
name - Name of the category.
Method Detail

getName

public java.lang.String getName()
Returns the name of the category

Returns:
Returns the name of the category

setName

public void setName(java.lang.String name)
Sets the name of the category

Parameters:
name - Sets the name of the category

getSubcategory

public Subcategory getSubcategory()
Returns the Subcategory object for this category

Returns:
Returns the Subcategory object for this category

setSubcategory

public void setSubcategory(Subcategory subcategory)
Sets the Subcategory object for this category

Parameters:
subcategory - Sets the Subcategory object for this category

clone

public java.lang.Object clone()
Returns a copy of this category.

Overrides:
clone in class java.lang.Object
Returns:
Returns a copy of this category.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2006-2009. All Rights Reserved.