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

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

http://gmaps-utility-library-flash.googlecode.com/
HTML | 91 lines | 80 code | 10 blank | 1 comment | 0 complexity | 6b26dc1caf1d3dce9847b151622ce1d9 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>AbstractLatLonBox.as</title>
 7<link rel="stylesheet" type="text/css" href="../../../../../../SourceStyles.css"/>
 8</head>
 9
10<body><pre>
11
12<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>
13<span class="ActionScriptBracket/Brace">{</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">Namespaces</span>;
15    <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>;
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">AbstractLatLonBox</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">_north</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Number</span>;    
33        <span class="ActionScriptReserved">private</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">_south</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Number</span>;    
34        <span class="ActionScriptReserved">private</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">_east</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">_west</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Number</span>;        
36  
37        <span class="ActionScriptASDoc">/**
38        *    Constructor for class.
39        * 
40        *    @param x An XML document that contains an individual Entry element from 
41        *    an Aton XML feed.
42        *
43        */</span>    
44        <span class="ActionScriptReserved">public</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptDefault_Text">AbstractLatLonBox</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>
45        <span class="ActionScriptBracket/Brace">{</span>
46            <span class="ActionScriptReserved">super</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">x</span><span class="ActionScriptBracket/Brace">)</span>;
47            <span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">_north</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">north</span><span class="ActionScriptBracket/Brace">)</span>;
48            <span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">_south</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">south</span><span class="ActionScriptBracket/Brace">)</span>;
49            <span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">_east</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">east</span><span class="ActionScriptBracket/Brace">)</span>;
50            <span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">_west</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">west</span><span class="ActionScriptBracket/Brace">)</span>;
51        <span class="ActionScriptBracket/Brace">}</span>
52         
53        <span class="ActionScriptASDoc">/**
54        *    A String that contains the title for the entry.
55        */</span>    
56        <span class="ActionScriptReserved">public</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptReserved">get</span> <span class="ActionScriptDefault_Text">north</span><span class="ActionScriptBracket/Brace">()</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Number</span>
57        <span class="ActionScriptBracket/Brace">{</span>
58            <span class="ActionScriptReserved">return</span> <span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">_north</span>;
59         <span class="ActionScriptBracket/Brace">}</span>
60         
61         <span class="ActionScriptASDoc">/**
62        *    A String that contains the title for the entry.
63        */</span>    
64        <span class="ActionScriptReserved">public</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptReserved">get</span> <span class="ActionScriptDefault_Text">south</span><span class="ActionScriptBracket/Brace">()</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Number</span>
65        <span class="ActionScriptBracket/Brace">{</span>
66            <span class="ActionScriptReserved">return</span> <span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">_south</span>;
67         <span class="ActionScriptBracket/Brace">}</span>
68         
69         <span class="ActionScriptASDoc">/**
70        *    A String that contains the title for the entry.
71        */</span>    
72        <span class="ActionScriptReserved">public</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptReserved">get</span> <span class="ActionScriptDefault_Text">east</span><span class="ActionScriptBracket/Brace">()</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Number</span>
73        <span class="ActionScriptBracket/Brace">{</span>
74            <span class="ActionScriptReserved">return</span> <span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">_east</span>;
75         <span class="ActionScriptBracket/Brace">}</span>
76         
77         <span class="ActionScriptASDoc">/**
78        *    A String that contains the title for the entry.
79        */</span>    
80        <span class="ActionScriptReserved">public</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptReserved">get</span> <span class="ActionScriptDefault_Text">west</span><span class="ActionScriptBracket/Brace">()</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Number</span>
81        <span class="ActionScriptBracket/Brace">{</span>
82            <span class="ActionScriptReserved">return</span> <span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">_west</span>;
83         <span class="ActionScriptBracket/Brace">}</span>
84
85        <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>
86            <span class="ActionScriptReserved">return</span> <span class="ActionScriptString">&quot;AbstractLatLonBox: &quot;</span> <span class="ActionScriptOperator">+</span> <span class="ActionScriptString">&quot; north: &quot;</span> <span class="ActionScriptOperator">+</span> <span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">_north</span> <span class="ActionScriptOperator">+</span> <span class="ActionScriptString">&quot;south: &quot;</span> <span class="ActionScriptOperator">+</span> <span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">_south</span> <span class="ActionScriptOperator">+</span> <span class="ActionScriptString">&quot;east: &quot;</span> <span class="ActionScriptOperator">+</span> <span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">_east</span> <span class="ActionScriptOperator">+</span> <span class="ActionScriptString">&quot; west: &quot;</span> <span class="ActionScriptOperator">+</span> <span class="ActionScriptReserved">this</span>.<span class="ActionScriptDefault_Text">_west</span>;
87        <span class="ActionScriptBracket/Brace">}</span>
88    <span class="ActionScriptBracket/Brace">}</span>
89<span class="ActionScriptBracket/Brace">}</span>
90</pre></body>
91</html>