/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
- /*
- * Copyright 2008 Google Inc.
- * Licensed under the Apache License, Version 2.0:
- * http://www.apache.org/licenses/LICENSE-2.0
- */
- package com.google.maps.extras.xmlparsers.kml
- {
- import com.google.maps.extras.xmlparsers.Namespaces;
- import com.google.maps.extras.xmlparsers.ParsingTools;
- import com.google.maps.extras.xmlparsers.XmlElement;
-
- /**
- * Class that represents the <Extendeddata> element.
- *
- * @see http://code.google.com/apis/kml/documentation/kmlreference.html#extendeddata
- */
- public class ExtendedData extends Container
- {
- private var _data: Array;
-
- /**
- * Constructor for the class.
- *
- * @param x
- */
- public function ExtendedData(x:XMLList)
- {
- super(x);
- this._data = new Array();
- var i:XML;
- for each (i in this.x.kml::Data) {
- this._data.push(new com.google.maps.extras.xmlparsers.kml.Data(XMLList(i)));
- }
- }
-
- public override function toString():String {
- return "ExtendedData: " + super.toString();
- }
-
- /**
- * Represents the <data> child element.
- */
- public function get data():Array {
- return this._data;
- }
- }
- }