public interface

TagData

implements GphotoData
com.google.gdata.data.photos.TagData
Known Indirect Subclasses

Class Overview

Basic extension to include tag-specific data, this is the shared interface for all tag objects in the Picasaweb GData api. To view or set the actual content of a tag clients should use getContent() and setContent(TextConstruct).

Summary

Constants
String KIND The unqualified kind for a tag.
String TAG_KIND The fully qualified kind term for tags.
Fields
public static final Category TAG_CATEGORY A category object for tags.
Public Methods
abstract Integer getWeight()
The weight of the tag is the number of times the tag appears in the collection of tags currently being viewed.
abstract void setWeight(Integer weight)
Set the weight of the tag.
[Expand]
Inherited Methods
From interface com.google.gdata.data.photos.Extensible
From interface com.google.gdata.data.photos.GphotoData

Constants

public static final String KIND

The unqualified kind for a tag.

Constant Value: "tag"

public static final String TAG_KIND

The fully qualified kind term for tags.

Constant Value: "http://schemas.google.com/photos/2007#tag"

Fields

public static final Category TAG_CATEGORY

A category object for tags. All tag objects will have this set.

Public Methods

public abstract Integer getWeight ()

The weight of the tag is the number of times the tag appears in the collection of tags currently being viewed. This is a server-provided context sensitive measure of how often the tag is used, and can be used to implement tag-cloud like views.

Returns
  • the weight of the tag, or null if it doesn't have one.

public abstract void setWeight (Integer weight)

Set the weight of the tag. Used by the server, this field is read only on the client.

Parameters
weight