Package net.fortuna.ical4j.model
Enum LocationType
- java.lang.Object
-
- java.lang.Enum<LocationType>
-
- net.fortuna.ical4j.model.LocationType
-
- All Implemented Interfaces:
Serializable
,Comparable<LocationType>
public enum LocationType extends Enum<LocationType>
Location types as defined by the Location Types Registry (RFC4589): https://tools.ietf.org/html/rfc4589
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LocationType
from(String locationTypeString)
String
toString()
static LocationType
valueOf(String name)
Returns the enum constant of this type with the specified name.static LocationType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
aircraft
public static final LocationType aircraft
-
airport
public static final LocationType airport
-
arena
public static final LocationType arena
-
automobile
public static final LocationType automobile
-
bank
public static final LocationType bank
-
bar
public static final LocationType bar
-
bicycle
public static final LocationType bicycle
-
bus
public static final LocationType bus
-
bus_station
public static final LocationType bus_station
-
cafe
public static final LocationType cafe
-
classroom
public static final LocationType classroom
-
club
public static final LocationType club
-
construction
public static final LocationType construction
-
convention_center
public static final LocationType convention_center
-
government
public static final LocationType government
-
hospital
public static final LocationType hospital
-
hotel
public static final LocationType hotel
-
industrial
public static final LocationType industrial
-
library
public static final LocationType library
-
motorcycle
public static final LocationType motorcycle
-
office
public static final LocationType office
-
other
public static final LocationType other
-
outdoors
public static final LocationType outdoors
-
parking
public static final LocationType parking
-
place_of_worship
public static final LocationType place_of_worship
-
prison
public static final LocationType prison
-
public_
public static final LocationType public_
-
public_transport
public static final LocationType public_transport
-
residence
public static final LocationType residence
-
restaurant
public static final LocationType restaurant
-
school
public static final LocationType school
-
shopping_area
public static final LocationType shopping_area
-
stadium
public static final LocationType stadium
-
store
public static final LocationType store
-
street
public static final LocationType street
-
theater
public static final LocationType theater
-
train
public static final LocationType train
-
train_station
public static final LocationType train_station
-
truck
public static final LocationType truck
-
underway
public static final LocationType underway
-
unknown
public static final LocationType unknown
-
warehouse
public static final LocationType warehouse
-
water
public static final LocationType water
-
watercraft
public static final LocationType watercraft
-
-
Method Detail
-
values
public static LocationType[] 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 (LocationType c : LocationType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LocationType 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
-
from
public static LocationType from(String locationTypeString)
-
toString
public String toString()
- Overrides:
toString
in classEnum<LocationType>
-
-