| java.lang.Object | |||
| ↳ | com.google.gdata.data.AbstractExtension | ||
| ↳ | com.google.gdata.data.ExtensionPoint | ||
| ↳ | com.google.gdata.data.finance.PositionData | ||
Data for the position.
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| String | GAINPERCENTAGE | XML "gainPercentage" attribute name | |||||||||
| String | RETURN1W | XML "return1w" attribute name | |||||||||
| String | RETURN1Y | XML "return1y" attribute name | |||||||||
| String | RETURN3M | XML "return3m" attribute name | |||||||||
| String | RETURN3Y | XML "return3y" attribute name | |||||||||
| String | RETURN4W | XML "return4w" attribute name | |||||||||
| String | RETURN5Y | XML "return5y" attribute name | |||||||||
| String | RETURNOVERALL | XML "returnOverall" attribute name | |||||||||
| String | RETURNYTD | XML "returnYTD" attribute name | |||||||||
| String | SHARES | XML "shares" attribute name | |||||||||
| String | XML_NAME | XML element name | |||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| gainPercentage | Percentage gain | ||||||||||
| return1w | 1 week return (percentage) | ||||||||||
| return1y | 1 year return (percentage) | ||||||||||
| return3m | 3 month return (percentage) | ||||||||||
| return3y | 3 year return (percentage) | ||||||||||
| return4w | 4 week return (percentage) | ||||||||||
| return5y | 5 year return (percentage) | ||||||||||
| returnOverall | Overall return (percentage) | ||||||||||
| returnYTD | Year-to-date return (percentage) | ||||||||||
| shares | Number of shares belonging to the position | ||||||||||
|
[Expand]
Inherited Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.gdata.data.ExtensionPoint
| |||||||||||
From class
com.google.gdata.data.AbstractExtension
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Default mutable constructor.
| |||||||||||
Immutable constructor.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Declares the set of expected Extension types for an ExtensionPoint within
the target extension profile.
| |||||||||||
Returns the cost basis of the position in the portfolio default currency
(and exchange currency if it differs).
| |||||||||||
Returns the today's gain for the position in the portfolio default currency
(and exchange currency if it differs).
| |||||||||||
Returns the extension description, specifying whether it is required, and
whether it is repeatable.
| |||||||||||
Returns the gain for the position in the portfolio default currency (and
exchange currency if it differs).
| |||||||||||
Returns the percentage gain.
| |||||||||||
Returns the market value of the position in the portfolio default currency
(and exchange currency if it differs).
| |||||||||||
Returns the 1 week return (percentage).
| |||||||||||
Returns the 1 year return (percentage).
| |||||||||||
Returns the 3 month return (percentage).
| |||||||||||
Returns the 3 year return (percentage).
| |||||||||||
Returns the 4 week return (percentage).
| |||||||||||
Returns the 5 year return (percentage).
| |||||||||||
Returns the overall return (percentage).
| |||||||||||
Returns the Year-to-date return (percentage).
| |||||||||||
Returns the number of shares belonging to the position.
| |||||||||||
Returns whether it has the cost basis of the position in the portfolio
default currency (and exchange currency if it differs).
| |||||||||||
Returns whether it has the today's gain for the position in the portfolio
default currency (and exchange currency if it differs).
| |||||||||||
Returns whether it has the gain for the position in the portfolio default
currency (and exchange currency if it differs).
| |||||||||||
Returns whether it has the percentage gain.
| |||||||||||
Returns whether it has the market value of the position in the portfolio
default currency (and exchange currency if it differs).
| |||||||||||
Returns whether it has the 1 week return (percentage).
| |||||||||||
Returns whether it has the 1 year return (percentage).
| |||||||||||
Returns whether it has the 3 month return (percentage).
| |||||||||||
Returns whether it has the 3 year return (percentage).
| |||||||||||
Returns whether it has the 4 week return (percentage).
| |||||||||||
Returns whether it has the 5 year return (percentage).
| |||||||||||
Returns whether it has the overall return (percentage).
| |||||||||||
Returns whether it has the Year-to-date return (percentage).
| |||||||||||
Returns whether it has the number of shares belonging to the position.
| |||||||||||
Sets the cost basis of the position in the portfolio default currency (and
exchange currency if it differs).
| |||||||||||
Sets the today's gain for the position in the portfolio default currency
(and exchange currency if it differs).
| |||||||||||
Sets the gain for the position in the portfolio default currency (and
exchange currency if it differs).
| |||||||||||
Sets the percentage gain.
| |||||||||||
Sets the market value of the position in the portfolio default currency
(and exchange currency if it differs).
| |||||||||||
Sets the 1 week return (percentage).
| |||||||||||
Sets the 1 year return (percentage).
| |||||||||||
Sets the 3 month return (percentage).
| |||||||||||
Sets the 3 year return (percentage).
| |||||||||||
Sets the 4 week return (percentage).
| |||||||||||
Sets the 5 year return (percentage).
| |||||||||||
Sets the overall return (percentage).
| |||||||||||
Sets the Year-to-date return (percentage).
| |||||||||||
Sets the number of shares belonging to the position.
| |||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Consumes attributes from the attribute helper.
| |||||||||||
Puts attributes into the attribute generator.
| |||||||||||
Checks the attributes to see if there are any problems.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
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
| |||||||||||
XML "gainPercentage" attribute name
XML "return1w" attribute name
XML "return1y" attribute name
XML "return3m" attribute name
XML "return3y" attribute name
XML "return4w" attribute name
XML "return5y" attribute name
XML "returnOverall" attribute name
XML "returnYTD" attribute name
XML "shares" attribute name
XML element name
Percentage gain
1 week return (percentage)
1 year return (percentage)
3 month return (percentage)
3 year return (percentage)
4 week return (percentage)
5 year return (percentage)
Overall return (percentage)
Year-to-date return (percentage)
Number of shares belonging to the position
Default mutable constructor.
Immutable constructor.
| gainPercentage | Percentage gain. |
|---|---|
| return1w | 1 week return (percentage). |
| return1y | 1 year return (percentage). |
| return3m | 3 month return (percentage). |
| return3y | 3 year return (percentage). |
| return4w | 4 week return (percentage). |
| return5y | 5 year return (percentage). |
| returnOverall | Overall return (percentage). |
| returnYTD | Year-to-date return (percentage). |
| shares | Number of shares belonging to the position. |
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.
| extProfile | The ExtensionProfile to initialize. |
|---|
Returns the cost basis of the position in the portfolio default currency (and exchange currency if it differs).
Returns the today's gain for the position in the portfolio default currency (and exchange currency if it differs).
Returns the extension description, specifying whether it is required, and whether it is repeatable.
| required | Whether it is required |
|---|---|
| repeatable | Whether it is repeatable |
Returns the gain for the position in the portfolio default currency (and exchange currency if it differs).
Returns the percentage gain.
Returns the market value of the position in the portfolio default currency (and exchange currency if it differs).
Returns the 1 week return (percentage).
Returns the 1 year return (percentage).
Returns the 3 month return (percentage).
Returns the 3 year return (percentage).
Returns the 4 week return (percentage).
Returns the 5 year return (percentage).
Returns the overall return (percentage).
Returns the Year-to-date return (percentage).
Returns the number of shares belonging to the position.
Returns whether it has the cost basis of the position in the portfolio default currency (and exchange currency if it differs).
Returns whether it has the today's gain for the position in the portfolio default currency (and exchange currency if it differs).
Returns whether it has the gain for the position in the portfolio default currency (and exchange currency if it differs).
Returns whether it has the percentage gain.
Returns whether it has the market value of the position in the portfolio default currency (and exchange currency if it differs).
Returns whether it has the 1 week return (percentage).
Returns whether it has the 1 year return (percentage).
Returns whether it has the 3 month return (percentage).
Returns whether it has the 3 year return (percentage).
Returns whether it has the 4 week return (percentage).
Returns whether it has the 5 year return (percentage).
Returns whether it has the overall return (percentage).
Returns whether it has the Year-to-date return (percentage).
Returns whether it has the number of shares belonging to the position.
Sets the cost basis of the position in the portfolio default currency (and exchange currency if it differs).
| costBasis | Cost basis of the position in the portfolio default
currency (and exchange currency if it differs) or null to
reset
|
|---|
Sets the today's gain for the position in the portfolio default currency (and exchange currency if it differs).
| daysGain | Today's gain for the position in the portfolio default
currency (and exchange currency if it differs) or null to
reset
|
|---|
Sets the gain for the position in the portfolio default currency (and exchange currency if it differs).
| gain | Gain for the position in the portfolio default currency (and
exchange currency if it differs) or null to reset
|
|---|
Sets the percentage gain.
| gainPercentage | Percentage gain or null to reset
|
|---|
Sets the market value of the position in the portfolio default currency (and exchange currency if it differs).
| marketValue | Market value of the position in the portfolio default
currency (and exchange currency if it differs) or null to
reset
|
|---|
Sets the 1 week return (percentage).
| return1w | 1 week return (percentage) or null to reset
|
|---|
Sets the 1 year return (percentage).
| return1y | 1 year return (percentage) or null to reset
|
|---|
Sets the 3 month return (percentage).
| return3m | 3 month return (percentage) or null to reset
|
|---|
Sets the 3 year return (percentage).
| return3y | 3 year return (percentage) or null to reset
|
|---|
Sets the 4 week return (percentage).
| return4w | 4 week return (percentage) or null to reset
|
|---|
Sets the 5 year return (percentage).
| return5y | 5 year return (percentage) or null to reset
|
|---|
Sets the overall return (percentage).
| returnOverall | Overall return (percentage) or null to
reset
|
|---|
Sets the Year-to-date return (percentage).
| returnYTD | Year-to-date return (percentage) or null to
reset
|
|---|
Sets the number of shares belonging to the position.
| shares | Number of shares belonging to the position or
null to reset
|
|---|
Consumes attributes from the attribute helper. May also use
consumeContent(boolean) to consume the element's text
content. Called from getHandler(ExtensionProfile, String, String, Attributes). Default implementation does
nothing, though generally this is discouraged unless there really are no
attributes.
| helper | Attribute helper |
|---|
| ParseException |
|---|
Puts attributes into the attribute generator. Called from
generate(XmlWriter, ExtensionProfile). Default implementation
does nothing, though generally this is discouraged unless there really are
no attributes.
| generator | Attribute generator |
|---|
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.