public class

GphotoMaxPhotos

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

Class Overview

The maximum number of photos allowed per album.

Summary

Constants
String XML_NAME XML element name
Fields
private Integer value MaxPhotos
[Expand]
Inherited Fields
From class com.google.gdata.data.AbstractExtension
Public Constructors
GphotoMaxPhotos()
Default mutable constructor.
GphotoMaxPhotos(Integer 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 getValue()
Returns the maxPhotos.
boolean hasValue()
Returns whether it has the maxPhotos.
int hashCode()
void setValue(Integer value)
Sets the maxPhotos.
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

static final String XML_NAME

XML element name

Constant Value: "maxPhotosPerAlbum"

Fields

private Integer value

MaxPhotos

Public Constructors

public GphotoMaxPhotos ()

Default mutable constructor.

public GphotoMaxPhotos (Integer value)

Immutable constructor.

Parameters
value MaxPhotos.

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 getValue ()

Returns the maxPhotos.

Returns
  • maxPhotos

public boolean hasValue ()

Returns whether it has the maxPhotos.

Returns
  • whether it has the maxPhotos

public int hashCode ()

public void setValue (Integer value)

Sets the maxPhotos.

Parameters
value MaxPhotos 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.