org.marketcetera.strategy
Enum OutputType

java.lang.Object
  extended by java.lang.Enum<OutputType>
      extended by org.marketcetera.strategy.OutputType
All Implemented Interfaces:
Serializable, Comparable<OutputType>

public enum OutputType
extends Enum<OutputType>

Describes the types of data that a strategy can emit.

Since:
1.0.0
Version:
$Id: OutputType.java 16154 2012-07-14 16:34:05Z colin $
Author:
Colin DuPlantis

Enum Constant Summary
ALL
          all objects, regardless of type (includes all the above)
EVENTS
          events created by this strategy
LOG
          log output created by this strategy
NOTIFICATIONS
          notifications created by this strategy
ORDERS
          orders created by this strategy
SUGGESTIONS
          trade suggestions created by this strategy
 
Method Summary
static OutputType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static OutputType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ORDERS

public static final OutputType ORDERS
orders created by this strategy


SUGGESTIONS

public static final OutputType SUGGESTIONS
trade suggestions created by this strategy


EVENTS

public static final OutputType EVENTS
events created by this strategy


NOTIFICATIONS

public static final OutputType NOTIFICATIONS
notifications created by this strategy


LOG

public static final OutputType LOG
log output created by this strategy


ALL

public static final OutputType ALL
all objects, regardless of type (includes all the above)

Method Detail

values

public static OutputType[] 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 (OutputType c : OutputType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static OutputType 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


Copyright © 2012. All Rights Reserved.