Enum Class Historic

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

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

    • aircraft

      public static final Historic aircraft
    • aqueduct

      public static final Historic aqueduct
    • archaeological_site

      public static final Historic archaeological_site
    • battlefield

      public static final Historic battlefield
    • boundary_stone

      public static final Historic boundary_stone
    • building

      public static final Historic building
    • canal

      public static final Historic canal
    • cannon

      public static final Historic cannon
    • castle

      public static final Historic castle
    • church

      public static final Historic church
    • city_gate

      public static final Historic city_gate
    • citywalls

      public static final Historic citywalls
    • farm

      public static final Historic farm
    • fort

      public static final Historic fort
    • gallows

      public static final Historic gallows
    • highwater_mark

      public static final Historic highwater_mark
    • house

      public static final Historic house
    • locomotive

      public static final Historic locomotive
    • manor

      public static final Historic manor
    • memorial

      public static final Historic memorial
    • menhir

      public static final Historic menhir
    • milestone

      public static final Historic milestone
    • monastery

      public static final Historic monastery
    • monument

      public static final Historic monument
    • optical_telegraph

      public static final Historic optical_telegraph
    • pillory

      public static final Historic pillory
    • railway

      public static final Historic railway
    • railway_depot

      public static final Historic railway_depot
    • road

      public static final Historic road
    • roman_road

      public static final Historic roman_road
    • ruins

      public static final Historic ruins
    • rune_stone

      public static final Historic rune_stone
    • ship

      public static final Historic ship
    • tomb

      public static final Historic tomb
    • wayside_cross

      public static final Historic wayside_cross
    • wayside_shrine

      public static final Historic wayside_shrine
    • wreck

      public static final Historic wreck
    • yes

      public static final Historic yes
  • Method Details

    • values

      public static Historic[] 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 Historic 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()
      Get amenity type associated with this enumeration; only for types that are amenities.
      Specified by:
      getAmenityType in interface AmenityOrWay
      Returns:
      AmenityType for this type, or null if not an amenity
    • getFlagMask

      public short getFlagMask()
      Indicates any flag bits implied by this enum type.
      Specified by:
      getFlagMask in interface EnumMayHaveFlags
      Returns:
      bitmask of flags if this enum implies flags
    • value

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