Enum Class WeatherLink

java.lang.Object
java.lang.Enum<WeatherLink>
eu.acclimatize.unison.location.WeatherLink
All Implemented Interfaces:
Serializable, Comparable<WeatherLink>, Constable

public enum WeatherLink extends Enum<WeatherLink>
An enumeration for HATEOAS weather links.
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    The weather link for the cloud level property name and mapping.
    The weather link for the cloudiness property name and mapping.
    The weather link for the dew point property name and mapping.
    The weather link for the fog property name and mapping.
    The weather link for the global radiation property name and mapping.
    The weather link for the humidity property name and mapping.
    The weather link for the precipitation property name and mapping.
    The weather link for the pressure property name and mapping.
    The weather link for the temperature property name and mapping.
    The weather link for the wind direction property name and mapping.
    The weather link for the wind speed property name and mapping.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.hateoas.Link
    createLink(String name, String baseURI)
    Creates a link using the current mapping using the specified location name.
    Returns the enum constant of this class with the specified name.
    static WeatherLink[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • CLOUDINESS

      public static final WeatherLink CLOUDINESS
      The weather link for the cloudiness property name and mapping.
    • CLOUD_LEVEL

      public static final WeatherLink CLOUD_LEVEL
      The weather link for the cloud level property name and mapping.
    • DEW_POINT

      public static final WeatherLink DEW_POINT
      The weather link for the dew point property name and mapping.
    • GLOBAL_RADIATION

      public static final WeatherLink GLOBAL_RADIATION
      The weather link for the global radiation property name and mapping.
    • FOG

      public static final WeatherLink FOG
      The weather link for the fog property name and mapping.
    • HUMIDITY

      public static final WeatherLink HUMIDITY
      The weather link for the humidity property name and mapping.
    • PRECIPITATION

      public static final WeatherLink PRECIPITATION
      The weather link for the precipitation property name and mapping.
    • PRESSURE

      public static final WeatherLink PRESSURE
      The weather link for the pressure property name and mapping.
    • TEMPERATURE

      public static final WeatherLink TEMPERATURE
      The weather link for the temperature property name and mapping.
    • WIND_DIRECTION

      public static final WeatherLink WIND_DIRECTION
      The weather link for the wind direction property name and mapping.
    • WIND_SPEED

      public static final WeatherLink WIND_SPEED
      The weather link for the wind speed property name and mapping.
  • Method Details

    • values

      public static WeatherLink[] 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 WeatherLink 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
    • createLink

      public org.springframework.hateoas.Link createLink(String name, String baseURI)
      Creates a link using the current mapping using the specified location name.
      Parameters:
      name - The location name.
      baseURI - The base URI for a template used in creating a link.
      Returns:
      The link created.