PageRenderTime 69ms CodeModel.GetById 30ms app.highlight 29ms RepoModel.GetById 2ms app.codeStats 0ms

/examples/KMLParser/bin-release/srcview/source/com/adobe/xml/syndication/generic/RSS20Metadata.as.html

http://gmaps-utility-library-flash.googlecode.com/
HTML | 179 lines | 161 code | 17 blank | 1 comment | 0 complexity | 8f2b4862487bda8b772567c96c45ee85 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>RSS20Metadata.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">generic</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">xml</span>.<span class="ActionScriptDefault_Text">syndication</span>.<span class="ActionScriptDefault_Text">rss</span>.<span class="ActionScriptDefault_Text">RSS20</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">rss</span>.<span class="ActionScriptDefault_Text">Channel20</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">rss</span>.<span class="ActionScriptDefault_Text">Image20</span>;
 51
 52    <span class="ActionScriptASDoc">/**
 53     * Class that abstracts out the specific characteristics of an RSS 2.0 feed
 54     * into generic metadata. In this case, metadata refers to any data not
 55     * contained in an item (in other words, data about the feed itself).
 56     * You create an instance using an RSS20 object, then you can access it
 57     * in a generic way.
 58     * 
 59     * @langversion ActionScript 3.0
 60     * @playerversion Flash 8.5
 61     * @tiptext
 62     */</span>    
 63    <span class="ActionScriptReserved">public</span> <span class="ActionScriptclass">class</span> <span class="ActionScriptDefault_Text">RSS20Metadata</span>
 64        <span class="ActionScriptReserved">implements</span> <span class="ActionScriptDefault_Text">IMetadata</span>
 65    <span class="ActionScriptBracket/Brace">{</span>
 66        <span class="ActionScriptReserved">private</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">rss20</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">RSS20</span>;
 67        <span class="ActionScriptReserved">private</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">channel</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Channel20</span>;
 68
 69        <span class="ActionScriptASDoc">/**
 70         * Create a new RSS10Metadata instance.
 71         *
 72         * @param rss20 An RSS20 object.
 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">RSS20Metadata</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">rss20</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">RSS20</span><span class="ActionScriptBracket/Brace">)</span>
 79        <span class="ActionScriptBracket/Brace">{</span>
 80            <span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">rss20</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">rss20</span>;
 81            <span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">channel</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">Channel20</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">rss20</span>.<span class="ActionScriptDefault_Text">channel</span><span class="ActionScriptBracket/Brace">)</span>;
 82        <span class="ActionScriptBracket/Brace">}</span>
 83
 84        <span class="ActionScriptASDoc">/**
 85         * This feed&apos;s title.
 86         *
 87         * @langversion ActionScript 3.0
 88         * @playerversion Flash 8.5
 89         * @tiptext
 90         */</span>
 91        <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>
 92        <span class="ActionScriptBracket/Brace">{</span>
 93            <span class="ActionScriptReserved">return</span> <span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">channel</span>.<span class="ActionScriptDefault_Text">title</span>;
 94        <span class="ActionScriptBracket/Brace">}</span>
 95
 96        <span class="ActionScriptASDoc">/**
 97         * An array of authors.
 98         *
 99         * @langversion ActionScript 3.0
100         * @playerversion Flash 8.5
101         * @tiptext
102         */</span>
103        <span class="ActionScriptReserved">public</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptReserved">get</span> <span class="ActionScriptDefault_Text">authors</span><span class="ActionScriptBracket/Brace">()</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Array</span>
104        <span class="ActionScriptBracket/Brace">{</span>
105            <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">author</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Author</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptReserved">new</span> <span class="ActionScriptDefault_Text">Author</span><span class="ActionScriptBracket/Brace">()</span>;
106            <span class="ActionScriptDefault_Text">author</span>.<span class="ActionScriptDefault_Text">email</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">channel</span>.<span class="ActionScriptDefault_Text">managingEditor</span>;
107            <span class="ActionScriptReserved">return</span> <span class="ActionScriptBracket/Brace">[</span><span class="ActionScriptDefault_Text">author</span><span class="ActionScriptBracket/Brace">]</span>;
108        <span class="ActionScriptBracket/Brace">}</span>
109
110        <span class="ActionScriptASDoc">/**
111         * This feed&apos;s link.
112         *
113         * @langversion ActionScript 3.0
114         * @playerversion Flash 8.5
115         * @tiptext
116         */</span>
117        <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>
118        <span class="ActionScriptBracket/Brace">{</span>
119            <span class="ActionScriptReserved">return</span> <span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">channel</span>.<span class="ActionScriptDefault_Text">link</span>;
120        <span class="ActionScriptBracket/Brace">}</span>
121
122        <span class="ActionScriptASDoc">/**
123         * Who ownes the rights to this feed.
124         *
125         * @langversion ActionScript 3.0
126         * @playerversion Flash 8.5
127         * @tiptext
128         */</span>
129        <span class="ActionScriptReserved">public</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptReserved">get</span> <span class="ActionScriptDefault_Text">rights</span><span class="ActionScriptBracket/Brace">()</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">String</span>
130        <span class="ActionScriptBracket/Brace">{</span>
131            <span class="ActionScriptReserved">return</span> <span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">channel</span>.<span class="ActionScriptDefault_Text">copyright</span>;
132        <span class="ActionScriptBracket/Brace">}</span>
133
134        <span class="ActionScriptASDoc">/**
135         * An image associated with this feed.
136         *
137         * @langversion ActionScript 3.0
138         * @playerversion Flash 8.5
139         * @tiptext
140         */</span>
141        <span class="ActionScriptReserved">public</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptReserved">get</span> <span class="ActionScriptDefault_Text">image</span><span class="ActionScriptBracket/Brace">()</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Image</span>
142        <span class="ActionScriptBracket/Brace">{</span>
143            <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">image</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Image</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptReserved">new</span> <span class="ActionScriptDefault_Text">Image</span><span class="ActionScriptBracket/Brace">()</span>;
144            <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">rss20Image</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Image20</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">Image20</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">rss20</span>.<span class="ActionScriptDefault_Text">image</span><span class="ActionScriptBracket/Brace">)</span>;
145            <span class="ActionScriptDefault_Text">image</span>.<span class="ActionScriptDefault_Text">url</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">rss20Image</span>.<span class="ActionScriptDefault_Text">url</span>;
146            <span class="ActionScriptDefault_Text">image</span>.<span class="ActionScriptDefault_Text">title</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">rss20Image</span>.<span class="ActionScriptDefault_Text">title</span>;
147            <span class="ActionScriptDefault_Text">image</span>.<span class="ActionScriptDefault_Text">link</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">rss20Image</span>.<span class="ActionScriptDefault_Text">link</span>;
148            <span class="ActionScriptDefault_Text">image</span>.<span class="ActionScriptDefault_Text">width</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">rss20Image</span>.<span class="ActionScriptDefault_Text">width</span>;
149            <span class="ActionScriptDefault_Text">image</span>.<span class="ActionScriptDefault_Text">height</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">rss20Image</span>.<span class="ActionScriptDefault_Text">height</span>;
150            <span class="ActionScriptDefault_Text">image</span>.<span class="ActionScriptDefault_Text">description</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">rss20Image</span>.<span class="ActionScriptDefault_Text">description</span>;
151            <span class="ActionScriptReserved">return</span> <span class="ActionScriptDefault_Text">image</span>;
152        <span class="ActionScriptBracket/Brace">}</span>
153
154        <span class="ActionScriptASDoc">/**
155         * The date this feed was last published.
156         *
157         * @langversion ActionScript 3.0
158         * @playerversion Flash 8.5
159         * @tiptext
160         */</span>
161        <span class="ActionScriptReserved">public</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptReserved">get</span> <span class="ActionScriptDefault_Text">date</span><span class="ActionScriptBracket/Brace">()</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Date</span>
162        <span class="ActionScriptBracket/Brace">{</span>
163            <span class="ActionScriptReserved">return</span> <span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">channel</span>.<span class="ActionScriptDefault_Text">pubDate</span>;
164        <span class="ActionScriptBracket/Brace">}</span>
165
166        <span class="ActionScriptASDoc">/**
167         * A description of this feed.
168         *
169         * @langversion ActionScript 3.0
170         * @playerversion Flash 8.5
171         * @tiptext
172         */</span>
173        <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>
174        <span class="ActionScriptBracket/Brace">{</span>
175            <span class="ActionScriptReserved">return</span> <span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">channel</span>.<span class="ActionScriptDefault_Text">description</span>;
176        <span class="ActionScriptBracket/Brace">}</span>
177    <span class="ActionScriptBracket/Brace">}</span>
178<span class="ActionScriptBracket/Brace">}</span></pre></body>
179</html>