public class

AccountEntry

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.AccountEntry

Class Overview

Entry element for account 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
AccountEntry()
Default mutable constructor.
AccountEntry(BaseEntry<?> sourceEntry)
Constructs a new instance by doing a shallow copy of data from an existing BaseEntry instance.
Public Methods
void addCustomVariable(CustomVariable customVariable)
Adds a new custom variable.
void addGoal(Goal goal)
Adds a new goal.
void addProperty(Property property)
Adds a new property.
void declareExtensions(ExtensionProfile extProfile)
Declares the set of expected Extension types for an ExtensionPoint within the target extension profile.
List<CustomVariable> getCustomVariables()
Returns the custom variables.
List<Goal> getGoals()
Returns the goals.
List<Property> getProperties()
Returns the properties.
String getProperty(String name)
Returns the value of the named property of this entry.
TableId getTableId()
Returns the data source ID.
boolean hasCustomVariables()
Returns whether it has the custom variables.
boolean hasGoals()
Returns whether it has the goals.
boolean hasProperties()
Returns whether it has the properties.
boolean hasTableId()
Returns whether it has the data source ID.
void setTableId(TableId tableId)
Sets the data source 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 AccountEntry ()

Default mutable constructor.

public AccountEntry (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 addCustomVariable (CustomVariable customVariable)

Adds a new custom variable.

Parameters
customVariable Custom variable

public void addGoal (Goal goal)

Adds a new goal.

Parameters
goal Goal

public void addProperty (Property property)

Adds a new property.

Parameters
property Property

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<CustomVariable> getCustomVariables ()

Returns the custom variables.

Returns
  • custom variables

public List<Goal> getGoals ()

Returns the goals.

Returns
  • goals

public List<Property> getProperties ()

Returns the properties.

Returns
  • properties

public String getProperty (String name)

Returns the value of the named property of this entry. More specifically, it returns the content of the value attribute of the dxp:property whose name attribute matches the argument. Returns null if no such property exists.

Parameters
name The property to retrieve from this entry
Returns
  • string value of the named property or null if it doesn't exist

public TableId getTableId ()

Returns the data source ID.

Returns
  • data source ID

public boolean hasCustomVariables ()

Returns whether it has the custom variables.

Returns
  • whether it has the custom variables

public boolean hasGoals ()

Returns whether it has the goals.

Returns
  • whether it has the goals

public boolean hasProperties ()

Returns whether it has the properties.

Returns
  • whether it has the properties

public boolean hasTableId ()

Returns whether it has the data source ID.

Returns
  • whether it has the data source ID

public void setTableId (TableId tableId)

Sets the data source ID.

Parameters
tableId Data source 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.