net.sf.freecol.common.model
Enum ModelMessage.MessageType

java.lang.Object
  extended by java.lang.Enum<ModelMessage.MessageType>
      extended by net.sf.freecol.common.model.ModelMessage.MessageType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ModelMessage.MessageType>
Enclosing class:
ModelMessage

public static enum ModelMessage.MessageType
extends java.lang.Enum<ModelMessage.MessageType>

Constants describing the type of message.


Enum Constant Summary
ACCEPTED_DEMANDS
           
BUILDING_COMPLETED
           
COMBAT_RESULT
           
DEFAULT
           
FOREIGN_DIPLOMACY
           
GIFT_GOODS
           
GOVERNMENT_EFFICIENCY
           
LOST_CITY_RUMOUR
           
MARKET_PRICES
           
MISSING_GOODS
           
REJECTED_DEMANDS
           
SONS_OF_LIBERTY
           
TUTORIAL
           
UNIT_ADDED
           
UNIT_DEMOTED
           
UNIT_IMPROVED
           
UNIT_LOST
           
WAREHOUSE_CAPACITY
           
WARNING
           
 
Method Summary
static ModelMessage.MessageType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ModelMessage.MessageType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

DEFAULT

public static final ModelMessage.MessageType DEFAULT

WARNING

public static final ModelMessage.MessageType WARNING

SONS_OF_LIBERTY

public static final ModelMessage.MessageType SONS_OF_LIBERTY

GOVERNMENT_EFFICIENCY

public static final ModelMessage.MessageType GOVERNMENT_EFFICIENCY

WAREHOUSE_CAPACITY

public static final ModelMessage.MessageType WAREHOUSE_CAPACITY

UNIT_IMPROVED

public static final ModelMessage.MessageType UNIT_IMPROVED

UNIT_DEMOTED

public static final ModelMessage.MessageType UNIT_DEMOTED

UNIT_LOST

public static final ModelMessage.MessageType UNIT_LOST

UNIT_ADDED

public static final ModelMessage.MessageType UNIT_ADDED

BUILDING_COMPLETED

public static final ModelMessage.MessageType BUILDING_COMPLETED

FOREIGN_DIPLOMACY

public static final ModelMessage.MessageType FOREIGN_DIPLOMACY

MARKET_PRICES

public static final ModelMessage.MessageType MARKET_PRICES

LOST_CITY_RUMOUR

public static final ModelMessage.MessageType LOST_CITY_RUMOUR

GIFT_GOODS

public static final ModelMessage.MessageType GIFT_GOODS

MISSING_GOODS

public static final ModelMessage.MessageType MISSING_GOODS

TUTORIAL

public static final ModelMessage.MessageType TUTORIAL

COMBAT_RESULT

public static final ModelMessage.MessageType COMBAT_RESULT

ACCEPTED_DEMANDS

public static final ModelMessage.MessageType ACCEPTED_DEMANDS

REJECTED_DEMANDS

public static final ModelMessage.MessageType REJECTED_DEMANDS
Method Detail

values

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

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

valueOf

public static ModelMessage.MessageType valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null