|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<TransportMode>
org.eclipse.ohf.stem.definitions.labels.TransportMode
public enum TransportMode
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 |
---|
public static final TransportMode UNSPECIFIED_LITERAL
UNSPECIFIED
public static final TransportMode AIR_LITERAL
AIR
public static final TransportMode ROAD_LITERAL
ROAD
public static final TransportMode RAIL_LITERAL
RAIL
public static final TransportMode MARINE_LITERAL
MARINE
public static final TransportMode FOOT_LITERAL
FOOT
Field Detail |
---|
public static final java.lang.String copyright
public static final int UNSPECIFIED
public static final int AIR
public static final int ROAD
public static final int RAIL
public static final int MARINE
public static final int FOOT
public static final java.util.List<TransportMode> VALUES
Method Detail |
---|
public static final TransportMode[] values()
for(TransportMode c : TransportMode.values()) System.out.println(c);
public static TransportMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namepublic static TransportMode get(java.lang.String literal)
public static TransportMode getByName(java.lang.String name)
public static TransportMode get(int value)
public int getValue()
getValue
in interface org.eclipse.emf.common.util.Enumerator
public java.lang.String getName()
getName
in interface org.eclipse.emf.common.util.Enumerator
public java.lang.String getLiteral()
getLiteral
in interface org.eclipse.emf.common.util.Enumerator
public java.lang.String toString()
toString
in class java.lang.Enum<TransportMode>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |