|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.gdata.data.AbstractExtension
com.google.gdata.data.ExtensionPoint
com.google.gdata.data.photos.GphotoOriginalVideo
public class GphotoOriginalVideo
The original video info field.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.google.gdata.data.ExtensionPoint |
|---|
ExtensionPoint.CumulativeBlobHandler, ExtensionPoint.ExtensionHandler |
| Nested classes/interfaces inherited from class com.google.gdata.data.AbstractExtension |
|---|
AbstractExtension.AttributesHandler |
| Field Summary |
|---|
| Fields inherited from class com.google.gdata.data.ExtensionPoint |
|---|
xmlBlob |
| Fields inherited from class com.google.gdata.data.AbstractExtension |
|---|
localName, namespace |
| Constructor Summary | |
|---|---|
GphotoOriginalVideo()
Default mutable constructor. |
|
GphotoOriginalVideo(java.lang.Integer channels,
java.lang.Long duration,
java.lang.Integer height,
java.lang.Float samplingrate,
java.lang.String type,
java.lang.Integer width)
Immutable constructor. |
|
| Method Summary | |
|---|---|
protected void |
consumeAttributes(AttributeHelper helper)
Consumes attributes from the attribute helper. |
boolean |
equals(java.lang.Object obj)
|
java.lang.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. |
java.lang.Long |
getDuration()
Returns the video playback duration in milliseconds. |
java.lang.Integer |
getHeight()
Returns the video height. |
java.lang.Float |
getSamplingrate()
Returns the audio sample rate in kHz. |
java.lang.String |
getType()
Returns the video format type. |
java.lang.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. |
int |
hashCode()
|
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. |
protected void |
putAttributes(AttributeGenerator generator)
Puts attributes into the attribute generator. |
void |
setChannels(java.lang.Integer channels)
Sets the number of audio channels. |
void |
setDuration(java.lang.Long duration)
Sets the video playback duration in milliseconds. |
void |
setHeight(java.lang.Integer height)
Sets the video height. |
void |
setSamplingrate(java.lang.Float samplingrate)
Sets the audio sample rate in kHz. |
void |
setType(java.lang.String type)
Sets the video format type. |
void |
setWidth(java.lang.Integer width)
Sets the video width. |
java.lang.String |
toString()
|
protected void |
validate()
Checks the attributes to see if there are any problems. |
| Methods inherited from class com.google.gdata.data.AbstractExtension |
|---|
eq, generate, generateAttributes, getExtensionLocalName, getExtensionNamespace, isImmutable, sameClassAs, setImmutable, throwExceptionForMissingAttribute, throwExceptionIfImmutable |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GphotoOriginalVideo()
public GphotoOriginalVideo(java.lang.Integer channels,
java.lang.Long duration,
java.lang.Integer height,
java.lang.Float samplingrate,
java.lang.String type,
java.lang.Integer width)
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.| Method Detail |
|---|
public java.lang.Integer getChannels()
public void setChannels(java.lang.Integer channels)
channels - number of audio channels or null to resetpublic boolean hasChannels()
public java.lang.Long getDuration()
public void setDuration(java.lang.Long duration)
duration - video playback duration in milliseconds or
null to resetpublic boolean hasDuration()
public java.lang.Integer getHeight()
public void setHeight(java.lang.Integer height)
height - video height or null to resetpublic boolean hasHeight()
public java.lang.Float getSamplingrate()
public void setSamplingrate(java.lang.Float samplingrate)
samplingrate - audio sample rate in kHz or null to resetpublic boolean hasSamplingrate()
public java.lang.String getType()
public void setType(java.lang.String type)
type - video format type or null to resetpublic boolean hasType()
public java.lang.Integer getWidth()
public void setWidth(java.lang.Integer width)
width - video width or null to resetpublic boolean hasWidth()
protected void validate()
AbstractExtension
validate in class AbstractExtension
public static ExtensionDescription getDefaultDescription(boolean required,
boolean repeatable)
required - whether it is requiredrepeatable - whether it is repeatable
protected void putAttributes(AttributeGenerator generator)
AbstractExtensionAbstractExtension.generate(XmlWriter,ExtensionProfile). Default implementation
does nothing, though generally this is discouraged unless there really are
no attributes.
putAttributes in class AbstractExtensiongenerator - attribute generator
protected void consumeAttributes(AttributeHelper helper)
throws ParseException
AbstractExtensionAttributeHelper.consumeContent(boolean) to consume the element's text
content. Called from AbstractExtension.getHandler(com.google.gdata.data.ExtensionProfile, java.lang.String, java.lang.String, org.xml.sax.Attributes). Default implementation does
nothing, though generally this is discouraged unless there really are no
attributes.
consumeAttributes in class AbstractExtensionhelper - attribute helper
ParseException - any parsing exceptionpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||