se.liu.ida.critiquer.activities.parameters
Enum LocationParameter.Type

java.lang.Object
  extended by java.lang.Enum<LocationParameter.Type>
      extended by se.liu.ida.critiquer.activities.parameters.LocationParameter.Type
All Implemented Interfaces:
Serializable, Comparable<LocationParameter.Type>
Enclosing class:
LocationParameter

public static enum LocationParameter.Type
extends Enum<LocationParameter.Type>


Enum Constant Summary
DEST_LOC
          Use this for the destination of a transportation activity
ORIG_LOC
          Use this for locations that are the starting point of a transportation activity
STATIC_LOC
          Use this for locations that are not part of transportations
 
Method Summary
static LocationParameter.Type valueOf(String name)
          Returns the enum constant of this type with the specified name.
static LocationParameter.Type[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ORIG_LOC

public static final LocationParameter.Type ORIG_LOC
Use this for locations that are the starting point of a transportation activity


DEST_LOC

public static final LocationParameter.Type DEST_LOC
Use this for the destination of a transportation activity


STATIC_LOC

public static final LocationParameter.Type STATIC_LOC
Use this for locations that are not part of transportations

Method Detail

values

public static final LocationParameter.Type[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(LocationParameter.Type c : LocationParameter.Type.values())
        System.out.println(c);

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

valueOf

public static LocationParameter.Type 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