Package org.ka2ddo.yaac.osm
Enum Class AmenityType
- All Implemented Interfaces:
Serializable
,Comparable<AmenityType>
,Constable
,EnumWithImageName
,EnumMayHaveFlags
This enumeration defines the well-known type names for the OSM attributes "amenity", "office", and
"shop". Any new values for any of these attributes must be added at the end of the list to maintain
enum ordinal stability and therefore backwards compatibility with maps imported with previous
versions of this enumeration. See the OpenStreetMap definitions of amenity,
office and
shop for more details.
- Author:
- Andrew Pavlin, KA2DDO
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Field Summary
Modifier and TypeFieldDescriptionstatic final Comparator<AmenityType>
This comparator sorts AmenityType enums by their I18N-localized names. -
Method Summary
Modifier and TypeMethodDescriptionGet the category associated with this AmenityType.int
Indicates any flag bits implied by this enum type.short
Indicates any flag bits implied by this enum type.Return the relative path name of the image file for this enum value.Get the AmenityType (if any) that is more general than this AmenityType and shouldn't be listed on aGenericTaggedNode
that has both AmenityTypes.static void
unit test.static AmenityType[]
Get a non-cloned copy of the list of AmenityType enums.toString()
Returns the localized name of this enum constant.static AmenityType
Get the enum value associated with the string name specified.static AmenityType
value
(String name, AmenityCategory category) Get the enum value associated with the string name and category specified.static AmenityType
Returns the enum constant of this class with the specified name.static AmenityType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
other
-
shop
-
office
-
bar
-
bbq
-
biergarten
-
cafe
-
drinking_water
-
fast_food
-
food_court
-
ice_cream
-
patisserie
-
pub
-
restaurant
-
winebar
-
college
-
kindergarten
-
library
-
school
-
university
-
bicycle_parking
-
bicycle_rental
-
bus_station
-
car_rental
-
car_sharing
-
car_wash
-
charging_station
-
ferry_terminal
-
fuel
-
grit_bin
-
motorcycle_parking
-
parking
-
parking_entrance
-
parking_space
-
salt
-
taxi
-
water
-
ambulance
-
atm
-
bank
-
bureau_de_change
-
baby_hatch
-
clinic
-
dentist
-
doctors
-
hospital
-
nursing_home
-
payday_loans
-
pharmacy
-
veterinary
-
art_gallery
-
arts_centre
-
bowling_alley
-
cinema
-
community_centre
-
fountain
-
gymnasium
-
museum
-
nightclub
-
pool_hall
-
social_centre
-
stadium
-
stripclub
-
studio
-
swimming_pool
-
swingerclub
-
theatre
-
youth_centre
-
bench
-
billboard
-
border_control
-
brothel
-
buoy
-
checkpoint
-
city_map_post
-
clock
-
coast_guard
-
consulate
-
convention_center
-
council_office
-
courthouse
-
crematorium
-
crucifix
-
embassy
-
emergency_phone
-
fire_hydrant
-
first_aid
-
fire_station
-
grave_yard
-
hunting_stand
-
life_guard
-
marketplace
-
mine
-
mountain_rescue
-
notice_board
-
parking_meter
-
place_of_worship
-
police
-
police_box
-
post_box
-
post_office
-
prison
-
public_building
-
radio_station
-
rangers
-
recruiting_center
-
recycling
-
rescue_squad
-
sauna
-
shelter
-
shower
-
signpost
-
speed_trap
-
streetlight
-
telephone
-
toilets
-
townhall
-
trailer_park
-
traffic_signals
-
traffic_light_camera
-
train_station
-
tv_station
-
vending_machine
-
waste_basket
-
waste_disposal
-
water_fountain
-
watering_place
-
weigh_station
-
wharf
-
accountant
-
administrative
-
airline
-
architect
-
blacksmith
-
broker
-
camping
-
carpenter
-
cobbler
-
company
-
educational_institution
-
electrician
-
employment_agency
-
engineer
-
estate_agent
-
government
-
insurance
-
it
-
lawyer
-
newspaper
-
ngo
-
plumber
-
political_party
-
quango
-
research
-
tax
-
telecommunication
-
travel_agent
-
alcohol
-
anime
-
antiques
-
appliance
-
art
-
automat
-
baby_goods
-
bakery
-
barber
-
bathroom_furnishing
-
bazaar
-
beauty
-
bed
-
beverages
-
bicycle
-
bookbinder
-
bookmaker
-
books
-
boutique
-
butcher
-
car
-
car_repair
-
car_parts
-
carpet
-
chandler
-
charity
-
cheese
-
chemist
-
chocolatier
-
clothes
-
coffee
-
computer
-
confectionery
-
convenience
-
copyshop
-
cosmetics
-
costume
-
craft
-
curtain
-
daycare
-
deli
-
department_store
-
dive
-
dry_cleaning
-
drugstore
-
doityourself
-
dollar_store
-
donut
-
electronics
-
equestrian
-
erotic
-
fabric
-
farm_supplies
-
fireplace
-
fitness_club
-
florist
-
formal_wear
-
frame
-
funeral_directors
-
furnace
-
furrier
-
furniture
-
garden_centre
-
gas
-
general_store
-
gift
-
glaziery
-
goldsmith
-
golf
-
goodwill
-
greengrocer
-
haberdashery
-
hairdresser
-
hardware
-
health_food
-
health_and_beauty
-
hearing_aids
-
herbalist
-
hifi
-
home_center
-
hostel
-
hotel
-
hunting
-
interior_decoration
-
internet_cafe
-
jewelry
-
junk
-
kiosk
-
kitchen
-
laundry
-
leather
-
leisure_centre
-
loan
-
locksmith
-
lumberyard
-
mall
-
maps
-
martial_arts
-
massage
-
medical_supply
-
military_surplus
-
mobile_phone
-
modeling
-
money_lender
-
motorcycle
-
musical_instrument
-
music
-
nail_salon
-
newsagent
-
office_supplies
-
optician
-
organic
-
outdoor
-
paint
-
pawnbroker
-
perfumery
-
pet
-
photo
-
physiotherapy
-
pizza_delivery
-
pottery
-
propane
-
psychic
-
radiotechnics
-
real_estate
-
seafood
-
second_hand
-
shoes
-
silversmith
-
snacks
-
souvenir
-
spa
-
sports
-
stationery
-
supermarket
-
tailor
-
tanning
-
tattoo
-
tearoom
-
thrift
-
ticket
-
tobacco
-
tourism
-
toys
-
trade
-
tyres
-
vacant
-
vacuum_cleaner
-
variety_store
-
video
-
watches
-
whirlpool
-
window_blind
-
wine
-
park
-
church_hall
-
homeless_shelter
-
hospice
-
cattery
-
kennel
-
waste_collection_point
-
well
-
airport
-
spaceport
-
radar
-
rv_dealer
-
concert_hall
-
music_venue
-
bandstand
-
gambling
-
credit_union
-
preschool
-
dance_studio
-
driving_school
-
equestrian_school
-
music_school
-
ski_school
-
yoga_studio
-
brewery
-
dairy
-
winery
-
scrapyard
-
dormitory
-
fraternity
-
sculpture
-
animal_shelter
-
bomb_shelter
-
rescue
-
statue
-
monastery
-
convent
-
seminary
-
shrine
-
masonic_lodge
-
observatory
-
telephone_exchange
-
weather_station
-
windsock
-
antenna
-
sanitary_station
-
red_cross
-
wifi
-
picnic_table
-
greenhouse
-
apartments
-
amphitheatre
-
cave
-
circus
-
disco
-
vivarium
-
zoo
-
rectory
-
beachhut
-
photo_studio
-
home_goods
-
sporting_goods
-
auditorium
-
boat_storage
-
bridal
-
bus_stop
-
flagpole
-
fleamarket
-
grass_strip
-
information
-
lifebuoy
-
lingerie
-
lottery
-
luggage
-
mechanic
-
mill
-
outhouse
-
payment_terminal
-
photocopy
-
sewing
-
stonemason
-
therapist
-
orphanage
-
advertising
-
amateur_radio_station
-
bingo
-
boathouse
-
boat_rental
-
cabin
-
castle
-
chiropodist
-
chiropractor
-
church
-
compressed_air
-
crypt
-
fire_beater
-
food
-
harbourmaster
-
jeepney_station
-
lifeboat_station
-
love_hotel
-
mason
-
medical_laboratory
-
milestone
-
mooring
-
morgue
-
mosque
-
nameplate
-
ophthalmologist
-
osteopath
-
party_service
-
printer
-
psychologist
-
public_bath
-
sanatorium
-
scout_hall
-
scout_hut
-
snack_cart
-
synagogue
-
tax_advisor
-
tricycle_station
-
truck_stop
-
video_games
-
war_memorial
-
water_tower
-
weapons
-
bahai_temple
-
buddhist_temple
-
hindu_temple
-
jain_temple
-
pagan_temple
-
scientology
-
shinto_temple
-
sikh_temple
-
taoist_temple
-
zoroastrian_temple
-
boat_launch
-
emergency_service
-
fishing
-
metro_station
-
military
-
money_transfer
-
public_storage
-
stables
-
stock_exchange
-
warehouse
-
acupuncturist
-
airway_beacon
-
amusement_park
-
animal_boarding
-
audiologist
-
bridge
-
bullring
-
canteen
-
church_yard
-
clocks
-
dermatologist
-
fbo
-
fish_and_chips
-
gazebo
-
golf_course
-
helipad
-
ice_rink
-
lavoir
-
loading_dock
-
notary
-
nutritionist
-
orthodontist
-
parish_hall
-
photo_booth
-
planetarium
-
playground
-
podiatrist
-
psychiatrist
-
refugee_housing
-
rodeo
-
roller_rink
-
security
-
security_post
-
snack_bar
-
solarium
-
speech_therapist
-
sports_therapist
-
storage
-
truck_wash
-
vehicle_inspection
-
vehicle_ramp
-
wash_center
-
waste_transfer_station
-
water_reservoir
-
wayside_cross
-
wayside_shrine
-
weighbridge
-
wine_cellar
-
beekeeper
-
carpet_layer
-
caterer
-
dam
-
distillery
-
dressmaker
-
financial
-
handicraft
-
hvac
-
lighthouse
-
nursing_service
-
pasta
-
rigger
-
roofer
-
saddler
-
sailmaker
-
sawmill
-
self_storage
-
sweep
-
tiler
-
tinsmith
-
tower
-
tutor
-
upholsterer
-
archaeological_site
-
bicycle_repair_station
-
bomb_crater
-
boundary_stone
-
bunker
-
city_gate
-
citywalls
-
defibrillator
-
fort
-
memorial
-
monument
-
pastafarian_temple
-
quarry
-
register_office
-
ruins
-
siren
-
volcano
-
watermill
-
water_tank
-
windmill
-
solar_power
-
theMan
-
welding
-
power_tower
-
parliament
-
battlefield
-
cannon
-
clockmaker
-
e_cigarette
-
generator
-
meteor_crater
-
orthopedics
-
palace
-
pillory
-
religion
-
rune_stone
-
suction_point
-
trail_head
-
watchmaker
-
water_point
-
wreck
-
gallows
-
ship
-
trolley_bay
-
access_point
-
cafeteria
-
fire_extinguisher
-
fire_hose
-
fire_water_pond
-
guns
-
kneipp_water_cure
-
labour_union
-
motorcycle_repair
-
peak
-
petroleum_well
-
pier
-
public_bookcase
-
ses_station
-
spring
-
tree
-
wastewater_plant
-
wilderness_hut
-
lock
-
moat
-
power_plant
-
smoking_area
-
assembly_point
-
aquarium
-
bag
-
cannabis
-
canoe_rental
-
carpool
-
cholera_treatment_centre
-
country_store
-
electrical
-
electronics_repair
-
events_venue
-
faa_fsdo
-
farm
-
forestry
-
gardener
-
key_cutter
-
landfill
-
landing_site
-
marina
-
metal_construction
-
painter
-
pastry
-
pyrotechnics
-
subway_entrance
-
window_construction
-
airport_terminal
-
hangar
-
sports_centre
-
speed_camera
-
arcade
-
geyser
-
hot_spring
-
kiln
-
runaway_truck_ramp
-
clubhouse
-
water_rescue_station
-
boat
-
coworking_space
-
device_charging_station
-
emergency_ward_entrance
-
firepit
-
hackerspace
-
hobby
-
paver
-
tools
-
games
-
moving_company
-
nutrition_supplements
-
party
-
pet_grooming
-
surveyor
-
water_utility
-
alternative_medicine
-
chinese_medicine
-
computer_games
-
hookah_lounge
-
rescue_box
-
sculptor
-
student_union
-
building_materials
-
beacon
-
homeopath
-
naturopath
-
dry_riser_inlet
-
grinding_mill
-
signmaker
-
blood_bank
-
atelier
-
basket_maker
-
boatbuilder
-
cabinet_maker
-
car_painter
-
concession_stand
-
cooper
-
dental_technician
-
door_construction
-
embroiderer
-
engraver
-
fairgrounds
-
farmers_market
-
floorer
-
flooring
-
insulation
-
joiner
-
lighting
-
mint
-
oil_mill
-
organ_builder
-
parquet_layer
-
payment_centre
-
piano_tuner
-
plasterer
-
printmaker
-
private_investigator
-
rv_storage
-
scaffolder
-
stage
-
stand_builder
-
sun_protection
-
toolmaker
-
truck
-
turner
-
water_well_drilling
-
animal_breeding
-
animal_training
-
atv
-
baking_oven
-
boat_sharing
-
brewing_supplies
-
candles
-
casino
-
dog_toilet
-
doors
-
energy
-
fashion_accessories
-
frozen_food
-
garden_furniture
-
give_box
-
groundskeeping
-
language_school
-
lounger
-
refugee_site
-
ski
-
spices
-
tiles
-
toy_library
-
trailer
-
truck_repair
-
wholesale
-
wool
-
courier
-
guide
-
logistics
-
property_management
-
social_club
-
visa
-
cook_stove
-
health_post
-
parcel_locker
-
construction_company
-
restaurant_supply
-
festival_grounds
-
marae
-
motorcycle_parts
-
power_supply
-
power_tools
-
printer_ink
-
tool_hire
-
adoption_agency
-
binoculars
-
dressing_room
-
junk_yard
-
microfinance
-
motorcycle_rental
-
pitch
-
reception_desk
-
alpine_slide
-
amusement_ride
-
birthing_centre
-
blood_donation
-
bumper_car
-
bungee_jumping
-
carousel
-
community_health_worker
-
counselling
-
dark_ride
-
dialysis
-
drop_tower
-
ferris_wheel
-
formal_garden
-
game_installation
-
kiddie_ride
-
log_flume
-
maze
-
midwife
-
nurse
-
occupational_therapist
-
psychotherapist
-
rehabilitation
-
roller_coaster
-
sample_collection
-
swing_carousel
-
vaccination_centre
-
water_slide
-
disaster_help_point
-
fire_lookout
-
first_aid_kit
-
pediatrician
-
traffic_park
-
veterinary_pharmacy
-
hedge
-
toll_booth
-
psap
-
-
Field Details
-
LOCALIZED_AMENITY_TYPE_COMPARATOR
This comparator sorts AmenityType enums by their I18N-localized names.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
value
Get the enum value associated with the string name specified.- Parameters:
name
- String to convert into an Enum- Returns:
- AmenityType for the string name, or null if no match
-
value
Get the enum value associated with the string name and category specified.- Parameters:
name
- String to convert into an Enumcategory
- AmenityCategory to restrict searches to- Returns:
- AmenityType for the string name, or null if no match
-
nonClonedValues
Get a non-cloned copy of the list of AmenityType enums. Note the caller is responsible for not modifying this array.- Returns:
- array of AmenityTypes in ordinal order
-
getFlagMask
public short getFlagMask()Indicates any flag bits implied by this enum type.- Specified by:
getFlagMask
in interfaceEnumMayHaveFlags
- Returns:
- bitmask of flags if this enum implies flags
-
getExtFlagMask
public int getExtFlagMask()Indicates any flag bits implied by this enum type.- Returns:
- bitmask of flags if this enum implies flags
-
getCategory
Get the category associated with this AmenityType.- Returns:
- AmenityCategory
-
getLessPreferred
Get the AmenityType (if any) that is more general than this AmenityType and shouldn't be listed on aGenericTaggedNode
that has both AmenityTypes.- Returns:
- less-preferred AmenityType, or null if no more-generic AmenityType than this one
-
toString
Returns the localized name of this enum constant.- Overrides:
toString
in classEnum<AmenityType>
- Returns:
- the localized name of this enum constant
-
main
unit test.- Parameters:
args
- ignored
-
getImagePath
Return the relative path name of the image file for this enum value.- Specified by:
getImagePath
in interfaceEnumWithImageName
- Returns:
- path name String
-
social_facility