1
0
Fork 0
mirror of https://bitbucket.org/akapribot/owm-japis.git synced 2025-04-25 07:17:11 -07:00

2.5.0.2 is ready! There is always room for corrections. :-)

This commit is contained in:
Ashutosh Kumar Singh 2014-07-03 01:08:06 +05:30
parent 135ff2bf74
commit c295549579
106 changed files with 2060 additions and 7535 deletions

View file

@ -2,16 +2,16 @@
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_17) on Sat Aug 10 23:46:34 IST 2013 -->
<!-- Generated by javadoc (version 1.7.0_51) on Thu Jul 03 01:05:54 IST 2014 -->
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
<title>AbstractWeatherData.Main (OpenWeatherMap.org JAPIs)</title>
<meta name="date" content="2013-08-10">
<title>AbstractWeatherData.Main (OWM JAPIs Docs)</title>
<meta name="date" content="2014-07-03">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="AbstractWeatherData.Main (OpenWeatherMap.org JAPIs)";
parent.document.title="AbstractWeatherData.Main (OWM JAPIs Docs)";
}
//-->
</script>
@ -62,13 +62,13 @@
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
@ -107,9 +107,10 @@
<pre>public abstract static class <span class="strong">AbstractWeatherData.Main</span>
extends java.lang.Object</pre>
<div class="block">This class provides default implementations for <code>Main</code>.
Standard behaviors like the <code>has</code> and the <code>get</code>
methods for information about main weather elements (for example,
temperature, pressure, humidity, etc.) are defined here.</div>
Standard behaviors like the <code>has</code> and the <code>get</code>
methods for information about main weather elements (for example,
temperature, pressure, humidity, etc.) are defined here.
<p></div>
<dl><dt><span class="strong">Since:</span></dt>
<dd>2.5.0.1</dd>
<dt><span class="strong">Version:</span></dt>
@ -122,81 +123,6 @@ extends java.lang.Object</pre>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>private float</code></td>
<td class="colLast"><code><strong><a href="../../../../../net/aksingh/java/api/owm/AbstractWeatherData.Main.html#humidity">humidity</a></strong></code>
<div class="block">Humidity</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>private java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../../net/aksingh/java/api/owm/AbstractWeatherData.Main.html#JSON_MAIN_HUMIDITY">JSON_MAIN_HUMIDITY</a></strong></code>
<div class="block">Key for JSON variable <code>Main -> Humidity</code></div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>private java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../../net/aksingh/java/api/owm/AbstractWeatherData.Main.html#JSON_MAIN_PRESSURE">JSON_MAIN_PRESSURE</a></strong></code>
<div class="block">Key for JSON variable <code>Main -> Pressure</code></div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>private java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../../net/aksingh/java/api/owm/AbstractWeatherData.Main.html#JSON_MAIN_TEMP">JSON_MAIN_TEMP</a></strong></code>
<div class="block">Key for JSON variable <code>Main -> Temperature</code></div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>private java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../../net/aksingh/java/api/owm/AbstractWeatherData.Main.html#JSON_MAIN_TEMP_MAX">JSON_MAIN_TEMP_MAX</a></strong></code>
<div class="block">Key for JSON variable <code>Main -> Maximum temperature</code></div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>private java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../../net/aksingh/java/api/owm/AbstractWeatherData.Main.html#JSON_MAIN_TEMP_MIN">JSON_MAIN_TEMP_MIN</a></strong></code>
<div class="block">Key for JSON variable <code>Main -> Minimum temperature</code></div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>private float</code></td>
<td class="colLast"><code><strong><a href="../../../../../net/aksingh/java/api/owm/AbstractWeatherData.Main.html#maxTemp">maxTemp</a></strong></code>
<div class="block">Maximum temperature</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>private float</code></td>
<td class="colLast"><code><strong><a href="../../../../../net/aksingh/java/api/owm/AbstractWeatherData.Main.html#minTemp">minTemp</a></strong></code>
<div class="block">Minimum temperature</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>private float</code></td>
<td class="colLast"><code><strong><a href="../../../../../net/aksingh/java/api/owm/AbstractWeatherData.Main.html#pressure">pressure</a></strong></code>
<div class="block">Pressure</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>private float</code></td>
<td class="colLast"><code><strong><a href="../../../../../net/aksingh/java/api/owm/AbstractWeatherData.Main.html#temp">temp</a></strong></code>
<div class="block">Temperature</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_summary">
@ -215,9 +141,7 @@ extends java.lang.Object</pre>
</tr>
<tr class="rowColor">
<td class="colOne"><code><strong><a href="../../../../../net/aksingh/java/api/owm/AbstractWeatherData.Main.html#AbstractWeatherData.Main(org.json.JSONObject)">AbstractWeatherData.Main</a></strong>(org.json.JSONObject&nbsp;jsonObj)</code>
<div class="block">Parameterized constructor
Initializes variables from values from the given JSON object.</div>
<div class="block">Parameterized constructor</div>
</td>
</tr>
</table>
@ -274,13 +198,15 @@ extends java.lang.Object</pre>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../net/aksingh/java/api/owm/AbstractWeatherData.Main.html#hasMaxTemperature()">hasMaxTemperature</a></strong>()</code>
<div class="block">Tells if the data for maximum temperature of the city is available or not.</div>
<div class="block">Tells if the data for maximum temperature of the city is available or
not.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../net/aksingh/java/api/owm/AbstractWeatherData.Main.html#hasMinTemperature()">hasMinTemperature</a></strong>()</code>
<div class="block">Tells if the data for minimum temperature of the city is available or not.</div>
<div class="block">Tells if the data for minimum temperature of the city is available or
not.</div>
</td>
</tr>
<tr class="altColor">
@ -311,119 +237,6 @@ extends java.lang.Object</pre>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_detail">
<!-- -->
</a>
<h3>Field Detail</h3>
<a name="JSON_MAIN_TEMP">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>JSON_MAIN_TEMP</h4>
<pre>private final&nbsp;java.lang.String JSON_MAIN_TEMP</pre>
<div class="block">Key for JSON variable <code>Main -> Temperature</code></div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#net.aksingh.java.api.owm.AbstractWeatherData.Main.JSON_MAIN_TEMP">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="JSON_MAIN_TEMP_MIN">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>JSON_MAIN_TEMP_MIN</h4>
<pre>private final&nbsp;java.lang.String JSON_MAIN_TEMP_MIN</pre>
<div class="block">Key for JSON variable <code>Main -> Minimum temperature</code></div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#net.aksingh.java.api.owm.AbstractWeatherData.Main.JSON_MAIN_TEMP_MIN">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="JSON_MAIN_TEMP_MAX">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>JSON_MAIN_TEMP_MAX</h4>
<pre>private final&nbsp;java.lang.String JSON_MAIN_TEMP_MAX</pre>
<div class="block">Key for JSON variable <code>Main -> Maximum temperature</code></div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#net.aksingh.java.api.owm.AbstractWeatherData.Main.JSON_MAIN_TEMP_MAX">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="JSON_MAIN_PRESSURE">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>JSON_MAIN_PRESSURE</h4>
<pre>private final&nbsp;java.lang.String JSON_MAIN_PRESSURE</pre>
<div class="block">Key for JSON variable <code>Main -> Pressure</code></div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#net.aksingh.java.api.owm.AbstractWeatherData.Main.JSON_MAIN_PRESSURE">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="JSON_MAIN_HUMIDITY">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>JSON_MAIN_HUMIDITY</h4>
<pre>private final&nbsp;java.lang.String JSON_MAIN_HUMIDITY</pre>
<div class="block">Key for JSON variable <code>Main -> Humidity</code></div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#net.aksingh.java.api.owm.AbstractWeatherData.Main.JSON_MAIN_HUMIDITY">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="temp">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>temp</h4>
<pre>private final&nbsp;float temp</pre>
<div class="block">Temperature</div>
</li>
</ul>
<a name="minTemp">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>minTemp</h4>
<pre>private final&nbsp;float minTemp</pre>
<div class="block">Minimum temperature</div>
</li>
</ul>
<a name="maxTemp">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>maxTemp</h4>
<pre>private final&nbsp;float maxTemp</pre>
<div class="block">Maximum temperature</div>
</li>
</ul>
<a name="pressure">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>pressure</h4>
<pre>private final&nbsp;float pressure</pre>
<div class="block">Pressure</div>
</li>
</ul>
<a name="humidity">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>humidity</h4>
<pre>private final&nbsp;float humidity</pre>
<div class="block">Humidity</div>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_detail">
@ -438,8 +251,9 @@ extends java.lang.Object</pre>
<h4>AbstractWeatherData.Main</h4>
<pre>public&nbsp;AbstractWeatherData.Main()</pre>
<div class="block">Non-parameterized constructor
<p>Initializes variables as per following basis:<br>
<p>
<p>
Initializes variables as per following basis:<br>
Boolean: <code>false</code><br>
Integral: Minimum value (MIN_VALUE)<br>
Floating point: Not a number (NaN)<br>
@ -454,9 +268,10 @@ extends java.lang.Object</pre>
<h4>AbstractWeatherData.Main</h4>
<pre>public&nbsp;AbstractWeatherData.Main(org.json.JSONObject&nbsp;jsonObj)</pre>
<div class="block">Parameterized constructor
Initializes variables from values from the given JSON object.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>jsonObj</code> - JSON object containing data about main weather
<p>
Initializes variables from values from the given JSON object.
<p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>jsonObj</code> - JSON object containing data about main weather
elements. For example, temperature, pressure, etc.</dd></dl>
</li>
</ul>
@ -475,8 +290,10 @@ extends java.lang.Object</pre>
<li class="blockList">
<h4>hasTemperature</h4>
<pre>public&nbsp;boolean&nbsp;hasTemperature()</pre>
<div class="block">Tells if the data for temperature of the city is available or not.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd><code>true</code> if data available, otherwise <code>false</code></dd></dl>
<div class="block">Tells if the data for temperature of the city is available or not.
<p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd><code>true</code> if data available, otherwise
<code>false</code></dd></dl>
</li>
</ul>
<a name="hasMinTemperature()">
@ -486,8 +303,11 @@ extends java.lang.Object</pre>
<li class="blockList">
<h4>hasMinTemperature</h4>
<pre>public&nbsp;boolean&nbsp;hasMinTemperature()</pre>
<div class="block">Tells if the data for minimum temperature of the city is available or not.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd><code>true</code> if data available, otherwise <code>false</code></dd></dl>
<div class="block">Tells if the data for minimum temperature of the city is available or
not.
<p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd><code>true</code> if data available, otherwise
<code>false</code></dd></dl>
</li>
</ul>
<a name="hasMaxTemperature()">
@ -497,8 +317,11 @@ extends java.lang.Object</pre>
<li class="blockList">
<h4>hasMaxTemperature</h4>
<pre>public&nbsp;boolean&nbsp;hasMaxTemperature()</pre>
<div class="block">Tells if the data for maximum temperature of the city is available or not.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd><code>true</code> if data available, otherwise <code>false</code></dd></dl>
<div class="block">Tells if the data for maximum temperature of the city is available or
not.
<p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd><code>true</code> if data available, otherwise
<code>false</code></dd></dl>
</li>
</ul>
<a name="hasPressure()">
@ -508,8 +331,10 @@ extends java.lang.Object</pre>
<li class="blockList">
<h4>hasPressure</h4>
<pre>public&nbsp;boolean&nbsp;hasPressure()</pre>
<div class="block">Tells if the data for pressure of the city is available or not.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd><code>true</code> if data available, otherwise <code>false</code></dd></dl>
<div class="block">Tells if the data for pressure of the city is available or not.
<p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd><code>true</code> if data available, otherwise
<code>false</code></dd></dl>
</li>
</ul>
<a name="hasHumidity()">
@ -519,8 +344,10 @@ extends java.lang.Object</pre>
<li class="blockList">
<h4>hasHumidity</h4>
<pre>public&nbsp;boolean&nbsp;hasHumidity()</pre>
<div class="block">Tells if the data for humidity of the city is available or not.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd><code>true</code> if data available, otherwise <code>false</code></dd></dl>
<div class="block">Tells if the data for humidity of the city is available or not.
<p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd><code>true</code> if data available, otherwise
<code>false</code></dd></dl>
</li>
</ul>
<a name="getTemperature()">
@ -530,9 +357,10 @@ extends java.lang.Object</pre>
<li class="blockList">
<h4>getTemperature</h4>
<pre>public&nbsp;float&nbsp;getTemperature()</pre>
<div class="block">Returns data for temperature of the city.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>Temperature of the city if available,
otherwise <code>Float.NaN</code>, i.e., Not a Number.</dd></dl>
<div class="block">Returns data for temperature of the city.
<p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>Temperature of the city if available, otherwise
<code>Float.NaN</code>, i.e., Not a Number.</dd></dl>
</li>
</ul>
<a name="getMinTemperature()">
@ -542,9 +370,10 @@ extends java.lang.Object</pre>
<li class="blockList">
<h4>getMinTemperature</h4>
<pre>public&nbsp;float&nbsp;getMinTemperature()</pre>
<div class="block">Returns data for minimum temperature of the city.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>Minimum temperature of the city if available,
otherwise <code>Float.NaN</code>, i.e., Not a Number.</dd></dl>
<div class="block">Returns data for minimum temperature of the city.
<p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>Minimum temperature of the city if available, otherwise
<code>Float.NaN</code>, i.e., Not a Number.</dd></dl>
</li>
</ul>
<a name="getMaxTemperature()">
@ -554,9 +383,10 @@ extends java.lang.Object</pre>
<li class="blockList">
<h4>getMaxTemperature</h4>
<pre>public&nbsp;float&nbsp;getMaxTemperature()</pre>
<div class="block">Returns data for maximum temperature of the city.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>Maximum temperature of the city if available,
otherwise <code>Float.NaN</code>, i.e., Not a Number.</dd></dl>
<div class="block">Returns data for maximum temperature of the city.
<p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>Maximum temperature of the city if available, otherwise
<code>Float.NaN</code>, i.e., Not a Number.</dd></dl>
</li>
</ul>
<a name="getPressure()">
@ -566,9 +396,10 @@ extends java.lang.Object</pre>
<li class="blockList">
<h4>getPressure</h4>
<pre>public&nbsp;float&nbsp;getPressure()</pre>
<div class="block">Returns data for pressure of the city.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>Pressure of the city if available,
otherwise <code>Float.NaN</code>, i.e., Not a Number.</dd></dl>
<div class="block">Returns data for pressure of the city.
<p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>Pressure of the city if available, otherwise
<code>Float.NaN</code>, i.e., Not a Number.</dd></dl>
</li>
</ul>
<a name="getHumidity()">
@ -578,9 +409,10 @@ extends java.lang.Object</pre>
<li class="blockList">
<h4>getHumidity</h4>
<pre>public&nbsp;float&nbsp;getHumidity()</pre>
<div class="block">Returns data for humidity of the city.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>Humidity of the city if available,
otherwise <code>Float.NaN</code>, i.e., Not a Number.</dd></dl>
<div class="block">Returns data for humidity of the city.
<p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>Humidity of the city if available, otherwise
<code>Float.NaN</code>, i.e., Not a Number.</dd></dl>
</li>
</ul>
</li>
@ -634,13 +466,13 @@ extends java.lang.Object</pre>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>