org.fudgemsg
Enum FudgeStreamReader.FudgeStreamElement

java.lang.Object
  extended by java.lang.Enum<FudgeStreamReader.FudgeStreamElement>
      extended by org.fudgemsg.FudgeStreamReader.FudgeStreamElement
All Implemented Interfaces:
Serializable, Comparable<FudgeStreamReader.FudgeStreamElement>
Enclosing interface:
FudgeStreamReader

public static enum FudgeStreamReader.FudgeStreamElement
extends Enum<FudgeStreamReader.FudgeStreamElement>

Constants for the four stream element types as returned by FudgeStreamReader.next() and FudgeStreamReader.getCurrentElement().


Enum Constant Summary
MESSAGE_ENVELOPE
          Issued when the envelope header is parsed.
SIMPLE_FIELD
          Issued when a simple (non-hierarchical) field is encountered.
SUBMESSAGE_FIELD_END
          Issued when the end of a sub-Message field is reached.
SUBMESSAGE_FIELD_START
          Issued when a sub-Message field is encountered.
 
Method Summary
static FudgeStreamReader.FudgeStreamElement valueOf(String name)
          Returns the enum constant of this type with the specified name.
static FudgeStreamReader.FudgeStreamElement[] 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

MESSAGE_ENVELOPE

public static final FudgeStreamReader.FudgeStreamElement MESSAGE_ENVELOPE
Issued when the envelope header is parsed.


SIMPLE_FIELD

public static final FudgeStreamReader.FudgeStreamElement SIMPLE_FIELD
Issued when a simple (non-hierarchical) field is encountered.


SUBMESSAGE_FIELD_START

public static final FudgeStreamReader.FudgeStreamElement SUBMESSAGE_FIELD_START
Issued when a sub-Message field is encountered.


SUBMESSAGE_FIELD_END

public static final FudgeStreamReader.FudgeStreamElement SUBMESSAGE_FIELD_END
Issued when the end of a sub-Message field is reached.

Method Detail

values

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

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

valueOf

public static FudgeStreamReader.FudgeStreamElement 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 2009-Present by OpenGamma Inc. and individual contributors
Released under the Apache License, Version 2.0