Enum Class Tourism

java.lang.Object
java.lang.Enum<Tourism>
org.ka2ddo.yaac.osm.Tourism
All Implemented Interfaces:
Serializable, Comparable<Tourism>, Constable, AmenityOrWay

public enum Tourism extends Enum<Tourism> implements AmenityOrWay
Supported types of the OSM tourism="*" attribute. See the definition of tourism on the OpenStreetMap wiki.
Author:
Andrew Pavlin, KA2DDO
  • Enum Constant Details

    • alpine_hut

      public static final Tourism alpine_hut
    • apartment

      public static final Tourism apartment
    • aquarium

      public static final Tourism aquarium
    • artwork

      public static final Tourism artwork
    • attraction

      public static final Tourism attraction
    • camp_pitch

      public static final Tourism camp_pitch
    • camp_site

      public static final Tourism camp_site
    • caravan_site

      public static final Tourism caravan_site
    • chalet

      public static final Tourism chalet
    • guest_house

      public static final Tourism guest_house
    • hostel

      public static final Tourism hostel
    • hotel

      public static final Tourism hotel
    • information

      public static final Tourism information
    • motel

      public static final Tourism motel
    • museum

      public static final Tourism museum
    • picnic_site

      public static final Tourism picnic_site
    • theme_park

      public static final Tourism theme_park
    • viewpoint

      public static final Tourism viewpoint
    • wilderness_hut

      public static final Tourism wilderness_hut
    • zoo

      public static final Tourism zoo
    • yes

      public static final Tourism yes
      Flag providing no additional information except that this is of some interest to tourists.
  • Method Details

    • values

      public static Tourism[] 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

      public static Tourism valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • wayType

      public WayType wayType()
      Report the WayType for rendering this type of Way.
      Specified by:
      wayType in interface AmenityOrWay
      Returns:
      WayType
    • getAmenityType

      public AmenityType getAmenityType()
      Report the amenity type (if any) associated with this tourism interest. For use only if OSM element does not have some other tag key defining the amenity type.
      Specified by:
      getAmenityType in interface AmenityOrWay
      Returns:
      AmenityType of this tourism item, or null if no such information available
    • value

      public static Tourism value(String name)
      Get the enum value associated with the string name specified.
      Parameters:
      name - String to convert into an Enum
      Returns:
      Tourism for the string name, or null if no match