Enum Class Power

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

public enum Power extends Enum<Power> implements AmenityOrWay
This enum describes the supported values for the power="*" attribute of OSM, representing types of electrical utility transmission network components. See the definition of power on the OpenStreetMap wiki.
Author:
Andrew Pavlin, KA2DDO
  • Enum Constant Details

    • user_defined

      public static final Power user_defined
    • line

      public static final Power line
    • minor_line

      public static final Power minor_line
    • station

      public static final Power station
    • substation

      public static final Power substation
    • generator

      public static final Power generator
    • tower

      public static final Power tower
    • plant

      public static final Power plant
    • sub_station

      public static final Power sub_station
  • Method Details

    • values

      public static Power[] 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 Power 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 Power value(String name)
      Get the enum value associated with the string name specified.
      Parameters:
      name - String to convert into an Enum
      Returns:
      Power for the string name, or null if no match