public class

GphotoStarred

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

Class Overview

If viewer starred the photo and total number of stars.

Summary

Constants
String TOTAL XML "total" attribute name
String XML_NAME XML element name
Fields
private Integer total Number of stars
private Boolean value Viewer starred photo
[Expand]
Inherited Fields
From class com.google.gdata.data.AbstractExtension
Public Constructors
GphotoStarred()
Default mutable constructor.
GphotoStarred(Integer total, Boolean value)
Immutable constructor.
Public Methods
boolean equals(Object obj)
static ExtensionDescription getDefaultDescription(boolean required, boolean repeatable)
Returns the extension description, specifying whether it is required, and whether it is repeatable.
Integer getTotal()
Returns the number of stars.
Boolean getValue()
Returns the viewer starred photo.
boolean hasTotal()
Returns whether it has the number of stars.
boolean hasValue()
Returns whether it has the viewer starred photo.
int hashCode()
void setTotal(Integer total)
Sets the number of stars.
void setValue(Boolean value)
Sets the viewer starred photo.
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.AbstractExtension
From class java.lang.Object
From interface com.google.gdata.data.Extension

Constants

private static final String TOTAL

XML "total" attribute name

Constant Value: "total"

static final String XML_NAME

XML element name

Constant Value: "starred"

Fields

private Integer total

Number of stars

private Boolean value

Viewer starred photo

Public Constructors

public GphotoStarred ()

Default mutable constructor.

public GphotoStarred (Integer total, Boolean value)

Immutable constructor.

Parameters
total Number of stars.
value Viewer starred photo.

Public Methods

public boolean equals (Object obj)

Parameters
obj

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 Integer getTotal ()

Returns the number of stars.

Returns
  • number of stars

public Boolean getValue ()

Returns the viewer starred photo.

Returns
  • viewer starred photo

public boolean hasTotal ()

Returns whether it has the number of stars.

Returns
  • whether it has the number of stars

public boolean hasValue ()

Returns whether it has the viewer starred photo.

Returns
  • whether it has the viewer starred photo

public int hashCode ()

public void setTotal (Integer total)

Sets the number of stars.

Parameters
total Number of stars or null to reset

public void setValue (Boolean value)

Sets the viewer starred photo.

Parameters
value Viewer starred photo 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.