Package uk.org.siri.siri21
Enum OccupancyEnumeration
- java.lang.Object
-
- java.lang.Enum<OccupancyEnumeration>
-
- uk.org.siri.siri21.OccupancyEnumeration
-
- All Implemented Interfaces:
Serializable,Comparable<OccupancyEnumeration>
public enum OccupancyEnumeration extends Enum<OccupancyEnumeration>
Java class for OccupancyEnumeration.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="OccupancyEnumeration"> <restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN"> <enumeration value="unknown"/> <enumeration value="empty"/> <enumeration value="manySeatsAvailable"/> <enumeration value="fewSeatsAvailable"/> <enumeration value="standingRoomOnly"/> <enumeration value="crushedStandingRoomOnly"/> <enumeration value="full"/> <enumeration value="notAcceptingPassengers"/> <enumeration value="undefined"/> <enumeration value="seatsAvailable"/> <enumeration value="standingAvailable"/> </restriction> </simpleType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CRUSHED_STANDING_ROOM_ONLYGTFS-R "CRUSHED_STANDING_ROOM_ONLY" The vehicle can currently accommodate only standing passengers and has limited space for them.EMPTYGTFS-R "EMPTY" The vehicle is considered empty by most measures, and has few or no passengers onboard, but is still accepting passengers.FEW_SEATS_AVAILABLEGTFS-R "FEW_SEATS_AVAILABLE" / TPEG Pts45_2, few seats available The vehicle has a small percentage of seats available.FULLGTFS-R "FULL" / TPEG Pts45_5, fullMANY_SEATS_AVAILABLEGTFS-R "MANY_SEATS_AVAILABLE" / TPEG Pts45_1, many seats available The vehicle has a large percentage of seats available.NOT_ACCEPTING_PASSENGERSGTFS-R "NOT_ACCEPTING_PASSENGERS" The vehicle cannot accept passengers.SEATS_AVAILABLE(SIRI 2.1) deprecated - use a more specific valueSTANDING_AVAILABLE(SIRI 2.1) deprecated - use a more specific valueSTANDING_ROOM_ONLYGTFS-R "STANDING_ROOM_ONLY" / TPEG Pts45_4, standing room only (and TPEG Pts45_3, no seats available) The vehicle can currently accommodate only standing passengers.UNDEFINEDTPEG Pts45_255, undefined occupancyUNKNOWNTPEG Pts45_0, unknown
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OccupancyEnumerationfromValue(String v)Stringvalue()static OccupancyEnumerationvalueOf(String name)Returns the enum constant of this type with the specified name.static OccupancyEnumeration[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN
public static final OccupancyEnumeration UNKNOWN
TPEG Pts45_0, unknown
-
EMPTY
public static final OccupancyEnumeration EMPTY
GTFS-R "EMPTY" The vehicle is considered empty by most measures, and has few or no passengers onboard, but is still accepting passengers.
-
MANY_SEATS_AVAILABLE
public static final OccupancyEnumeration MANY_SEATS_AVAILABLE
GTFS-R "MANY_SEATS_AVAILABLE" / TPEG Pts45_1, many seats available The vehicle has a large percentage of seats available. What percentage of free seats out of the total seats available is to be considered large enough to fall into this category is determined at the discretion of the producer.
-
FEW_SEATS_AVAILABLE
public static final OccupancyEnumeration FEW_SEATS_AVAILABLE
GTFS-R "FEW_SEATS_AVAILABLE" / TPEG Pts45_2, few seats available The vehicle has a small percentage of seats available. What percentage of free seats out of the total seats available is to be considered small enough to fall into this category is determined at the discretion of the producer.
-
STANDING_ROOM_ONLY
public static final OccupancyEnumeration STANDING_ROOM_ONLY
GTFS-R "STANDING_ROOM_ONLY" / TPEG Pts45_4, standing room only (and TPEG Pts45_3, no seats available) The vehicle can currently accommodate only standing passengers.
-
CRUSHED_STANDING_ROOM_ONLY
public static final OccupancyEnumeration CRUSHED_STANDING_ROOM_ONLY
GTFS-R "CRUSHED_STANDING_ROOM_ONLY" The vehicle can currently accommodate only standing passengers and has limited space for them.
-
FULL
public static final OccupancyEnumeration FULL
GTFS-R "FULL" / TPEG Pts45_5, full
-
NOT_ACCEPTING_PASSENGERS
public static final OccupancyEnumeration NOT_ACCEPTING_PASSENGERS
GTFS-R "NOT_ACCEPTING_PASSENGERS" The vehicle cannot accept passengers.
-
UNDEFINED
public static final OccupancyEnumeration UNDEFINED
TPEG Pts45_255, undefined occupancy
-
SEATS_AVAILABLE
public static final OccupancyEnumeration SEATS_AVAILABLE
(SIRI 2.1) deprecated - use a more specific value
-
STANDING_AVAILABLE
public static final OccupancyEnumeration STANDING_AVAILABLE
(SIRI 2.1) deprecated - use a more specific value
-
-
Method Detail
-
values
public static OccupancyEnumeration[] 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 (OccupancyEnumeration c : OccupancyEnumeration.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OccupancyEnumeration 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 nameNullPointerException- if the argument is null
-
value
public String value()
-
fromValue
public static OccupancyEnumeration fromValue(String v)
-
-