| java.lang.Object | ||
| ↳ | com.google.gdata.data.AbstractExtension | |
| ↳ | com.google.gdata.data.youtube.YtDuration | |
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
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| seconds | |||||||||||
|
[Expand]
Inherited Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.gdata.data.AbstractExtension
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Creates an empty duration tag.
| |||||||||||
Creates and initializes a duration tag.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Gets duration in seconds.
| |||||||||||
Sets duration in seconds.
| |||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Consumes attributes from the attribute helper.
| |||||||||||
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
| |||||||||||
Creates an empty duration tag.
Creates and initializes a duration tag.
| seconds |
|---|
Gets duration in seconds.
Sets duration in seconds.
| seconds |
|---|
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.
| helper | Attribute helper |
|---|
| ParseException |
|---|
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.
| generator | Attribute generator |
|---|