org.rometools.feed.module.itunes
Class AbstractITunesObject

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

public abstract class AbstractITunesObject
extends Object
implements ITunes, 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 String PREFIX
          A default prefix to use for itunes tags.
static String RDF_URI
          The RDF namespace URI.
static String URI
          The URI that iTunes used for its custom tags.
 
Constructor Summary
AbstractITunesObject()
           
 
Method Summary
abstract  Object clone()
          Required by the ROME API
abstract  void copyFrom(com.sun.syndication.feed.CopyFrom obj)
          Defined by the ROME module API
 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
 Class getInterface()
          Defined by the ROME API
 String[] getKeywords()
          A list of keywords for this feed or entry Must not contain spaces
 String getSubtitle()
          A subtitle for this feed or entry
 String getSummary()
          A subtitle for this feed or entry
 String getUri()
          The URI this module implements
 void setAuthor(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(String[] keywords)
          A list of keywords for this feed or entry Must not contain spaces
 void setSubtitle(String subtitle)
          A subtitle for this feed or entry
 void setSummary(String summary)
          A subtitle for this feed or entry
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

URI

public static final 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 String RDF_URI
The RDF namespace URI.

See Also:
Constant Field Values

PREFIX

public static final 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(com.sun.syndication.feed.CopyFrom 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 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 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 Object clone()
Required by the ROME API

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

getAuthor

public 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(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 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(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 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(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 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(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 String toString()
Overrides:
toString in class Object


Copyright © 2013 ROME Project. All Rights Reserved.