PageRenderTime 29ms CodeModel.GetById 16ms app.highlight 8ms RepoModel.GetById 1ms app.codeStats 1ms

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

http://gmaps-utility-library-flash.googlecode.com/
HTML | 125 lines | 112 code | 12 blank | 1 comment | 0 complexity | b5070890b0a97a2692fc4581e03e2933 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>Category.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    <span class="ActionScriptASDoc">/**
 48     * Class that represents an RSS 2.0 Category element.
 49     * 
 50     * @langversion ActionScript 3.0
 51     * @playerversion Flash 8.5
 52     * @tiptext
 53     * 
 54     * @see http://blogs.law.harvard.edu/tech/rss#ltcategorygtSubelementOfLtitemgt    
 55     */</span>    
 56    <span class="ActionScriptReserved">public</span> <span class="ActionScriptclass">class</span> <span class="ActionScriptDefault_Text">Category</span>
 57    <span class="ActionScriptBracket/Brace">{</span>
 58        <span class="ActionScriptReserved">private</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">_path</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Array</span>;
 59
 60        <span class="ActionScriptASDoc">/**
 61         * The domain identifies a categorization taxonomy.
 62         * 
 63         * @langversion ActionScript 3.0
 64         * @playerversion Flash 8.5
 65         * @tiptext
 66         */</span>
 67        <span class="ActionScriptReserved">public</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">domain</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">String</span>;
 68
 69        <span class="ActionScriptASDoc">/**
 70          * Creates a new Category object.
 71         * 
 72         * @langversion ActionScript 3.0
 73         * @playerversion Flash 8.5
 74         * @tiptext
 75         */</span>
 76        <span class="ActionScriptReserved">public</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptDefault_Text">Category</span><span class="ActionScriptBracket/Brace">()</span>
 77        <span class="ActionScriptBracket/Brace">{</span>
 78            <span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">_path</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptReserved">new</span> <span class="ActionScriptDefault_Text">Array</span><span class="ActionScriptBracket/Brace">()</span>;
 79        <span class="ActionScriptBracket/Brace">}</span>
 80
 81        <span class="ActionScriptASDoc">/**
 82         * Adds a path to the category. New paths are appended to the end of
 83         * the path array.
 84         * 
 85         * @param path The path you want to add.
 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="ActionScriptDefault_Text">addPath</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">path</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">String</span><span class="ActionScriptBracket/Brace">)</span><span class="ActionScriptOperator">:</span><span class="ActionScriptReserved">void</span>
 91        <span class="ActionScriptBracket/Brace">{</span>
 92            <span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">_path</span>.<span class="ActionScriptDefault_Text">push</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">path</span><span class="ActionScriptBracket/Brace">)</span>;
 93        <span class="ActionScriptBracket/Brace">}</span>
 94
 95        <span class="ActionScriptASDoc">/**
 96         * Adds an array of paths to the category. New paths are appended to
 97         * the end of the path array.
 98         * 
 99         * @param paths The paths you want to add.
100         * @langversion ActionScript 3.0
101         * @playerversion Flash 8.5
102         * @tiptext
103         */</span>
104        <span class="ActionScriptReserved">public</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptDefault_Text">addPaths</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">paths</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Array</span><span class="ActionScriptBracket/Brace">)</span><span class="ActionScriptOperator">:</span><span class="ActionScriptReserved">void</span>
105        <span class="ActionScriptBracket/Brace">{</span>
106            <span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">_path</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">_path</span>.<span class="ActionScriptDefault_Text">concat</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">paths</span><span class="ActionScriptBracket/Brace">)</span>;
107        <span class="ActionScriptBracket/Brace">}</span>
108        
109        <span class="ActionScriptASDoc">/**
110         * Returns an array containing the category path, one element per node.
111         * 
112         * @return An array containing the category&apos;s path, one element per
113         *         node.
114         * @langversion ActionScript 3.0
115         * @playerversion Flash 8.5
116         * @tiptext
117         */</span>
118        <span class="ActionScriptReserved">public</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptReserved">get</span> <span class="ActionScriptDefault_Text">path</span><span class="ActionScriptBracket/Brace">()</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Array</span>
119        <span class="ActionScriptBracket/Brace">{</span>
120            <span class="ActionScriptReserved">return</span> <span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">_path</span>;
121        <span class="ActionScriptBracket/Brace">}</span>
122    <span class="ActionScriptBracket/Brace">}</span>
123<span class="ActionScriptBracket/Brace">}</span>
124</pre></body>
125</html>