public class VideoEntry extends MediaEntry<VideoEntry>
BaseEntry.AtomHandler, BaseEntry.EntryState
ExtensionPoint.CumulativeBlobHandler, ExtensionPoint.ExtensionHandler
AbstractExtension.AttributesHandler
Modifier and Type | Field and Description |
---|---|
static java.lang.String[] |
CATEGORIES
Nonstandard categories that might be found in this entry.
|
xmlBlob
localName, namespace
Constructor and Description |
---|
VideoEntry()
Creates an empty video entry.
|
VideoEntry(BaseEntry<?> original)
Creates a copy of another entry.
|
VideoEntry(java.lang.String id)
Creates a new video entry and initializes it.
|
Modifier and Type | Method and Description |
---|---|
void |
declareExtensions(ExtensionProfile extProfile)
Declares the set of expected Extension types for an ExtensionPoint within
the target extension profile.
|
Comments |
getComments()
Gets the comments tag or
null . |
Link |
getComplaintsLink()
Returns a link to the video complaints feed.
|
java.util.List<FeedLink> |
getFeedLinks()
Gets all gd:feedLink tags.
|
GeoRssWhere |
getGeoCoordinates()
Gets the georss:where tag.
|
java.lang.String |
getLocation()
Gets the yt:location tag.
|
YouTubeMediaGroup |
getMediaGroup() |
YouTubeMediaGroup |
getOrCreateMediaGroup() |
YtPublicationState |
getPublicationState()
Gets the publication state of this entry from the tag
app:control/yt:status.
|
Rating |
getRating()
Gets the gd:rating tag.
|
Link |
getRatingLink()
Returns a link to the video rating feed.
|
DateTime |
getRecorded()
Gets the value of the yt:recorded tag.
|
Link |
getRelatedVideosLink()
Returns a link to the related videos feed.
|
YtStatistics |
getStatistics()
Gets yt:statistics tag.
|
Link |
getVideoResponsesLink()
Returns a link to the video responses feed.
|
YtRating |
getYtRating()
Gets the yt:rating tag.
|
boolean |
isEmbeddable()
Gets whether external sites can embed and play this video.
|
boolean |
isRacy()
Deprecated.
in favor of
MediaGroup#getRatings() with scheme YouTubeNamespace.MEDIA_RATING_SCHEME . Removed in version 2 |
boolean |
isYtIncomplete()
Gets the completion state of this entry from the tag
app:control/yt:incomplete.
|
void |
setComments(Comments comments)
Sets the comments tag.
|
void |
setEmbeddable(boolean embeddable) |
void |
setGeoCoordinates(GeoRssWhere where)
Adds a georss:where tag.
|
void |
setLocation(java.lang.String location)
Sets the yt:location tag.
|
void |
setPublicationState(YtPublicationState state)
Sets the publication state of this entry, using the tag
app:control/yt:status.
|
void |
setRacy(boolean racy)
Deprecated.
in favor of
MediaGroup#getRatings() with scheme YouTubeNamespace.MEDIA_RATING_SCHEME . Removed in version 2. |
void |
setRating(Rating rating)
Sets the gd:rating tag.
|
void |
setRecorded(DateTime date)
Sets the value of the yt:recorded tag.
|
void |
setStatistics(YtStatistics stats)
Sets yt:statistics tag.
|
void |
setYtIncomplete(boolean ytIncomplete)
Sets the completion state of this entry, using the tag
app:control/yt:incomplete.
|
void |
setYtRating(YtRating rating)
Sets the yt:rating.
|
getContentHandlerInfo, getMediaEditLink, getMediaSource, setMediaSource, setService, updateMedia
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, 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, setSource, setSummary, setTitle, setUpdated, setVersionId, update, visitChildren
addExtension, addExtension, addRepeatingExtension, addRepeatingExtension, checkRequiredExtensions, createExtensionInstance, generate, generateCumulativeXmlBlob, generateExtensions, generateStartElement, getExtension, getExtensionDescription, getExtensionHandler, getExtensions, getManifest, getRepeatingExtension, getRepeatingExtensions, getXmlBlob, hasExtension, hasRepeatingExtension, initializeArbitraryXml, parseCumulativeXmlBlob, removeExtension, removeExtension, removeRepeatingExtension, setExtension, setXmlBlob, visit, visitChild
consumeAttributes, disableStrictValidation, enableStrictValidation, eq, generateAttributes, getExtensionLocalName, getExtensionNamespace, isImmutable, isStrictValidation, putAttributes, sameClassAs, setImmutable, throwExceptionForMissingAttribute, throwExceptionIfImmutable, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCanEdit, getContent, getEdited, getEditLink, getPublished, getResumableEditMediaLink, getSelectedFields, getSummary, setCanEdit, setEdited, setPublished, setSelectedFields
addLink, getAuthors, getCategories, getEtag, getId, getKind, getLink, getLinks, getSelfLink, getTitle, getUpdated, getVersionId, removeLinks, removeLinks, setEtag, setId, setKind, setUpdated, setVersionId
public static final java.lang.String[] CATEGORIES
public VideoEntry()
public VideoEntry(BaseEntry<?> original)
public VideoEntry(java.lang.String id)
public void setStatistics(YtStatistics stats)
public YtStatistics getStatistics()
public boolean isEmbeddable()
public void setEmbeddable(boolean embeddable)
@Deprecated public void setRacy(boolean racy)
MediaGroup#getRatings()
with scheme YouTubeNamespace.MEDIA_RATING_SCHEME
. Removed in version 2.@Deprecated public boolean isRacy()
MediaGroup#getRatings()
with scheme YouTubeNamespace.MEDIA_RATING_SCHEME
. Removed in version 2public void setRecorded(DateTime date)
public DateTime getRecorded()
public void setGeoCoordinates(GeoRssWhere where)
public GeoRssWhere getGeoCoordinates()
public java.lang.String getLocation()
public void setLocation(java.lang.String location)
public java.util.List<FeedLink> getFeedLinks()
public Comments getComments()
null
.public void setComments(Comments comments)
public Link getVideoResponsesLink()
public Link getRatingLink()
public Link getComplaintsLink()
public Link getRelatedVideosLink()
public Rating getRating()
public void setRating(Rating rating)
public YtRating getYtRating()
public void setYtRating(YtRating rating)
public void setPublicationState(YtPublicationState state)
state
- publication state or null
public YtPublicationState getPublicationState()
null
, in which case
the video is livepublic YouTubeMediaGroup getMediaGroup()
public YouTubeMediaGroup getOrCreateMediaGroup()
public void setYtIncomplete(boolean ytIncomplete)
public boolean isYtIncomplete()
true
if the entry is marked incomplete
false
otherwise.public void declareExtensions(ExtensionProfile extProfile)
ExtensionPoint
declareExtensions
in interface Kind.Adaptor
declareExtensions
in class ExtensionPoint
extProfile
- the ExtensionProfile to initialize.ExtensionProfile.addDeclarations(Kind.Adaptor)