public class

Symbol

extends ExtensionPoint
java.lang.Object
   ↳ com.google.gdata.data.AbstractExtension
     ↳ com.google.gdata.data.ExtensionPoint
       ↳ com.google.gdata.data.finance.Symbol

Class Overview

Stock symbol for the company.

Summary

Constants
String EXCHANGE XML "exchange" attribute name
String FULLNAME XML "fullName" attribute name
String SYMBOL XML "symbol" attribute name
String XML_NAME XML element name
Fields
private String exchange Exchange symbol for the company or mutual fund
private String fullName Full name for the company or mutual fund
private String symbol Stock symbol for the company or mutual fund
[Expand]
Inherited Fields
From class com.google.gdata.data.ExtensionPoint
From class com.google.gdata.data.AbstractExtension
Public Constructors
Symbol()
Default mutable constructor.
Symbol(String exchange, String fullName, String symbol)
Immutable constructor.
Public Methods
boolean equals(Object obj)
static ExtensionDescription getDefaultDescription(boolean required, boolean repeatable)
Returns the extension description, specifying whether it is required, and whether it is repeatable.
String getExchange()
Returns the exchange symbol for the company or mutual fund.
String getFullName()
Returns the full name for the company or mutual fund.
String getSymbol()
Returns the stock symbol for the company or mutual fund.
boolean hasExchange()
Returns whether it has the exchange symbol for the company or mutual fund.
boolean hasFullName()
Returns whether it has the full name for the company or mutual fund.
boolean hasSymbol()
Returns whether it has the stock symbol for the company or mutual fund.
int hashCode()
void setExchange(String exchange)
Sets the exchange symbol for the company or mutual fund.
void setFullName(String fullName)
Sets the full name for the company or mutual fund.
void setSymbol(String symbol)
Sets the stock symbol for the company or mutual fund.
String toString()
Protected Methods
void consumeAttributes(AttributeHelper helper)
Consumes attributes from the attribute helper.
void putAttributes(AttributeGenerator generator)
Puts attributes into the attribute generator.
void validate()
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

Constants

private static final String EXCHANGE

XML "exchange" attribute name

Constant Value: "exchange"

private static final String FULLNAME

XML "fullName" attribute name

Constant Value: "fullName"

private static final String SYMBOL

XML "symbol" attribute name

Constant Value: "symbol"

static final String XML_NAME

XML element name

Constant Value: "symbol"

Fields

private String exchange

Exchange symbol for the company or mutual fund

private String fullName

Full name for the company or mutual fund

private String symbol

Stock symbol for the company or mutual fund

Public Constructors

public Symbol ()

Default mutable constructor.

public Symbol (String exchange, String fullName, String symbol)

Immutable constructor.

Parameters
exchange Exchange symbol for the company or mutual fund.
fullName Full name for the company or mutual fund.
symbol Stock symbol for the company or mutual fund.

Public Methods

public boolean equals (Object obj)

Parameters
obj

public static ExtensionDescription getDefaultDescription (boolean required, boolean repeatable)

Returns the extension description, specifying whether it is required, and whether it is repeatable.

Parameters
required Whether it is required
repeatable Whether it is repeatable
Returns
  • extension description

public String getExchange ()

Returns the exchange symbol for the company or mutual fund.

Returns
  • exchange symbol for the company or mutual fund

public String getFullName ()

Returns the full name for the company or mutual fund.

Returns
  • full name for the company or mutual fund

public String getSymbol ()

Returns the stock symbol for the company or mutual fund.

Returns
  • stock symbol for the company or mutual fund

public boolean hasExchange ()

Returns whether it has the exchange symbol for the company or mutual fund.

Returns
  • whether it has the exchange symbol for the company or mutual fund

public boolean hasFullName ()

Returns whether it has the full name for the company or mutual fund.

Returns
  • whether it has the full name for the company or mutual fund

public boolean hasSymbol ()

Returns whether it has the stock symbol for the company or mutual fund.

Returns
  • whether it has the stock symbol for the company or mutual fund

public int hashCode ()

public void setExchange (String exchange)

Sets the exchange symbol for the company or mutual fund.

Parameters
exchange Exchange symbol for the company or mutual fund or null to reset

public void setFullName (String fullName)

Sets the full name for the company or mutual fund.

Parameters
fullName Full name for the company or mutual fund or null to reset

public void setSymbol (String symbol)

Sets the stock symbol for the company or mutual fund.

Parameters
symbol Stock symbol for the company or mutual fund or null to reset

public String toString ()

Protected Methods

protected void consumeAttributes (AttributeHelper helper)

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.

Parameters
helper Attribute helper

protected void putAttributes (AttributeGenerator generator)

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.

Parameters
generator Attribute generator

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.