org.marketcetera.marketdata.yahoo
Enum YahooFeedEventTranslator
java.lang.Object
java.lang.Enum<YahooFeedEventTranslator>
org.marketcetera.marketdata.yahoo.YahooFeedEventTranslator
- All Implemented Interfaces:
- Serializable, Comparable<YahooFeedEventTranslator>, EventTranslator
@ThreadSafe
public enum YahooFeedEventTranslator
- extends Enum<YahooFeedEventTranslator>
- implements EventTranslator
Translates events from the Yahoo market data supplier.
- Since:
- 2.1.4
- Version:
- $Id: YahooFeedEventTranslator.java 16154 2012-07-14 16:34:05Z colin $
- Author:
- Colin DuPlantis
INSTANCE
public static final YahooFeedEventTranslator INSTANCE
values
public static YahooFeedEventTranslator[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (YahooFeedEventTranslator c : YahooFeedEventTranslator.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static YahooFeedEventTranslator valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
toEvent
public List<Event> toEvent(Object inData,
String inHandle)
throws CoreException
- Specified by:
toEvent in interface EventTranslator
- Throws:
CoreException
fromEvent
public Object fromEvent(Event inEvent)
throws CoreException
- Specified by:
fromEvent in interface EventTranslator
- Throws:
CoreException
Copyright © 2012. All Rights Reserved.