| java.lang.Object | |||
| ↳ | com.google.gdata.data.AbstractExtension | ||
| ↳ | com.google.gdata.data.ExtensionPoint | ||
| ↳ | com.google.gdata.data.finance.TransactionData | ||
Data for the transction.
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| String | DATE | XML "date" attribute name | |||||||||
| String | NOTES | XML "notes" attribute name | |||||||||
| String | SHARES | XML "shares" attribute name | |||||||||
| String | TYPE | XML "type" attribute name | |||||||||
| String | XML_NAME | XML element name | |||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| date | Date at which the transaction occurred | ||||||||||
| notes | Notes | ||||||||||
| shares | Number of shares involved in the transaction | ||||||||||
| type | Type for the transaction (can be "Buy", "Sell", "Buy to Cover" or "Sell Short") | ||||||||||
|
[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 commission for the transaction.
| |||||||||||
Returns the date at which the transaction occurred.
| |||||||||||
Returns the extension description, specifying whether it is required, and
whether it is repeatable.
| |||||||||||
Returns the notes.
| |||||||||||
Returns the price of the transaction.
| |||||||||||
Returns the number of shares involved in the transaction.
| |||||||||||
Returns the type for the transaction (can be "Buy", "Sell", "Buy to Cover"
or "Sell Short").
| |||||||||||
Returns whether it has the commission for the transaction.
| |||||||||||
Returns whether it has the date at which the transaction occurred.
| |||||||||||
Returns whether it has the notes.
| |||||||||||
Returns whether it has the price of the transaction.
| |||||||||||
Returns whether it has the number of shares involved in the transaction.
| |||||||||||
Returns whether it has the type for the transaction (can be "Buy", "Sell",
"Buy to Cover" or "Sell Short").
| |||||||||||
Sets the commission for the transaction.
| |||||||||||
Sets the date at which the transaction occurred.
| |||||||||||
Sets the notes.
| |||||||||||
Sets the price of the transaction.
| |||||||||||
Sets the number of shares involved in the transaction.
| |||||||||||
Sets the type for the transaction (can be "Buy", "Sell", "Buy to Cover" or
"Sell Short").
| |||||||||||
| 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 "date" attribute name
XML "notes" attribute name
XML "shares" attribute name
XML "type" attribute name
XML element name
Notes
Number of shares involved in the transaction
Type for the transaction (can be "Buy", "Sell", "Buy to Cover" or "Sell Short")
Default mutable constructor.
Immutable constructor.
| date | Date at which the transaction occurred. |
|---|---|
| notes | Notes. |
| shares | Number of shares involved in the transaction. |
| type | Type for the transaction (can be "Buy", "Sell", "Buy to Cover" or "Sell Short"). |
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 commission for the transaction.
Returns the date at which the transaction occurred.
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 notes.
Returns the number of shares involved in the transaction.
Returns the type for the transaction (can be "Buy", "Sell", "Buy to Cover" or "Sell Short").
Returns whether it has the commission for the transaction.
Returns whether it has the date at which the transaction occurred.
Returns whether it has the notes.
Returns whether it has the price of the transaction.
Returns whether it has the number of shares involved in the transaction.
Returns whether it has the type for the transaction (can be "Buy", "Sell", "Buy to Cover" or "Sell Short").
Sets the commission for the transaction.
| commission | Commission for the transaction or null to
reset
|
|---|
Sets the date at which the transaction occurred.
| date | Date at which the transaction occurred or null to
reset
|
|---|
Sets the notes.
| notes | Notes or null to reset
|
|---|
Sets the price of the transaction.
| price | Price of the transaction or null to reset
|
|---|
Sets the number of shares involved in the transaction.
| shares | Number of shares involved in the transaction or
null to reset
|
|---|
Sets the type for the transaction (can be "Buy", "Sell", "Buy to Cover" or "Sell Short").
| type | Type for the transaction (can be "Buy", "Sell", "Buy to Cover"
or "Sell Short") 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.