Package eu.acclimatize.unison.location
Enum Class WeatherLink
- All Implemented Interfaces:
Serializable,Comparable<WeatherLink>,Constable
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 ConstantsEnum ConstantDescriptionThe 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 TypeMethodDescriptionorg.springframework.hateoas.LinkcreateLink(String name, String baseURI) Creates a link using the current mapping using the specified location name.static WeatherLinkReturns the enum constant of this class with the specified name.static WeatherLink[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CLOUDINESS
The weather link for the cloudiness property name and mapping. -
CLOUD_LEVEL
The weather link for the cloud level property name and mapping. -
DEW_POINT
The weather link for the dew point property name and mapping. -
GLOBAL_RADIATION
The weather link for the global radiation property name and mapping. -
FOG
The weather link for the fog property name and mapping. -
HUMIDITY
The weather link for the humidity property name and mapping. -
PRECIPITATION
The weather link for the precipitation property name and mapping. -
PRESSURE
The weather link for the pressure property name and mapping. -
TEMPERATURE
The weather link for the temperature property name and mapping. -
WIND_DIRECTION
The weather link for the wind direction property name and mapping. -
WIND_SPEED
The weather link for the wind speed property name and mapping.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
createLink
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.
-