PageRenderTime 9ms CodeModel.GetById 2ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

/src/com/google/maps/extras/xmlparsers/kml/ExtendedData.as

http://gmaps-utility-library-flash.googlecode.com/
ActionScript | 47 lines | 25 code | 4 blank | 18 comment | 1 complexity | 74ec48e2a0e2e0fc08584671a1ea0de5 MD5 | raw file
 1/*
 2* Copyright 2008 Google Inc. 
 3* Licensed under the Apache License, Version 2.0:
 4*  http://www.apache.org/licenses/LICENSE-2.0
 5*/
 6package com.google.maps.extras.xmlparsers.kml
 7{
 8  import com.google.maps.extras.xmlparsers.Namespaces;
 9	import com.google.maps.extras.xmlparsers.ParsingTools;
10	import com.google.maps.extras.xmlparsers.XmlElement;
11
12	/**
13	*	Class that represents the <Extendeddata> element.
14	* 
15	* 	@see http://code.google.com/apis/kml/documentation/kmlreference.html#extendeddata
16	*/
17	public class ExtendedData extends Container
18	{
19    private var _data: Array;
20		
21		/**
22		* Constructor for the class.
23		*  
24		* @param x
25		*/	
26		public function ExtendedData(x:XMLList)
27		{
28			super(x);
29      this._data = new Array();
30      var i:XML;
31      for each (i in this.x.kml::Data) {
32        this._data.push(new com.google.maps.extras.xmlparsers.kml.Data(XMLList(i)));
33      }
34		}
35		
36		public override function toString():String {
37			return "ExtendedData: " + super.toString();
38		}
39
40    /**
41    *       Represents the <data> child element.
42    */ 
43    public function get data():Array {
44      return this._data;
45    }
46	}
47}