public class SubscriptionEntry extends FeedLinkEntry<SubscriptionEntry>
PlaylistFeed
and PlaylistEntry
for the playlist feed
objects.Modifier and Type | Class and Description |
---|---|
static class |
SubscriptionEntry.Type
Subscription types.
|
BaseEntry.AtomHandler
ExtensionPoint.CumulativeBlobHandler, ExtensionPoint.ExtensionHandler
Modifier and Type | Field and Description |
---|---|
static java.lang.String[] |
CATEGORIES
Nonstandard categories that might be found in this entry.
|
Constructor and Description |
---|
SubscriptionEntry() |
SubscriptionEntry(BaseEntry<?> base) |
Modifier and Type | Method and Description |
---|---|
void |
addSubscriptionType(SubscriptionEntry.Type type)
Adds a type category to this entry.
|
void |
declareExtensions(ExtensionProfile extProfile)
Declares the set of expected Extension types for an ExtensionPoint within
the target extension profile.
|
java.lang.String |
getPlaylistId()
Get the id of the playlist subscribed to.
|
java.lang.String |
getPlaylistTitle()
Get the title of the playlist subscribed to.
|
java.lang.String |
getQueryString()
Get the query string of the subscription.
|
SubscriptionEntry.Type |
getSubscriptionType()
Gets the type of the subscription, if it is of a known type.
|
java.lang.String |
getUsername()
Get the value of the optional username
|
void |
setPlaylistId(java.lang.String playlistId)
Set the optional id of the playlist subscribed to.
|
void |
setPlaylistTitle(java.lang.String playlistTitle)
Set the title of the playlist subscribed to.
|
void |
setQueryString(java.lang.String query)
Set the optional query string of a subscription with the type query.
|
void |
setSubscriptionType(SubscriptionEntry.Type type)
Sets the type category of this entry.
|
void |
setUsername(java.lang.String username)
Set the optional username.
|
getCountHint, getDescription, getFeedLink, getFeedUrl, getThumbnail, setCountHint, setDescription, setFeedLink, setThumbnail
addAdaptor, addHtmlLink, addLink, addLink, delete, generate, generateAtom, generateRss, getAdaptedEntry, getAdaptor, getAdaptors, getAuthors, getCanEdit, getCategories, getContent, getContributors, getEdited, getEditLink, getEtag, getHandler, getHtmlLink, getId, getKind, getLink, getLinks, getLinks, getMediaEditLink, getPlainTextContent, getPubControl, getPublished, getResumableEditMediaLink, getRights, getSelectedFields, getSelf, getSelfLink, getService, getSource, getSummary, getTextContent, getTitle, getUpdated, getVersionId, isDraft, parseAtom, parseAtom, parseAtom, readEntry, readEntry, removeLinks, removeLinks, setCanEdit, setContent, setContent, setDraft, setEdited, setEtag, setId, setKind, setPubControl, setPublished, setRights, setSelectedFields, setService, setSource, setSummary, setTitle, setUpdated, setVersionId, update
addExtension, addRepeatingExtension, generateCumulativeXmlBlob, getExtension, getExtensions, getRepeatingExtension, getRepeatingExtensions, getXmlBlob, hasExtension, hasRepeatingExtension, parseCumulativeXmlBlob, removeExtension, removeExtension, removeRepeatingExtension, setExtension, setXmlBlob, visit
disableStrictValidation, enableStrictValidation, getExtensionLocalName, getExtensionNamespace, isImmutable, isStrictValidation, setImmutable
public static final java.lang.String[] CATEGORIES
public SubscriptionEntry()
public SubscriptionEntry(BaseEntry<?> base)
public void addSubscriptionType(SubscriptionEntry.Type type)
type
- subscription typespublic SubscriptionEntry.Type getSubscriptionType()
public void setSubscriptionType(SubscriptionEntry.Type type)
type
- new subscription type or null
public void setUsername(java.lang.String username)
username
- content of the yt:username tagpublic java.lang.String getUsername()
public void setQueryString(java.lang.String query)
query
- the query stringpublic java.lang.String getQueryString()
public void setPlaylistTitle(java.lang.String playlistTitle)
playlistTitle
- the playlistTitlepublic java.lang.String getPlaylistTitle()
public void setPlaylistId(java.lang.String playlistId)
playlistId
- the id of the playlistpublic java.lang.String getPlaylistId()
public void declareExtensions(ExtensionProfile extProfile)
ExtensionPoint
declareExtensions
in interface Kind.Adaptor
declareExtensions
in class FeedLinkEntry<SubscriptionEntry>
extProfile
- the ExtensionProfile to initialize.ExtensionProfile.addDeclarations(Kind.Adaptor)