PageRenderTime 37ms CodeModel.GetById 28ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

/docs/com/google/maps/extras/xmlparsers/ParsingTools.html

http://gmaps-utility-library-flash.googlecode.com/
HTML | 190 lines | 178 code | 3 blank | 9 comment | 0 complexity | 145da2f6d6de77e914b2db615b3db05d MD5 | raw file
  1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2<html>
  3<head>
  4<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
  5<link rel="stylesheet" href="../../../../../style.css" type="text/css" media="screen">
  6<link rel="stylesheet" href="../../../../../print.css" type="text/css" media="print">
  7<meta content="ParsingTools,com.google.maps.extras.xmlparsers.ParsingTools,dateCheck,nanCheck,nullCheck" name="keywords">
  8<title>com.google.maps.extras.xmlparsers.ParsingTools</title>
  9</head>
 10<body>
 11<script type="text/javascript" language="javascript" src="../../../../../asdoc.js"></script><script type="text/javascript" language="javascript" src="../../../../../cookies.js"></script><script type="text/javascript" language="javascript">
 12<!--
 13				asdocTitle = 'ParsingTools - API Documentation';
 14				var baseRef = '../../../../../';
 15				window.onload = configPage;
 16			--></script>
 17<table style="display:none" id="titleTable" cellspacing="0" cellpadding="0" class="titleTable">
 18<tr>
 19<td align="left" class="titleTableTitle">API Documentation</td><td align="right" class="titleTableTopNav"><a onclick="loadClassListFrame('../../../../../all-classes.html')" href="../../../../../package-summary.html">All&nbsp;Packages</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../../../all-classes.html')" href="../../../../../class-summary.html">All&nbsp;Classes</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../../../index-list.html')" href="../../../../../all-index-A.html">Index</a>&nbsp;|&nbsp;<a href="../../../../../index.html?com/google/maps/extras/xmlparsers/ParsingTools.html&amp;com/google/maps/extras/xmlparsers/class-list.html" id="framesLink1">Frames</a><a onclick="parent.location=document.location" href="" style="display:none" id="noFramesLink1">No&nbsp;Frames</a></td><td rowspan="3" align="right" class="titleTableLogo"><img alt="Adobe Logo" title="Adobe Logo" class="logoImage" src="../../../../../images/logo.jpg"></td>
 20</tr>
 21<tr class="titleTableRow2">
 22<td align="left" id="subTitle" class="titleTableSubTitle">Class&nbsp;ParsingTools</td><td align="right" id="subNav" class="titleTableSubNav"><a href="#methodSummary">Methods</a></td>
 23</tr>
 24<tr class="titleTableRow3">
 25<td colspan="2">&nbsp;</td>
 26</tr>
 27</table>
 28<script type="text/javascript" language="javascript">
 29<!--
 30if (!isEclipse() || window.name != ECLIPSE_FRAME_NAME) {titleBar_setSubTitle("Class ParsingTools"); titleBar_setSubNav(false,false,false,false,false,false,true,false,false,false,false,false,false,false);}
 31--></script>
 32<div class="MainContent">
 33<table cellspacing="0" cellpadding="0" class="classHeaderTable">
 34<tr>
 35<td class="classHeaderTableLabel">Package</td><td><a onclick="javascript:loadClassListFrame('class-list.html')" href="package-detail.html">com.google.maps.extras.xmlparsers</a></td>
 36</tr>
 37<tr>
 38<td class="classHeaderTableLabel">Class</td><td class="classSignature">public class ParsingTools</td>
 39</tr>
 40</table>
 41<p></p>
 42  Utility class with functions to help parse XML  feeds.
 43  <p></p>
 44<br>
 45<hr>
 46</div>
 47<a name="methodSummary"></a>
 48<div class="summarySection">
 49<div class="summaryTableTitle">Public Methods</div>
 50<table id="summaryTableMethod" class="summaryTable " cellpadding="3" cellspacing="0">
 51<tr>
 52<th>&nbsp;</th><th colspan="2">Method</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
 53</tr>
 54<tr class="">
 55<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
 56<div class="summarySignature">
 57<a class="signatureLink" href="#dateCheck()">dateCheck</a>(x:XMLList, f:Function):Date</div>
 58<div class="summaryTableDescription">[static]
 59   Checks to see if a piece of XML that should be a date is empty.</div>
 60</td><td class="summaryTableOwnerCol">ParsingTools</td>
 61</tr>
 62<tr class="">
 63<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
 64<div class="summarySignature">
 65<a class="signatureLink" href="#nanCheck()">nanCheck</a>(x:XMLList):Number</div>
 66<div class="summaryTableDescription">[static]
 67   Checks to see if a piece of XML that should be a number is empty.</div>
 68</td><td class="summaryTableOwnerCol">ParsingTools</td>
 69</tr>
 70<tr class="">
 71<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
 72<div class="summarySignature">
 73<a class="signatureLink" href="#nullCheck()">nullCheck</a>(x:XMLList):String</div>
 74<div class="summaryTableDescription">[static]
 75   Checks to see if a piece of XML that should be a string is empty.</div>
 76</td><td class="summaryTableOwnerCol">ParsingTools</td>
 77</tr>
 78</table>
 79</div>
 80<script type="text/javascript" language="javascript">
 81<!--
 82showHideInherited();
 83--></script>
 84<div class="MainContent">
 85<a name="methodDetail"></a>
 86<div class="detailSectionHeader">Method detail</div>
 87<a name="dateCheck()"></a>
 88<table cellspacing="0" cellpadding="0" class="detailHeader">
 89<tr>
 90<td class="detailHeaderName">dateCheck</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td>
 91</tr>
 92</table>
 93<div class="detailBody">
 94<code>public static function dateCheck(x:XMLList, f:Function):Date</code><p>
 95   Checks to see if a piece of XML that should be a date is empty.
 96   If so, returns null. If not, parses the string into a date using
 97   the specifid date parsing function.
 98   
 99   </p><span class="label">Parameters</span>
