public class

SectionEntry

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.analytics.SectionEntry

Class Overview

Entry element for section feed.

Summary

[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
SectionEntry()
Default mutable constructor.
SectionEntry(BaseEntry<?> sourceEntry)
Constructs a new instance by doing a shallow copy of data from an existing BaseEntry instance.
Public Methods
void declareExtensions(ExtensionProfile extProfile)
Declares the set of expected Extension types for an ExtensionPoint within the target extension profile.
GwoExperimentId getExperimentId()
Returns the experiment ID.
GwoNumVariations getNumVariations()
Returns the number of section variations.
GwoSectionBeginScript getSectionBeginScript()
Returns the script snippet to mark the beginning of a section.
GwoSectionEndScript getSectionEndScript()
Returns the script snippet to mark the end of a section.
GwoSectionId getSectionId()
Returns the section ID.
boolean hasExperimentId()
Returns whether it has the experiment ID.
boolean hasNumVariations()
Returns whether it has the number of section variations.
boolean hasSectionBeginScript()
Returns whether it has the script snippet to mark the beginning of a section.
boolean hasSectionEndScript()
Returns whether it has the script snippet to mark the end of a section.
boolean hasSectionId()
Returns whether it has the section ID.
void setExperimentId(GwoExperimentId experimentId)
Sets the experiment ID.
void setNumVariations(GwoNumVariations numVariations)
Sets the number of section variations.
void setSectionBeginScript(GwoSectionBeginScript sectionBeginScript)
Sets the script snippet to mark the beginning of a section.
void setSectionEndScript(GwoSectionEndScript sectionEndScript)
Sets the script snippet to mark the end of a section.
void setSectionId(GwoSectionId sectionId)
Sets the section ID.
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

Public Constructors

public SectionEntry ()

Default mutable constructor.

public SectionEntry (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 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 GwoExperimentId getExperimentId ()

Returns the experiment ID.

Returns
  • experiment ID

public GwoNumVariations getNumVariations ()

Returns the number of section variations.

Returns
  • number of section variations

public GwoSectionBeginScript getSectionBeginScript ()

Returns the script snippet to mark the beginning of a section.

Returns
  • script snippet to mark the beginning of a section

public GwoSectionEndScript getSectionEndScript ()

Returns the script snippet to mark the end of a section.

Returns
  • script snippet to mark the end of a section

public GwoSectionId getSectionId ()

Returns the section ID.

Returns
  • section ID

public boolean hasExperimentId ()

Returns whether it has the experiment ID.

Returns
  • whether it has the experiment ID

public boolean hasNumVariations ()

Returns whether it has the number of section variations.

Returns
  • whether it has the number of section variations

public boolean hasSectionBeginScript ()

Returns whether it has the script snippet to mark the beginning of a section.

Returns
  • whether it has the script snippet to mark the beginning of a section

public boolean hasSectionEndScript ()

Returns whether it has the script snippet to mark the end of a section.

Returns
  • whether it has the script snippet to mark the end of a section

public boolean hasSectionId ()

Returns whether it has the section ID.

Returns
  • whether it has the section ID

public void setExperimentId (GwoExperimentId experimentId)

Sets the experiment ID.

Parameters
experimentId Experiment ID or null to reset

public void setNumVariations (GwoNumVariations numVariations)

Sets the number of section variations.

Parameters
numVariations Number of section variations or null to reset

public void setSectionBeginScript (GwoSectionBeginScript sectionBeginScript)

Sets the script snippet to mark the beginning of a section.

Parameters
sectionBeginScript Script snippet to mark the beginning of a section or null to reset

public void setSectionEndScript (GwoSectionEndScript sectionEndScript)

Sets the script snippet to mark the end of a section.

Parameters
sectionEndScript Script snippet to mark the end of a section or null to reset

public void setSectionId (GwoSectionId sectionId)

Sets the section ID.

Parameters
sectionId Section ID 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.