public class

ManagementEntry

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

Class Overview

Entry element for GA data source 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
ManagementEntry()
Default mutable constructor.
ManagementEntry(BaseEntry<?> sourceEntry)
Constructs a new instance by doing a shallow copy of data from an existing BaseEntry instance.
Public Methods
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.
AnalyticsLink getChildLink(String targetKind)
Returns the link with the given targetKind.
List<AnalyticsLink> getChildLinks()
Returns all the child links contained in the entry.
Goal getGoal()
Returns the goal.
List<AnalyticsLink> getParentLinks()
Returns all the parent links contained in the entry.
List<Property> getProperties()
Returns the properties.
String getProperty(String name)
Returns the value of the named property of this entry.
Segment getSegment()
Returns the segment.
boolean hasGoal()
Returns whether it has the goal.
boolean hasProperties()
Returns whether it has the properties.
boolean hasSegment()
Returns whether it has the segment.
void setGoal(Goal goal)
Sets the goal.
void setSegment(Segment segment)
Sets the segment.
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 ManagementEntry ()

Default mutable constructor.

public ManagementEntry (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 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 AnalyticsLink getChildLink (String targetKind)

Returns the link with the given targetKind. It returns null if a link with the given targetKind value is not found.

Parameters
targetKind

public List<AnalyticsLink> getChildLinks ()

Returns all the child links contained in the entry.

public Goal getGoal ()

Returns the goal.

Returns
  • goal

public List<AnalyticsLink> getParentLinks ()

Returns all the parent links contained in the entry.

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 Segment getSegment ()

Returns the segment.

Returns
  • segment

public boolean hasGoal ()

Returns whether it has the goal.

Returns
  • whether it has the goal

public boolean hasProperties ()

Returns whether it has the properties.

Returns
  • whether it has the properties

public boolean hasSegment ()

Returns whether it has the segment.

Returns
  • whether it has the segment

public void setGoal (Goal goal)

Sets the goal.

Parameters
goal Goal or null to reset

public void setSegment (Segment segment)

Sets the segment.

Parameters
segment Segment 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.