com.oopitis.weather.owm
Class OwmSummary.Item

java.lang.Object
  extended by com.oopitis.weather.owm.OwmSummary.Item
Enclosing class:
OwmSummary

public static class OwmSummary.Item
extends java.lang.Object

A summary item.


Field Summary
protected  java.lang.String desc
          The short description from the constructor.
protected  java.lang.String iconUrl
          The icon URL.
protected  java.lang.String id
          The weather condition code from the constructor.
 
Constructor Summary
OwmSummary.Item(java.lang.String id, java.lang.String desc, java.lang.String icon)
          Constructs a summary item.
 
Method Summary
 java.lang.String getDescription()
          Returns the short description.
 java.lang.String getIconUrl()
          Returns the icon URL.
 java.lang.String getId()
          Returns the weather condition code.
 java.lang.String toString()
          Returns the short description or "null" if the short description is not available.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

id

protected final java.lang.String id
The weather condition code from the constructor.


desc

protected final java.lang.String desc
The short description from the constructor.


iconUrl

protected final java.lang.String iconUrl
The icon URL.

Constructor Detail

OwmSummary.Item

public OwmSummary.Item(java.lang.String id,
                       java.lang.String desc,
                       java.lang.String icon)
Constructs a summary item.

Parameters:
id - the weather condition code
desc - the short description
icon - the icon filename without extension
Throws:
java.lang.NullPointerException - if the weather condition code is null
Method Detail

getId

public final java.lang.String getId()
Returns the weather condition code.

Returns:
the weather condition code

getDescription

public final java.lang.String getDescription()
Returns the short description.

Returns:
the short description; null if unavailable

getIconUrl

public final java.lang.String getIconUrl()
Returns the icon URL.

Returns:
the icon URL; null if unavailable

toString

public java.lang.String toString()
Returns the short description or "null" if the short description is not available.

Overrides:
toString in class java.lang.Object
Returns:
the short description or "null" if the short description is not available