PageRenderTime 39ms CodeModel.GetById 18ms app.highlight 15ms RepoModel.GetById 1ms app.codeStats 0ms

/examples/KMLParser/bin-release/srcview/source/com/adobe/xml/syndication/rss/Item20.as.html

http://gmaps-utility-library-flash.googlecode.com/
HTML | 269 lines | 246 code | 22 blank | 1 comment | 0 complexity | 73c020605e1309d483cbc97b9b0050b9 MD5 | raw file
  1<!-- saved from url=(0014)about:internet -->
  2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3<html xmlns="http://www.w3.org/1999/xhtml">
  4<head>
  5<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  6<title>Item20.as</title>
  7<link rel="stylesheet" type="text/css" href="../../../../../../SourceStyles.css"/>
  8</head>
  9
 10<body><pre><span class="ActionScriptComment">/*
 11    Adobe Systems Incorporated(r) Source Code License Agreement
 12    Copyright(c) 2005 Adobe Systems Incorporated. All rights reserved.
 13    
 14    Please read this Source Code License Agreement carefully before using
 15    the source code.
 16    
 17    Adobe Systems Incorporated grants to you a perpetual, worldwide, non-exclusive, 
 18    no-charge, royalty-free, irrevocable copyright license, to reproduce,
 19    prepare derivative works of, publicly display, publicly perform, and
 20    distribute this source code and such derivative works in source or 
 21    object code form without any attribution requirements.  
 22    
 23    The name &quot;Adobe Systems Incorporated&quot; must not be used to endorse or promote products
 24    derived from the source code without prior written permission.
 25    
 26    You agree to indemnify, hold harmless and defend Adobe Systems Incorporated from and
 27    against any loss, damage, claims or lawsuits, including attorney&apos;s 
 28    fees that arise or result from your use or distribution of the source 
 29    code.
 30    
 31    THIS SOURCE CODE IS PROVIDED &quot;AS IS&quot; AND &quot;WITH ALL FAULTS&quot;, WITHOUT 
 32    ANY TECHNICAL SUPPORT OR ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING,
 33    BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
 34    FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  ALSO, THERE IS NO WARRANTY OF 
 35    NON-INFRINGEMENT, TITLE OR QUIET ENJOYMENT.  IN NO EVENT SHALL MACROMEDIA
 36    OR ITS SUPPLIERS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 37    EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 
 38    PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
 39    OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 
 40    WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 
 41    OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOURCE CODE, EVEN IF
 42    ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 43*/</span>
 44
 45<span class="ActionScriptpackage">package</span> <span class="ActionScriptDefault_Text">com</span>.<span class="ActionScriptDefault_Text">adobe</span>.<span class="ActionScriptDefault_Text">xml</span>.<span class="ActionScriptDefault_Text">syndication</span>.<span class="ActionScriptDefault_Text">rss</span>
 46<span class="ActionScriptBracket/Brace">{</span>
 47
 48    <span class="ActionScriptReserved">import</span> <span class="ActionScriptDefault_Text">com</span>.<span class="ActionScriptDefault_Text">adobe</span>.<span class="ActionScriptDefault_Text">utils</span>.<span class="ActionScriptDefault_Text">DateUtil</span>;
 49    <span class="ActionScriptReserved">import</span> <span class="ActionScriptDefault_Text">com</span>.<span class="ActionScriptDefault_Text">adobe</span>.<span class="ActionScriptDefault_Text">xml</span>.<span class="ActionScriptDefault_Text">syndication</span>.<span class="ActionScriptDefault_Text">Namespaces</span>;
 50    <span class="ActionScriptReserved">import</span> <span class="ActionScriptDefault_Text">com</span>.<span class="ActionScriptDefault_Text">adobe</span>.<span class="ActionScriptDefault_Text">xml</span>.<span class="ActionScriptDefault_Text">syndication</span>.<span class="ActionScriptDefault_Text">XmlElement</span>;
 51    <span class="ActionScriptReserved">import</span> <span class="ActionScriptDefault_Text">com</span>.<span class="ActionScriptDefault_Text">adobe</span>.<span class="ActionScriptDefault_Text">xml</span>.<span class="ActionScriptDefault_Text">syndication</span>.<span class="ActionScriptDefault_Text">ParsingTools</span>;
 52
 53    <span class="ActionScriptASDoc">/**
 54     * Class that represents an RSS 2.0 item.
 55     * 
 56     * @langversion ActionScript 3.0
 57     * @playerversion Flash 8.5
 58     * @tiptext
 59     * 
 60     * @see http://blogs.law.harvard.edu/tech/rss#hrelementsOfLtitemgt
 61     */</span>    
 62    <span class="ActionScriptReserved">public</span> <span class="ActionScriptclass">class</span> <span class="ActionScriptDefault_Text">Item20</span>
 63        <span class="ActionScriptReserved">extends</span> <span class="ActionScriptDefault_Text">XmlElement</span>
 64            <span class="ActionScriptReserved">implements</span> <span class="ActionScriptDefault_Text">IItem</span>
 65    <span class="ActionScriptBracket/Brace">{</span>
 66
 67        <span class="ActionScriptReserved">private</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">dc</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Namespace</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">Namespaces</span>.<span class="ActionScriptDefault_Text">DC_NS</span>;
 68
 69        <span class="ActionScriptASDoc">/**
 70         * Create a new Item20 instance.
 71         * 
 72         * @param x The XML with which to construct the item.
 73         *
 74         * @langversion ActionScript 3.0
 75         * @playerversion Flash 8.5
 76         * @tiptext
 77         */</span>
 78        <span class="ActionScriptReserved">public</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptDefault_Text">Item20</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">x</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">XMLList</span><span class="ActionScriptBracket/Brace">)</span>
 79        <span class="ActionScriptBracket/Brace">{</span>
 80            <span class="ActionScriptReserved">super</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">x</span><span class="ActionScriptBracket/Brace">)</span>;
 81        <span class="ActionScriptBracket/Brace">}</span>
 82
 83        <span class="ActionScriptASDoc">/**
 84         * The title of the item.
 85         * 
 86         * @langversion ActionScript 3.0
 87         * @playerversion Flash 8.5
 88         * @tiptext
 89         */</span>
 90        <span class="ActionScriptReserved">public</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptReserved">get</span> <span class="ActionScriptDefault_Text">title</span><span class="ActionScriptBracket/Brace">()</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">String</span>
 91        <span class="ActionScriptBracket/Brace">{</span>
 92            <span class="ActionScriptReserved">return</span> <span class="ActionScriptDefault_Text">ParsingTools</span>.<span class="ActionScriptDefault_Text">nullCheck</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">x</span>.<span class="ActionScriptDefault_Text">title</span><span class="ActionScriptBracket/Brace">)</span>;
 93        <span class="ActionScriptBracket/Brace">}</span>
 94
 95        <span class="ActionScriptASDoc">/**
 96         * The URL of the item.
 97         * 
 98         * @langversion ActionScript 3.0
 99         * @playerversion Flash 8.5
100         * @tiptext
101         */</span>
102        <span class="ActionScriptReserved">public</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptReserved">get</span> <span class="ActionScriptDefault_Text">link</span><span class="ActionScriptBracket/Brace">()</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">String</span>
103        <span class="ActionScriptBracket/Brace">{</span>
104            <span class="ActionScriptReserved">return</span> <span class="ActionScriptDefault_Text">ParsingTools</span>.<span class="ActionScriptDefault_Text">nullCheck</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">x</span>.<span class="ActionScriptDefault_Text">link</span><span class="ActionScriptBracket/Brace">)</span>;
105        <span class="ActionScriptBracket/Brace">}</span>
106
107        <span class="ActionScriptASDoc">/**
108         * The item synopsis.
109         * 
110         * @langversion ActionScript 3.0
111         * @playerversion Flash 8.5
112         * @tiptext
113         */</span>
114        <span class="ActionScriptReserved">public</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptReserved">get</span> <span class="ActionScriptDefault_Text">description</span><span class="ActionScriptBracket/Brace">()</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">String</span>
115        <span class="ActionScriptBracket/Brace">{</span>
116            <span class="ActionScriptReserved">return</span> <span class="ActionScriptDefault_Text">ParsingTools</span>.<span class="ActionScriptDefault_Text">nullCheck</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">x</span>.<span class="ActionScriptDefault_Text">description</span><span class="ActionScriptBracket/Brace">)</span>;
117        <span class="ActionScriptBracket/Brace">}</span>
118
119        <span class="ActionScriptASDoc">/**
120         * The name and, optionally, email address of the creator of the feed.
121         * 
122         * @langversion ActionScript 3.0
123         * @playerversion Flash 8.5
124         * @tiptext
125         */</span>
126        <span class="ActionScriptReserved">public</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptReserved">get</span> <span class="ActionScriptDefault_Text">creators</span><span class="ActionScriptBracket/Brace">()</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Array</span>
127        <span class="ActionScriptBracket/Brace">{</span>
128            <span class="ActionScriptReserved">if</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">ParsingTools</span>.<span class="ActionScriptDefault_Text">nullCheck</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">x</span>.<span class="ActionScriptDefault_Text">dc</span><span class="ActionScriptOperator">::</span><span class="ActionScriptDefault_Text">creator</span><span class="ActionScriptBracket/Brace">)</span> <span class="ActionScriptOperator">==</span> <span class="ActionScriptReserved">null</span><span class="ActionScriptBracket/Brace">)</span> <span class="ActionScriptReserved">return</span> <span class="ActionScriptReserved">null</span>;
129            <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">creators</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Array</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptReserved">new</span> <span class="ActionScriptDefault_Text">Array</span><span class="ActionScriptBracket/Brace">()</span>;
130            <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">i</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">XML</span>;
131            <span class="ActionScriptReserved">for</span> <span class="ActionScriptReserved">each</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">i</span> <span class="ActionScriptReserved">in</span> <span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">x</span>.<span class="ActionScriptDefault_Text">dc</span><span class="ActionScriptOperator">::</span><span class="ActionScriptDefault_Text">creator</span><span class="ActionScriptBracket/Brace">)</span>
132            <span class="ActionScriptBracket/Brace">{</span>
133                <span class="ActionScriptDefault_Text">creators</span>.<span class="ActionScriptDefault_Text">push</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">i</span><span class="ActionScriptBracket/Brace">)</span>;
134            <span class="ActionScriptBracket/Brace">}</span>
135            <span class="ActionScriptReserved">return</span> <span class="ActionScriptDefault_Text">creators</span>;
136        <span class="ActionScriptBracket/Brace">}</span>
137
138        <span class="ActionScriptASDoc">/**
139         * URL of a page for comments relating to the item.
140         * 
141         * @langversion ActionScript 3.0
142         * @playerversion Flash 8.5
143         * @tiptext
144         *
145         * @see http://blogs.law.harvard.edu/tech/rss#ltcommentsgtSubelementOfLtitemgt
146         */</span>
147        <span class="ActionScriptReserved">public</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptReserved">get</span> <span class="ActionScriptDefault_Text">comments</span><span class="ActionScriptBracket/Brace">()</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">String</span>
148        <span class="ActionScriptBracket/Brace">{</span>
149            <span class="ActionScriptReserved">return</span> <span class="ActionScriptDefault_Text">ParsingTools</span>.<span class="ActionScriptDefault_Text">nullCheck</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">x</span><span class="ActionScriptBracket/Brace">[</span><span class="ActionScriptString">&quot;comments&quot;</span><span class="ActionScriptBracket/Brace">])</span>;
150        <span class="ActionScriptBracket/Brace">}</span>
151
152        <span class="ActionScriptASDoc">/**
153         * Email address of the author of the item.
154         * 
155         * @langversion ActionScript 3.0
156         * @playerversion Flash 8.5
157         * @tiptext
158         *
159         * @see http://blogs.law.harvard.edu/tech/rss#ltauthorgtSubelementOfLtitemgt
160         */</span>
161        <span class="ActionScriptReserved">public</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptReserved">get</span> <span class="ActionScriptDefault_Text">author</span><span class="ActionScriptBracket/Brace">()</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">String</span>
162        <span class="ActionScriptBracket/Brace">{</span>
163            <span class="ActionScriptReserved">return</span> <span class="ActionScriptDefault_Text">ParsingTools</span>.<span class="ActionScriptDefault_Text">nullCheck</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">x</span>.<span class="ActionScriptDefault_Text">author</span><span class="ActionScriptBracket/Brace">)</span>;
164        <span class="ActionScriptBracket/Brace">}</span>
165
166        <span class="ActionScriptASDoc">/**
167         * Indicates when the item was published.
168         * 
169         * @langversion ActionScript 3.0
170         * @playerversion Flash 8.5
171         * @tiptext
172         *
173         * @see http://blogs.law.harvard.edu/tech/rss#ltpubdategtSubelementOfLtitemgt
174         */</span>
175        <span class="ActionScriptReserved">public</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptReserved">get</span> <span class="ActionScriptDefault_Text">pubDate</span><span class="ActionScriptBracket/Brace">()</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Date</span>
176        <span class="ActionScriptBracket/Brace">{</span>
177            <span class="ActionScriptReserved">return</span> <span class="ActionScriptDefault_Text">ParsingTools</span>.<span class="ActionScriptDefault_Text">dateCheck</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">x</span>.<span class="ActionScriptDefault_Text">pubDate</span>, <span class="ActionScriptDefault_Text">DateUtil</span>.<span class="ActionScriptDefault_Text">parseRFC822</span><span class="ActionScriptBracket/Brace">)</span>;
178        <span class="ActionScriptBracket/Brace">}</span>
179
180        <span class="ActionScriptASDoc">/**
181         * Includes the item in one or more categories.
182         * 
183         * @langversion ActionScript 3.0
184         * @playerversion Flash 8.5
185         * @tiptext
186         *
187         * @see http://blogs.law.harvard.edu/tech/rss#ltcategorygtSubelementOfLtitemgt
188         */</span>
189        <span class="ActionScriptReserved">public</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptReserved">get</span> <span class="ActionScriptDefault_Text">categories</span><span class="ActionScriptBracket/Brace">()</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Array</span>
190        <span class="ActionScriptBracket/Brace">{</span>
191            <span class="ActionScriptReserved">if</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">ParsingTools</span>.<span class="ActionScriptDefault_Text">nullCheck</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">x</span>.<span class="ActionScriptDefault_Text">category</span><span class="ActionScriptBracket/Brace">)</span> <span class="ActionScriptOperator">==</span> <span class="ActionScriptReserved">null</span><span class="ActionScriptBracket/Brace">)</span> <span class="ActionScriptReserved">return</span> <span class="ActionScriptReserved">null</span>;
192            <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">categories</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Array</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptReserved">new</span> <span class="ActionScriptDefault_Text">Array</span><span class="ActionScriptBracket/Brace">()</span>;
193            <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">i</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">XML</span>;
194            <span class="ActionScriptReserved">for</span> <span class="ActionScriptReserved">each</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">i</span> <span class="ActionScriptReserved">in</span> <span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">x</span>.<span class="ActionScriptDefault_Text">category</span><span class="ActionScriptBracket/Brace">)</span>
195            <span class="ActionScriptBracket/Brace">{</span>
196                <span class="ActionScriptDefault_Text">categories</span>.<span class="ActionScriptDefault_Text">push</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">i</span><span class="ActionScriptBracket/Brace">)</span>;
197            <span class="ActionScriptBracket/Brace">}</span>
198            <span class="ActionScriptReserved">return</span> <span class="ActionScriptDefault_Text">categories</span>;
199        <span class="ActionScriptBracket/Brace">}</span>
200
201        <span class="ActionScriptASDoc">/**
202         * The RSS channel that the item came from.
203         * 
204         * @langversion ActionScript 3.0
205         * @playerversion Flash 8.5
206         * @tiptext
207         *
208         * @see http://blogs.law.harvard.edu/tech/rss#ltsourcegtSubelementOfLtitemgt
209         */</span>
210        <span class="ActionScriptReserved">public</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptReserved">get</span> <span class="ActionScriptDefault_Text">source</span><span class="ActionScriptBracket/Brace">()</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Source</span>
211        <span class="ActionScriptBracket/Brace">{</span>
212            <span class="ActionScriptReserved">if</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">ParsingTools</span>.<span class="ActionScriptDefault_Text">nullCheck</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">x</span>.<span class="ActionScriptDefault_Text">source</span><span class="ActionScriptBracket/Brace">)</span> <span class="ActionScriptOperator">==</span> <span class="ActionScriptReserved">null</span><span class="ActionScriptBracket/Brace">)</span>
213            <span class="ActionScriptBracket/Brace">{</span>
214                <span class="ActionScriptReserved">return</span> <span class="ActionScriptReserved">null</span>;
215            <span class="ActionScriptBracket/Brace">}</span>
216            <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">source</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Source</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptReserved">new</span> <span class="ActionScriptDefault_Text">Source</span><span class="ActionScriptBracket/Brace">()</span>;
217            <span class="ActionScriptDefault_Text">source</span>.<span class="ActionScriptDefault_Text">url</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">String</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">x</span>.<span class="ActionScriptDefault_Text">source</span>.@<span class="ActionScriptDefault_Text">url</span><span class="ActionScriptBracket/Brace">)</span>;
218            <span class="ActionScriptDefault_Text">source</span>.<span class="ActionScriptDefault_Text">name</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">String</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">x</span>.<span class="ActionScriptDefault_Text">source</span><span class="ActionScriptBracket/Brace">)</span>;
219            <span class="ActionScriptReserved">return</span> <span class="ActionScriptDefault_Text">source</span>;
220        <span class="ActionScriptBracket/Brace">}</span>
221
222        <span class="ActionScriptASDoc">/**
223         * Describes a media object that is attached to the item.
224         * 
225         * @langversion ActionScript 3.0
226         * @playerversion Flash 8.5
227         * @tiptext
228         *
229         * @see http://blogs.law.harvard.edu/tech/rss#ltenclosuregtSubelementOfLtitemgt
230         */</span>
231        <span class="ActionScriptReserved">public</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptReserved">get</span> <span class="ActionScriptDefault_Text">enclosure</span><span class="ActionScriptBracket/Brace">()</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Enclosure</span>
232        <span class="ActionScriptBracket/Brace">{</span>
233            <span class="ActionScriptReserved">if</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">ParsingTools</span>.<span class="ActionScriptDefault_Text">nullCheck</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">x</span>.<span class="ActionScriptDefault_Text">enclosure</span>.@<span class="ActionScriptDefault_Text">url</span><span class="ActionScriptBracket/Brace">)</span> <span class="ActionScriptOperator">==</span> <span class="ActionScriptReserved">null</span><span class="ActionScriptBracket/Brace">)</span>
234            <span class="ActionScriptBracket/Brace">{</span>
235                <span class="ActionScriptReserved">return</span> <span class="ActionScriptReserved">null</span>;
236            <span class="ActionScriptBracket/Brace">}</span>
237            <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">enclosure</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Enclosure</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptReserved">new</span> <span class="ActionScriptDefault_Text">Enclosure</span><span class="ActionScriptBracket/Brace">()</span>;
238            <span class="ActionScriptDefault_Text">enclosure</span>.<span class="ActionScriptDefault_Text">url</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">String</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">x</span>.<span class="ActionScriptDefault_Text">enclosure</span>.@<span class="ActionScriptDefault_Text">url</span><span class="ActionScriptBracket/Brace">)</span>;
239            <span class="ActionScriptDefault_Text">enclosure</span>.<span class="ActionScriptDefault_Text">length</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">uint</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">x</span>.<span class="ActionScriptDefault_Text">enclosure</span>.@<span class="ActionScriptDefault_Text">length</span><span class="ActionScriptBracket/Brace">)</span>;
240            <span class="ActionScriptDefault_Text">enclosure</span>.<span class="ActionScriptDefault_Text">type</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">String</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">x</span>.<span class="ActionScriptDefault_Text">enclosure</span>.@<span class="ActionScriptDefault_Text">type</span><span class="ActionScriptBracket/Brace">)</span>;
241            <span class="ActionScriptReserved">return</span> <span class="ActionScriptDefault_Text">enclosure</span>;
242        <span class="ActionScriptBracket/Brace">}</span>
243
244        <span class="ActionScriptASDoc">/**
245         * A string that uniquely identifies the item.
246         * 
247         * @langversion ActionScript 3.0
248         * @playerversion Flash 8.5
249         * @tiptext
250         *
251         * @see http://blogs.law.harvard.edu/tech/rss#ltguidgtSubelementOfLtitemgt
252         */</span>
253        <span class="ActionScriptReserved">public</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptReserved">get</span> <span class="ActionScriptDefault_Text">guid</span><span class="ActionScriptBracket/Brace">()</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Guid</span>
254        <span class="ActionScriptBracket/Brace">{</span>
255            <span class="ActionScriptReserved">if</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">ParsingTools</span>.<span class="ActionScriptDefault_Text">nullCheck</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">x</span>.<span class="ActionScriptDefault_Text">guid</span><span class="ActionScriptBracket/Brace">)</span> <span class="ActionScriptOperator">==</span> <span class="ActionScriptReserved">null</span><span class="ActionScriptBracket/Brace">)</span>
256            <span class="ActionScriptBracket/Brace">{</span>
257                <span class="ActionScriptReserved">return</span> <span class="ActionScriptReserved">null</span>;
258            <span class="ActionScriptBracket/Brace">}</span>
259            <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">guid</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Guid</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptReserved">new</span> <span class="ActionScriptDefault_Text">Guid</span><span class="ActionScriptBracket/Brace">()</span>;
260            <span class="ActionScriptReserved">if</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">ParsingTools</span>.<span class="ActionScriptDefault_Text">nullCheck</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">x</span>.<span class="ActionScriptDefault_Text">guid</span>.@<span class="ActionScriptDefault_Text">isPermaLink</span><span class="ActionScriptBracket/Brace">)</span> <span class="ActionScriptOperator">!=</span> <span class="ActionScriptReserved">null</span><span class="ActionScriptBracket/Brace">)</span>
261            <span class="ActionScriptBracket/Brace">{</span>
262                <span class="ActionScriptDefault_Text">guid</span>.<span class="ActionScriptDefault_Text">permaLink</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">Boolean</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">x</span>.<span class="ActionScriptDefault_Text">guid</span>.@<span class="ActionScriptDefault_Text">isPermaLink</span><span class="ActionScriptBracket/Brace">)</span>;
263            <span class="ActionScriptBracket/Brace">}</span>
264            <span class="ActionScriptDefault_Text">guid</span>.<span class="ActionScriptDefault_Text">id</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">String</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">x</span>.<span class="ActionScriptDefault_Text">guid</span><span class="ActionScriptBracket/Brace">)</span>;
265            <span class="ActionScriptReserved">return</span> <span class="ActionScriptDefault_Text">guid</span>;
266        <span class="ActionScriptBracket/Brace">}</span>
267    <span class="ActionScriptBracket/Brace">}</span>
268<span class="ActionScriptBracket/Brace">}</span></pre></body>
269</html>