dip.order.result
Class OrderResult.ResultType

java.lang.Object
  extended bydip.order.result.OrderResult.ResultType
All Implemented Interfaces:
java.lang.Comparable, java.io.Serializable
Enclosing class:
OrderResult

public static class OrderResult.ResultType
extends java.lang.Object
implements java.io.Serializable, java.lang.Comparable

Type-Safe enumerated categories of OrderResults.

See Also:
Serialized Form

Field Summary
static OrderResult.ResultType CONVOY_PATH_TAKEN
          ResultType indicating what convoy path a convoyed unit used
static OrderResult.ResultType DISLODGED
          ResultType indicating the order's source unit has been dislodged
static OrderResult.ResultType FAILURE
          ResultType indicating the order has failed
static OrderResult.ResultType SUBSTITUTED
          ResultType indicating that the order was substituted with another order
static OrderResult.ResultType SUCCESS
          ResultType indicating the order was successful
static OrderResult.ResultType TEXT
          ResultType for a general (not otherwise specified) message
static OrderResult.ResultType VALIDATION_FAILURE
          ResultType indicating that order validation failed
 
Constructor Summary
protected OrderResult.ResultType(java.lang.String key, int ordering)
           
 
Method Summary
 int compareTo(java.lang.Object obj)
          Sorts the result type
protected  java.lang.Object readResolve()
          Assigns serialized objects to a single constant reference
 java.lang.String toString()
          For debugging: return the name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

VALIDATION_FAILURE

public static final OrderResult.ResultType VALIDATION_FAILURE
ResultType indicating that order validation failed


SUCCESS

public static final OrderResult.ResultType SUCCESS
ResultType indicating the order was successful


FAILURE

public static final OrderResult.ResultType FAILURE
ResultType indicating the order has failed


DISLODGED

public static final OrderResult.ResultType DISLODGED
ResultType indicating the order's source unit has been dislodged


CONVOY_PATH_TAKEN

public static final OrderResult.ResultType CONVOY_PATH_TAKEN
ResultType indicating what convoy path a convoyed unit used


TEXT

public static final OrderResult.ResultType TEXT
ResultType for a general (not otherwise specified) message


SUBSTITUTED

public static final OrderResult.ResultType SUBSTITUTED
ResultType indicating that the order was substituted with another order

Constructor Detail

OrderResult.ResultType

protected OrderResult.ResultType(java.lang.String key,
                                 int ordering)
Method Detail

toString

public java.lang.String toString()
For debugging: return the name


compareTo

public int compareTo(java.lang.Object obj)
Sorts the result type

Specified by:
compareTo in interface java.lang.Comparable

readResolve

protected java.lang.Object readResolve()
                                throws java.io.ObjectStreamException
Assigns serialized objects to a single constant reference

Throws:
java.io.ObjectStreamException


Copyright 2002-2004 Zachary DelProposto / jDip Development Team. All Rights Reserved.