public class

DataFeed

extends BaseFeed<F extends BaseFeed, E extends BaseEntry>
java.lang.Object
   ↳ com.google.gdata.data.AbstractExtension
     ↳ com.google.gdata.data.ExtensionPoint
       ↳ com.google.gdata.data.Source
         ↳ com.google.gdata.data.BaseFeed<F extends com.google.gdata.data.BaseFeed, E extends com.google.gdata.data.BaseEntry>
           ↳ com.google.gdata.data.analytics.DataFeed

Class Overview

Feed element in data feed.

Summary

[Expand]
Inherited Fields
From class com.google.gdata.data.BaseFeed
From class com.google.gdata.data.Source
From class com.google.gdata.data.ExtensionPoint
From class com.google.gdata.data.AbstractExtension
Public Constructors
DataFeed()
Default mutable constructor.
DataFeed(BaseFeed<?, ?> sourceFeed)
Constructs a new instance by doing a shallow copy of data from an existing BaseFeed instance.
Public Methods
void addDataSource(DataSource dataSource)
Adds a new data source.
void addSegment(Segment segment)
Adds a new segment.
void declareExtensions(ExtensionProfile extProfile)
Declares the set of expected Extension types for an ExtensionPoint within the target extension profile.

The implementation of this method for BaseFeed will declare any extensions associated with the contained entry type.

Aggregates getAggregates()
Returns the aggregates.
ContainsSampledData getContainsSampledData()
Returns the flag indicating whether response contains sampled data.
List<DataSource> getDataSources()
Returns the data sources.
EndDate getEndDate()
Returns the end date.
List<Segment> getSegments()
Returns the segments.
StartDate getStartDate()
Returns the start date.
boolean hasAggregates()
Returns whether it has the aggregates.
boolean hasContainsSampledData()
Returns whether it has the flag indicating whether response contains sampled data.
boolean hasDataSources()
Returns whether it has the data sources.
boolean hasEndDate()
Returns whether it has the end date.
boolean hasSegments()
Returns whether it has the segments.
boolean hasStartDate()
Returns whether it has the start date.
void setAggregates(Aggregates aggregates)
Sets the aggregates.
void setContainsSampledData(ContainsSampledData containsSampledData)
Sets the flag indicating whether response contains sampled data.
void setEndDate(EndDate endDate)
Sets the end date.
void setStartDate(StartDate startDate)
Sets the start date.
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.BaseFeed
From class com.google.gdata.data.Source
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.IFeed
From interface com.google.gdata.data.Kind.Adaptable
From interface com.google.gdata.data.Kind.Adaptor

Public Constructors

public DataFeed ()

Default mutable constructor.

public DataFeed (BaseFeed<?, ?> sourceFeed)

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

Parameters
sourceFeed Source feed

Public Methods

public void addDataSource (DataSource dataSource)

Adds a new data source.

Parameters
dataSource Data source

public void addSegment (Segment segment)

Adds a new segment.

Parameters
segment Segment

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.

The implementation of this method for BaseFeed will declare any extensions associated with the contained entry type.

Parameters
extProfile The ExtensionProfile to initialize.

public Aggregates getAggregates ()

Returns the aggregates.

Returns
  • aggregates

public ContainsSampledData getContainsSampledData ()

Returns the flag indicating whether response contains sampled data.

Returns
  • flag indicating whether response contains sampled data

public List<DataSource> getDataSources ()

Returns the data sources.

Returns
  • data sources

public EndDate getEndDate ()

Returns the end date.

Returns
  • end date

public List<Segment> getSegments ()

Returns the segments.

Returns
  • segments

public StartDate getStartDate ()

Returns the start date.

Returns
  • start date

public boolean hasAggregates ()

Returns whether it has the aggregates.

Returns
  • whether it has the aggregates

public boolean hasContainsSampledData ()

Returns whether it has the flag indicating whether response contains sampled data.

Returns
  • whether it has the flag indicating whether response contains sampled data

public boolean hasDataSources ()

Returns whether it has the data sources.

Returns
  • whether it has the data sources

public boolean hasEndDate ()

Returns whether it has the end date.

Returns
  • whether it has the end date

public boolean hasSegments ()

Returns whether it has the segments.

Returns
  • whether it has the segments

public boolean hasStartDate ()

Returns whether it has the start date.

Returns
  • whether it has the start date

public void setAggregates (Aggregates aggregates)

Sets the aggregates.

Parameters
aggregates Aggregates or null to reset

public void setContainsSampledData (ContainsSampledData containsSampledData)

Sets the flag indicating whether response contains sampled data.

Parameters
containsSampledData Flag indicating whether response contains sampled data or null to reset

public void setEndDate (EndDate endDate)

Sets the end date.

Parameters
endDate End date or null to reset

public void setStartDate (StartDate startDate)

Sets the start date.

Parameters
startDate Start date 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.