com.sun.syndication.feed.module.itunes
Class AbstractITunesObject

java.lang.Object
  extended by com.sun.syndication.feed.module.itunes.AbstractITunesObject
All Implemented Interfaces:
com.sun.syndication.feed.CopyFrom, ITunes, com.sun.syndication.feed.module.Module, java.io.Serializable, java.lang.Cloneable
Direct Known Subclasses:
EntryInformationImpl, FeedInformationImpl

public abstract class AbstractITunesObject
extends java.lang.Object
implements ITunes, java.lang.Cloneable

This is an abstract object that implements the attributes common across Feeds or Items in an iTunes compatible RSS feed.

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

Field Summary
static java.lang.String PREFIX
          A default prefix to use for itunes tags.
static java.lang.String RDF_URI
          The RDF namespace URI.
static java.lang.String URI
          The URI that iTunes used for its custom tags.
 
Constructor Summary
AbstractITunesObject()
           
 
Method Summary
abstract  java.lang.Object clone()
          Required by the ROME API
abstract  void copyFrom(java.lang.Object obj)
          Defined by the ROME module API
 java.lang.String getAuthor()
          Returns the author string for this feed or entry
 boolean getBlock()
          Boolean as to whether to block this feed or entry
 boolean getExplicit()
          Boolean as to whether this feed or entry contains adult content
 java.lang.Class getInterface()
          Defined by the ROME API
 java.lang.String[] getKeywords()
          A list of keywords for this feed or entry Must not contain spaces
 java.lang.String getSubtitle()
          A subtitle for this feed or entry
 java.lang.String getSummary()
          A subtitle for this feed or entry
 java.lang.String getUri()
          The URI this module implements
 void setAuthor(java.lang.String author)
          Sets the author string for this feed or entry
 void setBlock(boolean block)
          Boolean as to whether to block this feed or entry
 void setExplicit(boolean explicit)
          Boolean as to whether this feed or entry contains adult content
 void setKeywords(java.lang.String[] keywords)
          A list of keywords for this feed or entry Must not contain spaces
 void setSubtitle(java.lang.String subtitle)
          A subtitle for this feed or entry
 void setSummary(java.lang.String summary)
          A subtitle for this feed or entry
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

URI

public static final java.lang.String URI
The URI that iTunes used for its custom tags.

What is up with using a versioned DTD anyway?

\

See Also:
Constant Field Values

RDF_URI

public static final java.lang.String RDF_URI
The RDF namespace URI.

See Also:
Constant Field Values

PREFIX

public static final java.lang.String PREFIX
A default prefix to use for itunes tags.

See Also:
Constant Field Values
Constructor Detail

AbstractITunesObject

public AbstractITunesObject()
Method Detail

copyFrom

public abstract void copyFrom(java.lang.Object obj)
Defined by the ROME module API

Specified by:
copyFrom in interface com.sun.syndication.feed.CopyFrom
Parameters:
obj - Object to copy from

getInterface

public java.lang.Class getInterface()
Defined by the ROME API

Specified by:
getInterface in interface com.sun.syndication.feed.CopyFrom
Returns:
Class of the Interface for this module.

getUri

public java.lang.String getUri()
The URI this module implements

Specified by:
getUri in interface com.sun.syndication.feed.module.Module
Returns:
"http://www.itunes.com/dtds/podcast-1.0.dtd"

clone

public abstract java.lang.Object clone()
Required by the ROME API

Specified by:
clone in interface com.sun.syndication.feed.module.Module
Overrides:
clone in class java.lang.Object
Returns:
A clone of this module object

getAuthor

public java.lang.String getAuthor()
Returns the author string for this feed or entry

Specified by:
getAuthor in interface ITunes
Returns:
Returns the author string for this feed or entry

setAuthor

public void setAuthor(java.lang.String author)
Sets the author string for this feed or entry

Specified by:
setAuthor in interface ITunes
Parameters:
author - Sets the author string for this feed or entry

getBlock

public boolean getBlock()
Boolean as to whether to block this feed or entry

Specified by:
getBlock in interface ITunes
Returns:
Boolean as to whether to block this feed or entry

setBlock

public void setBlock(boolean block)
Boolean as to whether to block this feed or entry

Specified by:
setBlock in interface ITunes
Parameters:
block - Boolean as to whether to block this feed or entry

getExplicit

public boolean getExplicit()
Boolean as to whether this feed or entry contains adult content

Specified by:
getExplicit in interface ITunes
Returns:
Boolean as to whether this feed or entry contains adult content

setExplicit

public void setExplicit(boolean explicit)
Boolean as to whether this feed or entry contains adult content

Specified by:
setExplicit in interface ITunes
Parameters:
explicit - Boolean as to whether this feed or entry contains adult content

getKeywords

public java.lang.String[] getKeywords()
A list of keywords for this feed or entry Must not contain spaces

Specified by:
getKeywords in interface ITunes
Returns:
A list of keywords for this feed or entry

setKeywords

public void setKeywords(java.lang.String[] keywords)
A list of keywords for this feed or entry Must not contain spaces

Specified by:
setKeywords in interface ITunes
Parameters:
keywords - A list of keywords for this feed or enty

getSubtitle

public java.lang.String getSubtitle()
A subtitle for this feed or entry

Specified by:
getSubtitle in interface ITunes
Returns:
A subtitle for this feed or entry

setSubtitle

public void setSubtitle(java.lang.String subtitle)
A subtitle for this feed or entry

Specified by:
setSubtitle in interface ITunes
Parameters:
subtitle - A subtitle for this feed or entry

getSummary

public java.lang.String getSummary()
A subtitle for this feed or entry

Specified by:
getSummary in interface ITunes
Returns:
A subtitle for this feed or entry

setSummary

public void setSummary(java.lang.String summary)
A subtitle for this feed or entry

Specified by:
setSummary in interface ITunes
Parameters:
summary - A subtitle for this feed or entry

toString

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


Copyright © 2006-2009. All Rights Reserved.