001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portlet.weather.model;
022:
023: import java.io.Serializable;
024:
025: /**
026: * <a href="Weather.java.html"><b><i>View Source</i></b></a>
027: *
028: * @author Brian Wing Shun Chan
029: *
030: */
031: public class Weather implements Serializable {
032:
033: public Weather() {
034: }
035:
036: public Weather(String zip, float currentTemp) {
037: this (zip, null, currentTemp);
038: }
039:
040: public Weather(String zip, String iconURL, float currentTemp) {
041: this (zip, iconURL, null, currentTemp, (float) 0.0, (float) 0.0,
042: null);
043: }
044:
045: public Weather(String zip, String iconURL, String conditions,
046: float currentTemp, float humidity, float barometer,
047: String barometerDirection) {
048: _zip = zip;
049: _iconURL = iconURL;
050: _conditions = conditions;
051: _currentTemp = currentTemp;
052: _humidity = humidity;
053: _barometer = barometer;
054: _barometerDirection = barometerDirection;
055: }
056:
057: public String getZip() {
058: return _zip;
059: }
060:
061: public void setZip(String zip) {
062: _zip = zip;
063: }
064:
065: public String getIconURL() {
066: return _iconURL;
067: }
068:
069: public void setIconURL(String iconURL) {
070: _iconURL = iconURL;
071: }
072:
073: public String getConditions() {
074: return _conditions;
075: }
076:
077: public void setConditions(String conditions) {
078: _conditions = conditions;
079: }
080:
081: public float getCurrentTemp() {
082: return _currentTemp;
083: }
084:
085: public void setCurrentTemp(float currentTemp) {
086: _currentTemp = currentTemp;
087: }
088:
089: public float getHumidity() {
090: return _humidity;
091: }
092:
093: public void setHumidity(float humidity) {
094: _humidity = humidity;
095: }
096:
097: public float getBarometer() {
098: return _barometer;
099: }
100:
101: public void setBarometer(float barometer) {
102: _barometer = barometer;
103: }
104:
105: public String getBarometerDirection() {
106: return _barometerDirection;
107: }
108:
109: public void setBarometerDirection(String barometerDirection) {
110: _barometerDirection = barometerDirection;
111: }
112:
113: private String _zip;
114: private String _iconURL;
115: private String _conditions;
116: private float _currentTemp;
117: private float _humidity;
118: private float _barometer;
119: private String _barometerDirection;
120:
121: }
|