org.eclipse.ohf.stem.definitions.labels
Enum TransportMode

java.lang.Object
  extended by java.lang.Enum<TransportMode>
      extended by org.eclipse.ohf.stem.definitions.labels.TransportMode
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<TransportMode>, org.eclipse.emf.common.util.Enumerator

public enum TransportMode
extends java.lang.Enum<TransportMode>
implements org.eclipse.emf.common.util.Enumerator

This class represents the enumeration of the different types of transportation modes that can be used to move population members between one location and another.


Enum Constant Summary
AIR_LITERAL
          The 'Air' literal object.
FOOT_LITERAL
          The 'Foot' literal object.
MARINE_LITERAL
          The 'Marine' literal object.
RAIL_LITERAL
          The 'Rail' literal object.
ROAD_LITERAL
          The 'Road' literal object.
UNSPECIFIED_LITERAL
          The 'Unspecified' literal object.
 
Field Summary
static int AIR
           
static java.lang.String copyright
           
static int FOOT
          Self-powered walking
static int MARINE
          Travel by waterway
static int RAIL
          Rail road
static int ROAD
          Vehicular transport
static int UNSPECIFIED
           
static java.util.List<TransportMode> VALUES
          A public read-only list of all the 'Transport Mode' enumerators.
 
Method Summary
static TransportMode get(int value)
          Returns the 'Transport Mode' literal with the specified integer value.
static TransportMode get(java.lang.String literal)
          Returns the 'Transport Mode' literal with the specified literal value.
static TransportMode getByName(java.lang.String name)
          Returns the 'Transport Mode' literal with the specified name.
 java.lang.String getLiteral()
           
 java.lang.String getName()
           
 int getValue()
           
 java.lang.String toString()
          Returns the literal value of the enumerator, which is its string representation.
static TransportMode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static TransportMode[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

UNSPECIFIED_LITERAL

public static final TransportMode UNSPECIFIED_LITERAL
The 'Unspecified' literal object.

See Also:
UNSPECIFIED

AIR_LITERAL

public static final TransportMode AIR_LITERAL
The 'Air' literal object.

See Also:
AIR

ROAD_LITERAL

public static final TransportMode ROAD_LITERAL
The 'Road' literal object.

See Also:
ROAD

RAIL_LITERAL

public static final TransportMode RAIL_LITERAL
The 'Rail' literal object.

See Also:
RAIL

MARINE_LITERAL

public static final TransportMode MARINE_LITERAL
The 'Marine' literal object.

See Also:
MARINE

FOOT_LITERAL

public static final TransportMode FOOT_LITERAL
The 'Foot' literal object.

See Also:
FOOT
Field Detail

copyright

public static final java.lang.String copyright

See Also:
Constant Field Values

UNSPECIFIED

public static final int UNSPECIFIED
See Also:
Constant Field Values

AIR

public static final int AIR
See Also:
Constant Field Values

ROAD

public static final int ROAD
Vehicular transport

See Also:
Constant Field Values

RAIL

public static final int RAIL
Rail road

See Also:
Constant Field Values

MARINE

public static final int MARINE
Travel by waterway

See Also:
Constant Field Values

FOOT

public static final int FOOT
Self-powered walking

See Also:
Constant Field Values

VALUES

public static final java.util.List<TransportMode> VALUES
A public read-only list of all the 'Transport Mode' enumerators.

Method Detail

values

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

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

valueOf

public static TransportMode 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

get

public static TransportMode get(java.lang.String literal)
Returns the 'Transport Mode' literal with the specified literal value.


getByName

public static TransportMode getByName(java.lang.String name)
Returns the 'Transport Mode' literal with the specified name.


get

public static TransportMode get(int value)
Returns the 'Transport Mode' literal with the specified integer value.


getValue

public int getValue()

Specified by:
getValue in interface org.eclipse.emf.common.util.Enumerator

getName

public java.lang.String getName()

Specified by:
getName in interface org.eclipse.emf.common.util.Enumerator

getLiteral

public java.lang.String getLiteral()

Specified by:
getLiteral in interface org.eclipse.emf.common.util.Enumerator

toString

public java.lang.String toString()
Returns the literal value of the enumerator, which is its string representation.

Overrides:
toString in class java.lang.Enum<TransportMode>