100<table border="0" cellspacing="0" cellpadding="0">
101<tr>
102<td width="20px"></td><td><code><span class="label">x</span>:XMLList</code> &mdash; The piece of XML to test.
103   </td>
104</tr>
105<tr>
106<td class="paramSpacer">&nbsp;</td>
107</tr>
108<tr>
109<td width="20px"></td><td><code><span class="label">f</span>:Function</code> &mdash; The date parsing function to use to parse the string if
110            it's not null.
111   </td>
112</tr>
113</table>
114<p></p>
115<span class="label">Returns</span>
116<table border="0" cellspacing="0" cellpadding="0">
117<tr>
118<td width="20"></td><td><code>Date</code> &mdash; null if the date is emply, otherwise a date object created
119           using the specified date-parsing function.
120   </td>
121</tr>
122</table>
123</div>
124<a name="nanCheck()"></a>
125<table cellspacing="0" cellpadding="0" class="detailHeader">
126<tr>
127<td class="detailHeaderName">nanCheck</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
128</tr>
129</table>
130<div class="detailBody">
131<code>public static function nanCheck(x:XMLList):Number</code><p>
132   Checks to see if a piece of XML that should be a number is empty.
133   If so, returns NaN.
134   
135   </p><span class="label">Parameters</span>
136<table border="0" cellspacing="0" cellpadding="0">
137<tr>
138<td width="20px"></td><td><code><span class="label">x</span>:XMLList</code> &mdash; The piece of XML to test.
139   </td>
140</tr>
141</table>
142<p></p>
143<span class="label">Returns</span>
144<table border="0" cellspacing="0" cellpadding="0">
145<tr>
146<td width="20"></td><td><code>Number</code> &mdash; null if the number is emply, otherwise the value of the XML
147           node.
148   </td>
149</tr>
150</table>
151</div>
152<a name="nullCheck()"></a>
153<table cellspacing="0" cellpadding="0" class="detailHeader">
154<tr>
155<td class="detailHeaderName">nullCheck</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
156</tr>
157</table>
158<div class="detailBody">
159<code>public static function nullCheck(x:XMLList):String</code><p>
160   Checks to see if a piece of XML that should be a string is empty.
161   If so, returns null.
162   
163   </p><span class="label">Parameters</span>
164<table border="0" cellspacing="0" cellpadding="0">
165<tr>
166<td width="20px"></td><td><code><span class="label">x</span>:XMLList</code> &mdash; The piece of XML to test.
167   </td>
168</tr>
169</table>
170<p></p>
171<span class="label">Returns</span>
172<table border="0" cellspacing="0" cellpadding="0">
173<tr>
174<td width="20"></td><td><code>String</code> &mdash; null if the string is emply, otherwise the value of the XML
175           node.
176   </td>
177</tr>
178</table>
179</div>
180<br>
181<br>
182<hr>
183<br>
184<p></p>
185<center class="copyright"> 
186</center>
187</div>
188</body>
189</html>
190<!-- -->