public class

YtCommentRating

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

Class Overview

Object representation for the yt:commentRating tag. As YouTube does only sum up the votes (-1, 1). Therefore, gd:rating can not be used (min, max range would be required).

Summary

Fields
private int total
[Expand]
Inherited Fields
From class com.google.gdata.data.AbstractExtension
Public Constructors
YtCommentRating()
Creates an empty rating tag.
YtCommentRating(int rating)
Creates a tag and sets the rating.
Public Methods
int getTotal()
Gets the sum of all ratings (-1, 1).
void setTotal(int total)
Sets the sum of all ratings (-1, 1).
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 int total

Public Constructors

public YtCommentRating ()

Creates an empty rating tag.

public YtCommentRating (int rating)

Creates a tag and sets the rating.

Parameters
rating

Public Methods

public int getTotal ()

Gets the sum of all ratings (-1, 1).

public void setTotal (int total)

Sets the sum of all ratings (-1, 1).

Parameters
total

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