Package com.rometools.modules.itunes
Class AbstractITunesObject
- java.lang.Object
-
- com.rometools.modules.itunes.AbstractITunesObject
-
- All Implemented Interfaces:
ITunes,CopyFrom,Module,Serializable,Cloneable
- 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.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractITunesObject()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Objectclone()Required by the ROME APIStringgetAuthor()Returns the author string for this feed or entrybooleangetBlock()Boolean as to whether to block this feed or entrybooleangetExplicit()Boolean as to whether this feed or entry contains adult contentBooleangetExplicitNullable()URLgetImage()Class<? extends AbstractITunesObject>getInterface()Defined by the ROME APIString[]getKeywords()A list of keywords for this feed or entry Must not contain spacesStringgetSubtitle()A subtitle for this feed or entryStringgetSummary()A subtitle for this feed or entryStringgetUri()The URI this module implementsvoidsetAuthor(String author)Sets the author string for this feed or entryvoidsetBlock(boolean block)Boolean as to whether to block this feed or entryvoidsetExplicit(boolean explicit)Boolean as to whether this feed or entry contains adult contentvoidsetExplicitNullable(Boolean explicit)voidsetImage(URL image)voidsetKeywords(String[] keywords)A list of keywords for this feed or entry Must not contain spacesvoidsetSubtitle(String subtitle)A subtitle for this feed or entryvoidsetSummary(String summary)A subtitle for this feed or entryStringtoString()
-
-
-
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
-
-
Method Detail
-
getInterface
public Class<? extends AbstractITunesObject> getInterface()
Defined by the ROME API- Specified by:
getInterfacein interfaceCopyFrom- Returns:
- Class of the Interface for this module.
-
getUri
public String getUri()
The URI this module implements
-
clone
public abstract Object clone()
Required by the ROME API
-
getAuthor
public String getAuthor()
Returns the author string for this feed or entry
-
setAuthor
public void setAuthor(String author)
Sets the author string for this feed or entry
-
getBlock
public boolean getBlock()
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
-
getExplicit
public boolean getExplicit()
Boolean as to whether this feed or entry contains adult content- Specified by:
getExplicitin interfaceITunes- Returns:
- Boolean as to whether this feed or entry contains adult content
-
getExplicitNullable
public Boolean getExplicitNullable()
- Specified by:
getExplicitNullablein interfaceITunes
-
setExplicit
public void setExplicit(boolean explicit)
Boolean as to whether this feed or entry contains adult content- Specified by:
setExplicitin interfaceITunes- Parameters:
explicit- Boolean as to whether this feed or entry contains adult content
-
setExplicitNullable
public void setExplicitNullable(Boolean explicit)
- Specified by:
setExplicitNullablein interfaceITunes
-
getKeywords
public String[] getKeywords()
A list of keywords for this feed or entry Must not contain spaces- Specified by:
getKeywordsin interfaceITunes- 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:
setKeywordsin interfaceITunes- Parameters:
keywords- A list of keywords for this feed or enty
-
getSubtitle
public String getSubtitle()
A subtitle for this feed or entry- Specified by:
getSubtitlein interfaceITunes- Returns:
- A subtitle for this feed or entry
-
setSubtitle
public void setSubtitle(String subtitle)
A subtitle for this feed or entry- Specified by:
setSubtitlein interfaceITunes- Parameters:
subtitle- A subtitle for this feed or entry
-
getSummary
public String getSummary()
A subtitle for this feed or entry- Specified by:
getSummaryin interfaceITunes- Returns:
- A subtitle for this feed or entry
-
setSummary
public void setSummary(String summary)
A subtitle for this feed or entry- Specified by:
setSummaryin interfaceITunes- Parameters:
summary- A subtitle for this feed or entry
-
-