public class

PositionEntry

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

Class Overview

Describes an entry in a feed of Finance positions.

Summary

Constants
String KIND Position kind term value.
Fields
public static final Category CATEGORY Position 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
PositionEntry()
Default mutable constructor.
PositionEntry(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.
PositionFeedLink getFeedLink()
Returns the transaction feed for the position.
PositionData getPositionData()
Returns the data for the position.
Symbol getSymbol()
Returns the stock symbol for the position.
boolean hasFeedLink()
Returns whether it has the transaction feed for the position.
boolean hasPositionData()
Returns whether it has the data for the position.
boolean hasSymbol()
Returns whether it has the stock symbol for the position.
void setFeedLink(PositionFeedLink feedLink)
Sets the transaction feed for the position.
void setPositionData(PositionData positionData)
Sets the data for the position.
void setSymbol(Symbol symbol)
Sets the stock symbol for the position.
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

Position kind term value.

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

Fields

public static final Category CATEGORY

Position kind category.

Public Constructors

public PositionEntry ()

Default mutable constructor.

public PositionEntry (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 PositionFeedLink getFeedLink ()

Returns the transaction feed for the position.

Returns
  • transaction feed for the position

public PositionData getPositionData ()

Returns the data for the position.

Returns
  • data for the position

public Symbol getSymbol ()

Returns the stock symbol for the position.

Returns
  • stock symbol for the position

public boolean hasFeedLink ()

Returns whether it has the transaction feed for the position.

Returns
  • whether it has the transaction feed for the position

public boolean hasPositionData ()

Returns whether it has the data for the position.

Returns
  • whether it has the data for the position

public boolean hasSymbol ()

Returns whether it has the stock symbol for the position.

Returns
  • whether it has the stock symbol for the position

public void setFeedLink (PositionFeedLink feedLink)

Sets the transaction feed for the position.

Parameters
feedLink Transaction feed for the position or null to reset

public void setPositionData (PositionData positionData)

Sets the data for the position.

Parameters
positionData Data for the position or null to reset

public void setSymbol (Symbol symbol)

Sets the stock symbol for the position.

Parameters
symbol Stock symbol for the position 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.