PageRenderTime 47ms CodeModel.GetById 14ms app.highlight 25ms RepoModel.GetById 1ms app.codeStats 0ms

/examples/KMLParser/bin-release/srcview/source/com/adobe/xml/syndication/kml/AbstractLink.as.html

http://gmaps-utility-library-flash.googlecode.com/
HTML | 137 lines | 116 code | 20 blank | 1 comment | 0 complexity | c5d0619f5399c948c1af342749b7ca02 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>AbstractLink.as</title>
  7<link rel="stylesheet" type="text/css" href="../../../../../../SourceStyles.css"/>
  8</head>
  9
 10<body><pre>
 11<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">kml</span>
 12<span class="ActionScriptBracket/Brace">{</span>
 13    <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>;
 14    <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>;
 15
 16
 17    <span class="ActionScriptASDoc">/**
 18    *    Class that represents an Entry element within an Atom feed
 19    * 
 20    *     @langversion ActionScript 3.0
 21    *    @playerversion Flash 8.5
 22    *    @tiptext
 23    * 
 24    *     @see http://www.atomenabled.org/developers/syndication/atom-format-spec.php#rfc.section.4.1.2
 25    */</span>
 26    <span class="ActionScriptReserved">public</span> <span class="ActionScriptclass">class</span> <span class="ActionScriptDefault_Text">AbstractLink</span> <span class="ActionScriptReserved">extends</span> <span class="ActionScriptDefault_Text">KmlObject</span>
 27    <span class="ActionScriptBracket/Brace">{</span>
 28        <span class="ActionScriptComment">//todo: add constants for the enum values?
 29</span>        
 30        <span class="ActionScriptReserved">private</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">kml</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">KML_NS</span>;
 31        
 32        <span class="ActionScriptReserved">private</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">_href</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">String</span>;
 33        <span class="ActionScriptReserved">private</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">_refreshMode</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">String</span>;
 34        <span class="ActionScriptReserved">private</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">_refreshInterval</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Number</span>;
 35        <span class="ActionScriptReserved">private</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">_viewRefreshMode</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">String</span>;
 36        <span class="ActionScriptReserved">private</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">_viewRefreshTime</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Number</span>;
 37        <span class="ActionScriptReserved">private</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">_viewBoundScale</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Number</span>;
 38        <span class="ActionScriptReserved">private</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">_viewFormat</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">String</span>;
 39        <span class="ActionScriptReserved">private</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">_httpQuery</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">String</span>;
 40    
 41  
 42        <span class="ActionScriptASDoc">/**
 43        *    Constructor for class.
 44        * 
 45        *    @param x An XML document that contains an individual Entry element from 
 46        *    an Aton XML feed.
 47        *
 48        */</span>    
 49        <span class="ActionScriptReserved">public</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptDefault_Text">AbstractLink</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>
 50        <span class="ActionScriptBracket/Brace">{</span>
 51            <span class="ActionScriptReserved">super</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">x</span><span class="ActionScriptBracket/Brace">)</span>;
 52            
 53            <span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">_href</span> <span class="ActionScriptOperator">=</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">kml</span><span class="ActionScriptOperator">::</span><span class="ActionScriptDefault_Text">href</span><span class="ActionScriptBracket/Brace">)</span>;
 54            <span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">_refreshMode</span> <span class="ActionScriptOperator">=</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">kml</span><span class="ActionScriptOperator">::</span><span class="ActionScriptDefault_Text">refreshMode</span><span class="ActionScriptBracket/Brace">)</span>;
 55            <span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">_refreshInterval</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">ParsingTools</span>.<span class="ActionScriptDefault_Text">nanCheck</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">x</span>.<span class="ActionScriptDefault_Text">kml</span><span class="ActionScriptOperator">::</span><span class="ActionScriptDefault_Text">refreshInterval</span><span class="ActionScriptBracket/Brace">)</span>;
 56            <span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">_viewRefreshMode</span> <span class="ActionScriptOperator">=</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">kml</span><span class="ActionScriptOperator">::</span><span class="ActionScriptDefault_Text">viewRefreshMode</span><span class="ActionScriptBracket/Brace">)</span>;
 57            <span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">_viewRefreshTime</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">ParsingTools</span>.<span class="ActionScriptDefault_Text">nanCheck</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">x</span>.<span class="ActionScriptDefault_Text">kml</span><span class="ActionScriptOperator">::</span><span class="ActionScriptDefault_Text">viewRefreshTime</span><span class="ActionScriptBracket/Brace">)</span>;
 58            <span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">_viewBoundScale</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">ParsingTools</span>.<span class="ActionScriptDefault_Text">nanCheck</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">x</span>.<span class="ActionScriptDefault_Text">kml</span><span class="ActionScriptOperator">::</span><span class="ActionScriptDefault_Text">viewBoundScale</span><span class="ActionScriptBracket/Brace">)</span>;
 59            <span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">_viewFormat</span> <span class="ActionScriptOperator">=</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">kml</span><span class="ActionScriptOperator">::</span><span class="ActionScriptDefault_Text">viewFormat</span><span class="ActionScriptBracket/Brace">)</span>;
 60            <span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">_httpQuery</span> <span class="ActionScriptOperator">=</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">kml</span><span class="ActionScriptOperator">::</span><span class="ActionScriptDefault_Text">httpQuery</span><span class="ActionScriptBracket/Brace">)</span>;
 61        <span class="ActionScriptBracket/Brace">}</span>
 62
 63        <span class="ActionScriptASDoc">/**
 64        *    A String that contains the title for the entry.
 65        */</span>    
 66        <span class="ActionScriptReserved">public</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptReserved">get</span> <span class="ActionScriptDefault_Text">href</span><span class="ActionScriptBracket/Brace">()</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">String</span>
 67        <span class="ActionScriptBracket/Brace">{</span>
 68            <span class="ActionScriptReserved">return</span> <span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">_href</span>;
 69         <span class="ActionScriptBracket/Brace">}</span>
 70         
 71        <span class="ActionScriptASDoc">/**
 72        *    A String that contains the title for the entry.
 73        */</span>    
 74        <span class="ActionScriptReserved">public</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptReserved">get</span> <span class="ActionScriptDefault_Text">refreshMode</span><span class="ActionScriptBracket/Brace">()</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">String</span>
 75        <span class="ActionScriptBracket/Brace">{</span>
 76            <span class="ActionScriptReserved">return</span> <span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">_refreshMode</span>;
 77         <span class="ActionScriptBracket/Brace">}</span>     
 78         
 79                  
 80        <span class="ActionScriptASDoc">/**
 81        *    A String that contains the title for the entry.
 82        */</span>    
 83        <span class="ActionScriptReserved">public</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptReserved">get</span> <span class="ActionScriptDefault_Text">refreshInterval</span><span class="ActionScriptBracket/Brace">()</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Number</span>
 84        <span class="ActionScriptBracket/Brace">{</span>
 85            <span class="ActionScriptReserved">return</span> <span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">_refreshInterval</span>;
 86         <span class="ActionScriptBracket/Brace">}</span>     
 87         
 88                  
 89        <span class="ActionScriptASDoc">/**
 90        *    A String that contains the title for the entry.
 91        */</span>    
 92        <span class="ActionScriptReserved">public</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptReserved">get</span> <span class="ActionScriptDefault_Text">viewRefreshMode</span><span class="ActionScriptBracket/Brace">()</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">String</span>
 93        <span class="ActionScriptBracket/Brace">{</span>
 94            <span class="ActionScriptReserved">return</span> <span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">_viewRefreshMode</span>;
 95         <span class="ActionScriptBracket/Brace">}</span>     
 96         
 97                  
 98        <span class="ActionScriptASDoc">/**
 99        *    A String that contains the title for the entry.
100        */</span>    
101        <span class="ActionScriptReserved">public</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptReserved">get</span> <span class="ActionScriptDefault_Text">viewRefreshTime</span><span class="ActionScriptBracket/Brace">()</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Number</span>
102        <span class="ActionScriptBracket/Brace">{</span>
103            <span class="ActionScriptReserved">return</span> <span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">_viewRefreshTime</span>;
104         <span class="ActionScriptBracket/Brace">}</span>     
105         
106                  
107        <span class="ActionScriptASDoc">/**
108        *    A String that contains the title for the entry.
109        */</span>    
110        <span class="ActionScriptReserved">public</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptReserved">get</span> <span class="ActionScriptDefault_Text">viewBoundScale</span><span class="ActionScriptBracket/Brace">()</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Number</span>
111        <span class="ActionScriptBracket/Brace">{</span>
112            <span class="ActionScriptReserved">return</span> <span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">_viewBoundScale</span>;
113         <span class="ActionScriptBracket/Brace">}</span>     
114         
115        <span class="ActionScriptASDoc">/**
116        *    A String that contains the title for the entry.
117        */</span>    
118        <span class="ActionScriptReserved">public</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptReserved">get</span> <span class="ActionScriptDefault_Text">viewFormat</span><span class="ActionScriptBracket/Brace">()</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">String</span>
119        <span class="ActionScriptBracket/Brace">{</span>
120            <span class="ActionScriptReserved">return</span> <span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">_viewFormat</span>;
121         <span class="ActionScriptBracket/Brace">}</span>              
122         
123         <span class="ActionScriptASDoc">/**
124        *    A String that contains the title for the entry.
125        */</span>    
126        <span class="ActionScriptReserved">public</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptReserved">get</span> <span class="ActionScriptDefault_Text">httpQuery</span><span class="ActionScriptBracket/Brace">()</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">String</span>
127        <span class="ActionScriptBracket/Brace">{</span>
128            <span class="ActionScriptReserved">return</span> <span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">_httpQuery</span>;
129         <span class="ActionScriptBracket/Brace">}</span>     
130         
131         <span class="ActionScriptReserved">public</span> <span class="ActionScriptReserved">override</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptDefault_Text">toString</span><span class="ActionScriptBracket/Brace">()</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">String</span> <span class="ActionScriptBracket/Brace">{</span>
132             <span class="ActionScriptReserved">return</span> <span class="ActionScriptString">&quot;AbstractLink: &quot;</span> <span class="ActionScriptOperator">+</span> <span class="ActionScriptString">&quot;href: &quot;</span> <span class="ActionScriptOperator">+</span> <span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">_href</span>;
133         <span class="ActionScriptBracket/Brace">}</span>
134    <span class="ActionScriptBracket/Brace">}</span>
135<span class="ActionScriptBracket/Brace">}</span>
136</pre></body>
137</html>