public class

MetadataEntry

extends BaseEntry<E extends BaseEntry>
java.lang.Object
   ↳ com.google.gdata.data.AbstractExtension
     ↳ com.google.gdata.data.ExtensionPoint
       ↳ com.google.gdata.data.BaseEntry<E extends com.google.gdata.data.BaseEntry>
         ↳ com.google.gdata.data.docs.MetadataEntry

Class Overview

Describes a Metadata entry.

Summary

Constants
String KIND Metadata kind term value.
Fields
public static final Category CATEGORY Metadata kind category.
[Expand]
Inherited Fields
From class com.google.gdata.data.BaseEntry
From class com.google.gdata.data.ExtensionPoint
From class com.google.gdata.data.AbstractExtension
Public Constructors
MetadataEntry()
Default mutable constructor.
MetadataEntry(BaseEntry<?> sourceEntry)
Constructs a new instance by doing a shallow copy of data from an existing BaseEntry instance.
Public Methods
void addAdditionalRoleInfo(AdditionalRoleInfo additionalRoleInfo)
Adds a new additional role info.
void addExportFormat(ExportFormat exportFormat)
Adds a new export format.
void addFeature(Feature feature)
Adds a new feature.
void addImportFormat(ImportFormat importFormat)
Adds a new import format.
void addMaxUploadSize(MaxUploadSize maxUploadSize)
Adds a new max upload size.
void declareExtensions(ExtensionProfile extProfile)
Declares the set of expected Extension types for an ExtensionPoint within the target extension profile.
List<AdditionalRoleInfo> getAdditionalRoleInfos()
Returns the additional role infos.
List<ExportFormat> getExportFormats()
Returns the export formats.
List<Feature> getFeatures()
Returns the features.
List<ImportFormat> getImportFormats()
Returns the import formats.
LargestChangestamp getLargestChangestamp()
Returns the largest changestamp.
List<MaxUploadSize> getMaxUploadSizes()
Returns the max upload sizes.
QuotaBytesTotal getQuotaBytesTotal()
Returns the quota bytes total.
QuotaBytesUsed getQuotaBytesUsed()
Returns the quota bytes used.
QuotaBytesUsedInTrash getQuotaBytesUsedInTrash()
Returns the quota bytes used in trash.
RemainingChangestamps getRemainingChangestamps()
Returns the remaining changestamps.
boolean hasAdditionalRoleInfos()
Returns whether it has the additional role infos.
boolean hasExportFormats()
Returns whether it has the export formats.
boolean hasFeatures()
Returns whether it has the features.
boolean hasImportFormats()
Returns whether it has the import formats.
boolean hasLargestChangestamp()
Returns whether it has the largest changestamp.
boolean hasMaxUploadSizes()
Returns whether it has the max upload sizes.
boolean hasQuotaBytesTotal()
Returns whether it has the quota bytes total.
boolean hasQuotaBytesUsed()
Returns whether it has the quota bytes used.
boolean hasQuotaBytesUsedInTrash()
Returns whether it has the quota bytes used in trash.
boolean hasRemainingChangestamps()
Returns whether it has the remaining changestamps.
void setLargestChangestamp(LargestChangestamp largestChangestamp)
Sets the largest changestamp.
void setQuotaBytesTotal(QuotaBytesTotal quotaBytesTotal)
Sets the quota bytes total.
void setQuotaBytesUsed(QuotaBytesUsed quotaBytesUsed)
Sets the quota bytes used.
void setQuotaBytesUsedInTrash(QuotaBytesUsedInTrash quotaBytesUsedInTrash)
Sets the quota bytes used in trash.
void setRemainingChangestamps(RemainingChangestamps remainingChangestamps)
Sets the remaining changestamps.
String toString()
Protected Methods
void validate()
Checks the attributes to see if there are any problems.
[Expand]
Inherited Methods
From class com.google.gdata.data.BaseEntry
From class com.google.gdata.data.ExtensionPoint
From class com.google.gdata.data.AbstractExtension
From class java.lang.Object
From interface com.google.gdata.data.Extension
From interface com.google.gdata.data.IAtom
From interface com.google.gdata.data.IEntry
From interface com.google.gdata.data.Kind.Adaptable
From interface com.google.gdata.data.Kind.Adaptor

Constants

public static final String KIND

Metadata kind term value.

Constant Value: "http://schemas.google.com/docs/2007#metadata"

Fields

public static final Category CATEGORY

Metadata kind category.

Public Constructors

public MetadataEntry ()

Default mutable constructor.

public MetadataEntry (BaseEntry<?> sourceEntry)

