|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<AmenityCategory>
org.ka2ddo.yaac.osm.AmenityCategory
public enum AmenityCategory
Enum of the categorizations for different types of amenities.
AmenityType
Enum Constant Summary | |
---|---|
commercial
For-profit businesses that do not fall into any of the other categories. |
|
communications
Businesses and facilities related to telecommunications and broadcasting. |
|
education
Educational institutions and businesses. |
|
entertainment
Entertainment facilities that are not sports facilities. |
|
financial
Businesses and facilities related to financial transactions. |
|
food
Businesses and facilities related to growing, delivering, and serving food. |
|
geographical
Geographical landmarks that do not fall into other categories. |
|
government
Facilities and buildings associated with branches of government at any level (national to municipal) that do not fall into the public_safety category. |
|
health
facilities and services related to providing health care. |
|
historic
Landmarks of historical and/or archaeological interest. |
|
lodging
Facilities and buildings related to providing places for people to live (permanently or temporarily). |
|
other
Amenities that do not fall into any of the other categories. |
|
public_safety
Businesses, non-profits, and government agencies and facilities for protecting the public, including police, fire, and emergency medical service (ambulances). |
|
public_service
Public service organizations that do not fall into the government or public_safety
categories. |
|
religion
Buildings and facilities associated with a religious organization. |
|
social
Buildings and facilities for social groups not related to sport s. |
|
sport
Buildings and facilities for playing sports. |
|
transportation
Buildings and facilities associated with transportation (especially mass public transport). |
|
utility
Buildings and facilities associated with public utility providers (water, electric, natural gas, etc.). |
Method Summary | |
---|---|
boolean |
isVisible()
Indicate whether OSM objects tagged with this enum are visible. |
void |
setVisible(boolean visible)
Set whether OSM objects tagged with this enum should be visible. |
java.lang.String |
toString()
Returns the localized name of this enum constant. |
static AmenityCategory |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static AmenityCategory[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.ka2ddo.yaac.osm.VisibleEnum |
---|
name |
Enum Constant Detail |
---|
public static final AmenityCategory other
public static final AmenityCategory commercial
public static final AmenityCategory communications
public static final AmenityCategory education
public static final AmenityCategory entertainment
public static final AmenityCategory financial
public static final AmenityCategory food
public static final AmenityCategory geographical
public static final AmenityCategory government
public_safety
category.
public static final AmenityCategory health
public static final AmenityCategory historic
public static final AmenityCategory lodging
public static final AmenityCategory public_safety
public static final AmenityCategory public_service
government
or public_safety
categories.
public static final AmenityCategory religion
public static final AmenityCategory social
sport
s.
public static final AmenityCategory sport
public static final AmenityCategory transportation
public static final AmenityCategory utility
Method Detail |
---|
public static AmenityCategory[] values()
for (AmenityCategory c : AmenityCategory.values()) System.out.println(c);
public static AmenityCategory 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 name
java.lang.NullPointerException
- if the argument is nullpublic boolean isVisible()
isVisible
in interface VisibleEnum
public void setVisible(boolean visible)
setVisible
in interface VisibleEnum
visible
- boolean true if tagged objects should be visiblepublic java.lang.String toString()
toString
in interface VisibleEnum
toString
in class java.lang.Enum<AmenityCategory>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |