de.micromata.opengis.kml.v_2_2_0.ExtendedData Maven / Gradle / Ivy
Show all versions of JavaAPIforKml Show documentation
package de.micromata.opengis.kml.v_2_2_0;
import jakarta.xml.bind.annotation.*;
import org.w3c.dom.Element;
import java.util.ArrayList;
import java.util.List;
/**
* {@code }
*
* Adding untyped data/value pairs using the {@code } element (basic) Declaring new typed
* fields using the {@code } element and then instancing them using the {@code }
* element (advanced) Referring to XML elements defined in other namespaces by referencing
* the external namespace within the KML file (basic)
*
*
* Allows you to add custom data to a KML file. This data can be (1) data that references
* an external XML schema, (2) untyped data/value pairs, or (3) typed data. A given
* KML Feature can contain a combination of these types of custom data.
*
*
* For more information, see Adding Custom Data in "Topics in KML."
*
*
* The ExtendedData element offers three techniques for adding custom data to a KML
* Feature (NetworkLink, Placemark, GroundOverlay, PhotoOverlay, ScreenOverlay, Document,
* Folder). These techniques are
*
*
* These techniques can be combined within a single KML file or Feature for different
* pieces of data.
*
*
* Syntax:
* <ExtendedData>
<Data name="string">
<displayName>...</displayName> <!-- string -->
<value>...</value> <!-- string -->
</Data>
* <SchemaData schemaUrl="anyURI">
<SimpleData name=""> ... </SimpleData> <!-- string -->
</SchemaData>
* <namespace_prefix:other>...</namespace_prefix:other>
* </ExtendedData>
*
* Contained By:
*
*
* See Also:
* Schema
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ExtendedDataType", propOrder = {
"data",
"schemaData",
"any"
})
@XmlRootElement(name = "ExtendedData", namespace = "http://www.opengis.net/kml/2.2")
public class ExtendedData implements Cloneable
{
/**
* {@code }
*
* Creates an untyped name/value pair. The name can have two versions: name and displayName.
* The name attribute is used to identify the data pair within the KML file. The displayName
* element is used when a properly formatted name, with spaces and HTML formatting,
* is displayed in Google Earth. In the {@code } element of {@code }, the notation
* $[name:displayName] is replaced with {@code }. If you substitute the value
* of the name attribute of the {@code } element in this format (for example, $[holeYardage],
* the attribute value is replaced with {@code }. By default, the Placemark's balloon
* displays the name/value pairs associated with it.
*
*
*
*
*/
@XmlElement(name = "Data")
protected List data;
/**
* {@code }
*
* The {@code } can be a full URL, a reference to a Schema ID defined in an external
* KML file, or a reference to a Schema ID defined in the same KML file. All of the
* following specifications are acceptable:
*
*
* The Schema element is always a child of Document. The ExtendedData element is a
* child of the Feature that contains the custom data.
*
*
* This element is used in conjunction with {@code } to add typed custom data to a
* KML Feature. The Schema element (identified by the schemaUrl attribute) declares
* the custom data type. The actual data objects ("instances" of the custom data) are
* defined using the SchemaData element.
*
*
*
*
*/
@XmlElement(name = "SchemaData")
protected List schemaData;
@XmlAnyElement(lax = true)
protected List