Enum Class Barrier

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

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

    • cable_barrier

      public static final Barrier cable_barrier
    • city_wall

      public static final Barrier city_wall
    • ditch

      public static final Barrier ditch
    • fence

      public static final Barrier fence
    • guard_rail

      public static final Barrier guard_rail
    • handrail

      public static final Barrier handrail
    • hedge

      public static final Barrier hedge
    • retaining_wall

      public static final Barrier retaining_wall
    • wall

      public static final Barrier wall
    • block

      public static final Barrier block
    • bollard

      public static final Barrier bollard
    • border_control

      public static final Barrier border_control
    • bump_gate

      public static final Barrier bump_gate
    • bus_trap

      public static final Barrier bus_trap
    • cattle_grid

      public static final Barrier cattle_grid
    • coupure

      public static final Barrier coupure
    • cycle_barrier

      public static final Barrier cycle_barrier
    • debris

      public static final Barrier debris
    • entrance

      public static final Barrier entrance
    • full_height_turnstile

      public static final Barrier full_height_turnstile
    • gate

      public static final Barrier gate
    • hampshire_gate

      public static final Barrier hampshire_gate
    • height_restrictor

      public static final Barrier height_restrictor
    • horse_stile

      public static final Barrier horse_stile
    • kent_carriage_gap

      public static final Barrier kent_carriage_gap
    • kissing_gate

      public static final Barrier kissing_gate
    • lift_gate

      public static final Barrier lift_gate
    • motorcycle_barrier

      public static final Barrier motorcycle_barrier
    • planter

      public static final Barrier planter
    • sally_port

      public static final Barrier sally_port
    • sliding_beam

      public static final Barrier sliding_beam
    • sliding_gate

      public static final Barrier sliding_gate
    • spikes

      public static final Barrier spikes
    • stile

      public static final Barrier stile
    • sump_buster

      public static final Barrier sump_buster
    • swing_gate

      public static final Barrier swing_gate
    • toll_booth

      public static final Barrier toll_booth
    • turnstile

      public static final Barrier turnstile
    • wedge

      public static final Barrier wedge
    • wicket_gate

      public static final Barrier wicket_gate
    • bar

      public static final Barrier bar
    • chain

      public static final Barrier chain
    • jersey_barrier

      public static final Barrier jersey_barrier
    • log

      public static final Barrier log
    • rope

      public static final Barrier rope
    • tank_trap

      public static final Barrier tank_trap
    • tyres

      public static final Barrier tyres
    • yes

      public static final Barrier yes
  • Method Details

    • values

      public static Barrier[] 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 Barrier 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
    • value

      public static Barrier 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