PageRenderTime 34ms CodeModel.GetById 20ms app.highlight 8ms RepoModel.GetById 2ms app.codeStats 0ms

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

http://gmaps-utility-library-flash.googlecode.com/
HTML | 115 lines | 102 code | 12 blank | 1 comment | 0 complexity | 75bee8f2bcced2fdc48e6601a366d1b8 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>Atom10Feed.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">atom</span>.<span class="ActionScriptDefault_Text">Atom10</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">atom</span>.<span class="ActionScriptDefault_Text">Entry10</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">atom</span>.<span class="ActionScriptDefault_Text">FeedData10</span>;
 51
 52    <span class="ActionScriptASDoc">/**
 53     * Class that abstracts out the specific characteristics of an Atom feed
 54     * into a generic Feed. You create an instance using an Atom10 object,
 55     * then you can access it in a generic way.
 56     * 
 57     * @langversion ActionScript 3.0
 58     * @playerversion Flash 8.5
 59     * @tiptext
 60     */</span>    
 61    <span class="ActionScriptReserved">public</span> <span class="ActionScriptclass">class</span> <span class="ActionScriptDefault_Text">Atom10Feed</span>
 62        <span class="ActionScriptReserved">implements</span> <span class="ActionScriptDefault_Text">IFeed</span>
 63    <span class="ActionScriptBracket/Brace">{</span>
 64        <span class="ActionScriptReserved">private</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">atom10</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Atom10</span>;
 65        <span class="ActionScriptReserved">private</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">_metadata</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Atom10Metadata</span>;
 66        <span class="ActionScriptReserved">private</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">_items</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Array</span>;
 67
 68        <span class="ActionScriptASDoc">/**
 69         * Create a new Atom10Feed instance.
 70         *
 71         * @param atom10 An Atom10 object that you want abstracted.
 72         * 
 73         * @langversion ActionScript 3.0
 74         * @playerversion Flash 8.5
 75         * @tiptext
 76         */</span>
 77        <span class="ActionScriptReserved">public</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptDefault_Text">Atom10Feed</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">atom10</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Atom10</span><span class="ActionScriptBracket/Brace">)</span>
 78        <span class="ActionScriptBracket/Brace">{</span>
 79            <span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">atom10</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">atom10</span>;
 80            <span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">_metadata</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptReserved">new</span> <span class="ActionScriptDefault_Text">Atom10Metadata</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">atom10</span>.<span class="ActionScriptDefault_Text">feedData</span> <span class="ActionScriptReserved">as</span> <span class="ActionScriptDefault_Text">FeedData10</span><span class="ActionScriptBracket/Brace">)</span>;
 81            <span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">_items</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptReserved">new</span> <span class="ActionScriptDefault_Text">Array</span><span class="ActionScriptBracket/Brace">()</span>;
 82            <span class="ActionScriptReserved">for</span> <span class="ActionScriptReserved">each</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">item</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Entry10</span> <span class="ActionScriptReserved">in</span> <span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">atom10</span>.<span class="ActionScriptDefault_Text">entries</span><span class="ActionScriptBracket/Brace">)</span>
 83            <span class="ActionScriptBracket/Brace">{</span>
 84                <span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">_items</span>.<span class="ActionScriptDefault_Text">push</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptReserved">new</span> <span class="ActionScriptDefault_Text">Atom10Item</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">item</span><span class="ActionScriptBracket/Brace">))</span>;
 85            <span class="ActionScriptBracket/Brace">}</span>
 86        <span class="ActionScriptBracket/Brace">}</span>
 87
 88        <span class="ActionScriptASDoc">/**
 89          * Get the metadata associated with this Atom feed. In other words, any
 90          * data that isn&apos;t contained in entries, meaning data about the feed
 91          * itself.
 92         * 
 93         * @langversion ActionScript 3.0
 94         * @playerversion Flash 8.5
 95         * @tiptext
 96         */</span>
 97        <span class="ActionScriptReserved">public</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptReserved">get</span> <span class="ActionScriptDefault_Text">metadata</span><span class="ActionScriptBracket/Brace">()</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">IMetadata</span>
 98        <span class="ActionScriptBracket/Brace">{</span>
 99            <span class="ActionScriptReserved">return</span> <span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">_metadata</span>;
100        <span class="ActionScriptBracket/Brace">}</span>
101
102        <span class="ActionScriptASDoc">/**
103          * Get an array of Item objects which represent Atom 1.0 entries.
104         * 
105         * @langversion ActionScript 3.0
106         * @playerversion Flash 8.5
107         * @tiptext
108         */</span>
109        <span class="ActionScriptReserved">public</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptReserved">get</span> <span class="ActionScriptDefault_Text">items</span><span class="ActionScriptBracket/Brace">()</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Array</span>
110        <span class="ActionScriptBracket/Brace">{</span>
111            <span class="ActionScriptReserved">return</span> <span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">_items</span>;
112        <span class="ActionScriptBracket/Brace">}</span>
113    <span class="ActionScriptBracket/Brace">}</span>
114<span class="ActionScriptBracket/Brace">}</span></pre></body>
115</html>