JIVE Platform
Release 0.3.1

edu.buffalo.cse.jive.sequence
Enum Message.MessageKind

java.lang.Object
  extended by java.lang.Enum<Message.MessageKind>
      extended by edu.buffalo.cse.jive.sequence.Message.MessageKind
All Implemented Interfaces:
Serializable, Comparable<Message.MessageKind>
Enclosing interface:
Message

public static enum Message.MessageKind
extends Enum<Message.MessageKind>

The kind of message as defined by the UML specification.


Enum Constant Summary
COMPLETE
          A complete message.
FOUND
          A message that was found (has an unknown origin).
LOST
          A message that was lost (has an unknown destination).
UNKNOWN
          An unknown message.
 
Method Summary
static Message.MessageKind valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Message.MessageKind[] 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

COMPLETE

public static final Message.MessageKind COMPLETE
A complete message.


LOST

public static final Message.MessageKind LOST
A message that was lost (has an unknown destination).


FOUND

public static final Message.MessageKind FOUND
A message that was found (has an unknown origin).


UNKNOWN

public static final Message.MessageKind UNKNOWN
An unknown message.

Method Detail

values

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

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

valueOf

public static Message.MessageKind 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

JIVE Platform
Release 0.3.1