public class

GphotoOriginalVideo

extends ExtensionPoint
java.lang.Object
   ↳ com.google.gdata.data.AbstractExtension
     ↳ com.google.gdata.data.ExtensionPoint
       ↳ com.google.gdata.data.photos.GphotoOriginalVideo

Class Overview

The original video info field.

Summary

Constants
String CHANNELS XML "channels" attribute name
String DURATION XML "duration" attribute name
String HEIGHT XML "height" attribute name
String SAMPLINGRATE XML "samplingrate" attribute name
String TYPE XML "type" attribute name
String WIDTH XML "width" attribute name
String XML_NAME XML element name
Fields
private Integer channels Number of audio channels
private Long duration Video playback duration in milliseconds
private Integer height Video height
private Float samplingrate Audio sample rate in kHz
private String type Video format type
private Integer width Video width
[Expand]
Inherited Fields
From class com.google.gdata.data.ExtensionPoint
From class com.google.gdata.data.AbstractExtension
Public Constructors
GphotoOriginalVideo()
Default mutable constructor.
GphotoOriginalVideo(Integer channels, Long duration, Integer height, Float samplingrate, String type, Integer width)
Immutable constructor.
Public Methods
boolean equals(Object obj)
Integer getChannels()
Returns the number of audio channels.
static ExtensionDescription getDefaultDescription(boolean required, boolean repeatable)
Returns the extension description, specifying whether it is required, and whether it is repeatable.
Long getDuration()
Returns the video playback duration in milliseconds.
Integer getHeight()
Returns the video height.
Float getSamplingrate()
Returns the audio sample rate in kHz.
String getType()
Returns the video format type.
Integer getWidth()
Returns the video width.
boolean hasChannels()
Returns whether it has the number of audio channels.
boolean hasDuration()
Returns whether it has the video playback duration in milliseconds.
boolean hasHeight()
Returns whether it has the video height.
boolean hasSamplingrate()
Returns whether it has the audio sample rate in kHz.
boolean hasType()
Returns whether it has the video format type.
boolean hasWidth()
Returns whether it has the video width.
int hashCode()
void setChannels(Integer channels)
Sets the number of audio channels.
void setDuration(Long duration)
Sets the video playback duration in milliseconds.
void setHeight(Integer height)
Sets the video height.
void setSamplingrate(Float samplingrate)
Sets the audio sample rate in kHz.
void setType(String type)
Sets the video format type.
void setWidth(Integer width)
Sets the video width.
String toString()
Protected Methods
void consumeAttributes(AttributeHelper helper)
Consumes attributes from the attribute helper.
void putAttributes(AttributeGenerator generator)
Puts attributes into the attribute generator.
void validate()
Checks the attributes to see if there are any problems.
[Expand]
Inherited Methods
From class com.google.gdata.data.ExtensionPoint
From class com.google.gdata.data.AbstractExtension
From class java.lang.Object
From interface com.google.gdata.data.Extension

Constants

private static final String CHANNELS

XML "channels" attribute name

Constant Value: "channels"

private static final String DURATION

XML "duration" attribute name

Constant Value: "duration"

private static final String HEIGHT

XML "height" attribute name

Constant Value: "height"

private static final String SAMPLINGRATE

XML "samplingrate" attribute name

Constant Value: "samplingrate"

private static final String TYPE

XML "type" attribute name

Constant Value: "type"

private static final String WIDTH

XML "width" attribute name

Constant Value: "width"

static final String XML_NAME

XML element name

Constant Value: "originalvideo"

Fields

private Integer channels

Number of audio channels

private Long duration

Video playback duration in milliseconds

private Integer height

Video height

private Float samplingrate

Audio sample rate in kHz

private String type

Video format type

private Integer width

Video width

Public Constructors

public GphotoOriginalVideo ()

Default mutable constructor.

public GphotoOriginalVideo (Integer channels, Long duration, Integer height, Float samplingrate, String type, Integer width)

Immutable constructor.

Parameters
channels Number of audio channels.
duration Video playback duration in milliseconds.
height Video height.
samplingrate Audio sample rate in kHz.
type Video format type.
width Video width.

Public Methods

public boolean equals (Object obj)

Parameters
obj

public Integer getChannels ()

Returns the number of audio channels.

Returns
  • number of audio channels

public static ExtensionDescription getDefaultDescription (boolean required, boolean repeatable)

Returns the extension description, specifying whether it is required, and whether it is repeatable.

Parameters
required Whether it is required
repeatable Whether it is repeatable
Returns
  • extension description

public Long getDuration ()

Returns the video playback duration in milliseconds.

Returns
  • video playback duration in milliseconds

public Integer getHeight ()

Returns the video height.

Returns
  • video height

public Float getSamplingrate ()

Returns the audio sample rate in kHz.

Returns
  • audio sample rate in kHz

public String getType ()

Returns the video format type.

Returns
  • video format type

public Integer getWidth ()

Returns the video width.

Returns
  • video width

public boolean hasChannels ()

Returns whether it has the number of audio channels.

Returns
  • whether it has the number of audio channels

public boolean hasDuration ()

Returns whether it has the video playback duration in milliseconds.

Returns
  • whether it has the video playback duration in milliseconds

public boolean hasHeight ()

Returns whether it has the video height.

Returns
  • whether it has the video height

public boolean hasSamplingrate ()

Returns whether it has the audio sample rate in kHz.

Returns
  • whether it has the audio sample rate in kHz

public boolean hasType ()

Returns whether it has the video format type.

Returns
  • whether it has the video format type

public boolean hasWidth ()

Returns whether it has the video width.

Returns
  • whether it has the video width

public int hashCode ()

public void setChannels (Integer channels)

Sets the number of audio channels.

Parameters
channels Number of audio channels or null to reset

public void setDuration (Long duration)

Sets the video playback duration in milliseconds.

Parameters
duration Video playback duration in milliseconds or null to reset

public void setHeight (Integer height)

Sets the video height.

Parameters
height Video height or null to reset

public void setSamplingrate (Float samplingrate)

Sets the audio sample rate in kHz.

Parameters
samplingrate Audio sample rate in kHz or null to reset

public void setType (String type)

Sets the video format type.

Parameters
type Video format type or null to reset

public void setWidth (Integer width)

Sets the video width.

Parameters
width Video width or null to reset

public String toString ()

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

protected void validate ()

Checks the attributes to see if there are any problems. Default implementation does nothing, though generally this is discouraged unless there really are no restrictions.