Constructs a new instance by doing a shallow copy of data from an existing BaseEntry instance.

Parameters
sourceEntry Source entry

Public Methods

public void addAdditionalRoleInfo (AdditionalRoleInfo additionalRoleInfo)

Adds a new additional role info.

Parameters
additionalRoleInfo Additional role info

public void addExportFormat (ExportFormat exportFormat)

Adds a new export format.

Parameters
exportFormat Export format

public void addFeature (Feature feature)

Adds a new feature.

Parameters
feature Feature

public void addImportFormat (ImportFormat importFormat)

Adds a new import format.

Parameters
importFormat Import format

public void addMaxUploadSize (MaxUploadSize maxUploadSize)

Adds a new max upload size.

Parameters
maxUploadSize Max upload size

public void declareExtensions (ExtensionProfile extProfile)

Declares the set of expected Extension types for an ExtensionPoint within the target extension profile. The base implementation does not declare any extensions, but can be overridden by specific types of ExtensionPoints that always contain a well-defined set of extensions.

Parameters
extProfile The ExtensionProfile to initialize.

public List<AdditionalRoleInfo> getAdditionalRoleInfos ()

Returns the additional role infos.

Returns
  • additional role infos

public List<ExportFormat> getExportFormats ()

Returns the export formats.

Returns
  • export formats

public List<Feature> getFeatures ()

Returns the features.

Returns
  • features

public List<ImportFormat> getImportFormats ()

Returns the import formats.

Returns
  • import formats

public LargestChangestamp getLargestChangestamp ()

Returns the largest changestamp.

Returns
  • largest changestamp

public List<MaxUploadSize> getMaxUploadSizes ()

Returns the max upload sizes.

Returns
  • max upload sizes

public QuotaBytesTotal getQuotaBytesTotal ()

Returns the quota bytes total.

Returns
  • quota bytes total

public QuotaBytesUsed getQuotaBytesUsed ()

Returns the quota bytes used.

Returns
  • quota bytes used

public QuotaBytesUsedInTrash getQuotaBytesUsedInTrash ()

Returns the quota bytes used in trash.

Returns
  • quota bytes used in trash

public RemainingChangestamps getRemainingChangestamps ()

Returns the remaining changestamps.

Returns
  • remaining changestamps

public boolean hasAdditionalRoleInfos ()

Returns whether it has the additional role infos.

Returns
  • whether it has the additional role infos

public boolean hasExportFormats ()

Returns whether it has the export formats.

Returns
  • whether it has the export formats

public boolean hasFeatures ()

Returns whether it has the features.

Returns
  • whether it has the features

public boolean hasImportFormats ()

Returns whether it has the import formats.

Returns
  • whether it has the import formats

public boolean hasLargestChangestamp ()

Returns whether it has the largest changestamp.

Returns
  • whether it has the largest changestamp

public boolean hasMaxUploadSizes ()

Returns whether it has the max upload sizes.

Returns
  • whether it has the max upload sizes

public boolean hasQuotaBytesTotal ()

Returns whether it has the quota bytes total.

Returns
  • whether it has the quota bytes total

public boolean hasQuotaBytesUsed ()

Returns whether it has the quota bytes used.

Returns
  • whether it has the quota bytes used

public boolean hasQuotaBytesUsedInTrash ()

Returns whether it has the quota bytes used in trash.

Returns
  • whether it has the quota bytes used in trash

public boolean hasRemainingChangestamps ()

Returns whether it has the remaining changestamps.

Returns
  • whether it has the remaining changestamps

public void setLargestChangestamp (LargestChangestamp largestChangestamp)

Sets the largest changestamp.

Parameters
largestChangestamp Largest changestamp or null to reset

public void setQuotaBytesTotal (QuotaBytesTotal quotaBytesTotal)

Sets the quota bytes total.

Parameters
quotaBytesTotal Quota bytes total or null to reset

public void setQuotaBytesUsed (QuotaBytesUsed quotaBytesUsed)

Sets the quota bytes used.

Parameters
quotaBytesUsed Quota bytes used or null to reset

public void setQuotaBytesUsedInTrash (QuotaBytesUsedInTrash quotaBytesUsedInTrash)

Sets the quota bytes used in trash.

Parameters
quotaBytesUsedInTrash Quota bytes used in trash or null to reset

public void setRemainingChangestamps (RemainingChangestamps remainingChangestamps)

Sets the remaining changestamps.

Parameters
remainingChangestamps Remaining changestamps or null to reset

public String toString ()

Protected Methods

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.