public class

PortfolioEntry

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.finance.PortfolioEntry

Class Overview

Describes an entry in a feed of Finance portfolios.

Summary

Constants
String KIND Portfolio kind term value.
Fields
public static final Category CATEGORY Portfolio 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
PortfolioEntry()
Default mutable constructor.
PortfolioEntry(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.
PortfolioFeedLink getFeedLink()
Returns the position feed for the portfolio.
PortfolioData getPortfolioData()
Returns the data for the portfolio.
boolean hasFeedLink()
Returns whether it has the position feed for the portfolio.
boolean hasPortfolioData()
Returns whether it has the data for the portfolio.
void setFeedLink(PortfolioFeedLink feedLink)
Sets the position feed for the portfolio.
void setPortfolioData(PortfolioData portfolioData)
Sets the data for the portfolio.
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

Portfolio kind term value.

Constant Value: "http://schemas.google.com/finance/2007#portfolio"

Fields

public static final Category CATEGORY

Portfolio kind category.

Public Constructors

public PortfolioEntry ()

Default mutable constructor.

public PortfolioEntry (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 PortfolioFeedLink getFeedLink ()

Returns the position feed for the portfolio.

Returns
  • position feed for the portfolio

public PortfolioData getPortfolioData ()

Returns the data for the portfolio.

Returns
  • data for the portfolio

public boolean hasFeedLink ()

Returns whether it has the position feed for the portfolio.

Returns
  • whether it has the position feed for the portfolio

public boolean hasPortfolioData ()

Returns whether it has the data for the portfolio.

Returns
  • whether it has the data for the portfolio

public void setFeedLink (PortfolioFeedLink feedLink)

Sets the position feed for the portfolio.

Parameters
feedLink Position feed for the portfolio or null to reset

public void setPortfolioData (PortfolioData portfolioData)

Sets the data for the portfolio.

Parameters
portfolioData Data for the portfolio 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.