public class

YtDuration

extends AbstractExtension
java.lang.Object
   ↳ com.google.gdata.data.AbstractExtension
     ↳ com.google.gdata.data.youtube.YtDuration

Class Overview

Duration class. This completes the duration field in MediaContent and is useful when there is no MediaContent. This tag should go inside MediaGroup, next to media:player

Summary

Fields
private long seconds
[Expand]
Inherited Fields
From class com.google.gdata.data.AbstractExtension
Public Constructors
YtDuration()
Creates an empty duration tag.
YtDuration(long seconds)
Creates and initializes a duration tag.
Public Methods
long getSeconds()
Gets duration in seconds.
void setSeconds(long seconds)
Sets duration in seconds.
Protected Methods
void consumeAttributes(AttributeHelper helper)
Consumes attributes from the attribute helper.
void putAttributes(AttributeGenerator generator)
Puts attributes into the attribute generator.
[Expand]
Inherited Methods
From class com.google.gdata.data.AbstractExtension
From class java.lang.Object
From interface com.google.gdata.data.Extension

Fields

private long seconds

Public Constructors

public YtDuration ()

Creates an empty duration tag.

public YtDuration (long seconds)

Creates and initializes a duration tag.

Parameters
seconds

Public Methods

public long getSeconds ()

Gets duration in seconds.

public void setSeconds (long seconds)

Sets duration in seconds.

Parameters
seconds

Protected Methods

protected void consumeAttributes (AttributeHelper helper)

Consumes attributes from the attribute helper. May also use consumeContent(boolean) to consume the element's text content. Called from getHandler(ExtensionProfile, String, String, Attributes). Default implementation does nothing, though generally this is discouraged unless there really are no attributes.

Parameters
helper Attribute helper

protected void putAttributes (AttributeGenerator generator)

Puts attributes into the attribute generator. Called from generate(XmlWriter, ExtensionProfile). Default implementation does nothing, though generally this is discouraged unless there really are no attributes.

Parameters
generator Attribute generator