de.micromata.opengis.kml.v_2_2_0
Class Delete

java.lang.Object
  extended by de.micromata.opengis.kml.v_2_2_0.Delete
All Implemented Interfaces:
java.lang.Cloneable

public class Delete
extends java.lang.Object
implements java.lang.Cloneable

Child elements for , which are the only elements that can be deleted, are Document, Folder, GroundOverlay, Placemark, and ScreenOverlay.

Deletes features from a complex element that has already been loaded via a . The element in specifies the .kml or .kmz file containing the data to be deleted. Within that file, the element to be deleted must already have an explicit id defined for it. The element references this id in the targetId attribute.


Field Summary
protected  java.util.List<Feature> feature
          
 
Constructor Summary
Delete()
           
 
Method Summary
 Delete addToFeature(Feature feature)
          add a value to the feature property collection
 Delete clone()
           
 Document createAndAddDocument()
          Creates a new instance of Document and adds it to feature.
 Folder createAndAddFolder()
          Creates a new instance of Folder and adds it to feature.
 GroundOverlay createAndAddGroundOverlay()
          Creates a new instance of GroundOverlay and adds it to feature.
 NetworkLink createAndAddNetworkLink()
          Creates a new instance of NetworkLink and adds it to feature.
 PhotoOverlay createAndAddPhotoOverlay()
          Creates a new instance of PhotoOverlay and adds it to feature.
 Placemark createAndAddPlacemark()
          Creates a new instance of Placemark and adds it to feature.
 ScreenOverlay createAndAddScreenOverlay()
          Creates a new instance of ScreenOverlay and adds it to feature.
 Tour createAndAddTour()
          Creates a new instance of Tour and adds it to feature.
 boolean equals(java.lang.Object obj)
           
 java.util.List<Feature> getFeature()
           
 int hashCode()
           
 void setFeature(java.util.List<Feature> feature)
           
 Delete withFeature(java.util.List<Feature> feature)
          fluent setter
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

feature

protected java.util.List<Feature> feature

This is an abstract element and cannot be used directly in a KML file. The following diagram shows how some of a Feature's elements appear in Google Earth.

Syntax:
<!-- abstract element; do not create -->
 <!-- Feature id="ID" -->                <!-- Document,Folder,
                                              NetworkLink,Placemark,
                                              GroundOverlay,PhotoOverlay,ScreenOverlay -->
   <name>...</name>                      <!-- string -->
   <visibility>1</visibility>            <!-- boolean -->
   <open>0</open>                        <!-- boolean -->
   <atom:author>...<atom:author>         <!-- xmlns:atom -->
   <atom:link>...</atom:link>            <!-- xmlns:atom -->
   <address>...</address>                <!-- string -->
   <xal:AddressDetails>...</xal:AddressDetails>  <!-- xmlns:xal -->
<phoneNumber>...</phoneNumber> <!-- string -->
<Snippet maxLines="2">...</Snippet> <!-- string --> <description>...</description> <!-- string --> <AbstractView>...</AbstractView> <!-- Camera or LookAt --> <TimePrimitive>...</TimePrimitive> <!-- TimeStamp or TimeSpan --> <styleUrl>...</styleUrl> <!-- anyURI --> <StyleSelector>...</StyleSelector> <Region>...</Region> <Metadata>...</Metadata> <!-- deprecated in KML 2.2 --> <ExtendedData>...</ExtendedData> <!-- new in KML 2.2 -->
<-- /Feature -->
Extends:

Constructor Detail

Delete

public Delete()
Method Detail

getFeature

public java.util.List<Feature> getFeature()
See Also:
feature

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

createAndAddTour

public Tour createAndAddTour()
Creates a new instance of Tour and adds it to feature. This method is a short version for: Tour tour = new Tour(); this.getFeature().add(tour);


createAndAddNetworkLink

public NetworkLink createAndAddNetworkLink()
Creates a new instance of NetworkLink and adds it to feature. This method is a short version for: NetworkLink networkLink = new NetworkLink(); this.getFeature().add(networkLink);


createAndAddPhotoOverlay

public PhotoOverlay createAndAddPhotoOverlay()
Creates a new instance of PhotoOverlay and adds it to feature. This method is a short version for: PhotoOverlay photoOverlay = new PhotoOverlay(); this.getFeature().add(photoOverlay);


createAndAddScreenOverlay

public ScreenOverlay createAndAddScreenOverlay()
Creates a new instance of ScreenOverlay and adds it to feature. This method is a short version for: ScreenOverlay screenOverlay = new ScreenOverlay(); this.getFeature().add(screenOverlay);


createAndAddGroundOverlay

public GroundOverlay createAndAddGroundOverlay()
Creates a new instance of GroundOverlay and adds it to feature. This method is a short version for: GroundOverlay groundOverlay = new GroundOverlay(); this.getFeature().add(groundOverlay);


createAndAddDocument

public Document createAndAddDocument()
Creates a new instance of Document and adds it to feature. This method is a short version for: Document document = new Document(); this.getFeature().add(document);


createAndAddFolder

public Folder createAndAddFolder()
Creates a new instance of Folder and adds it to feature. This method is a short version for: Folder folder = new Folder(); this.getFeature().add(folder);


createAndAddPlacemark

public Placemark createAndAddPlacemark()
Creates a new instance of Placemark and adds it to feature. This method is a short version for: Placemark placemark = new Placemark(); this.getFeature().add(placemark);


setFeature

public void setFeature(java.util.List<Feature> feature)
Parameters:
feature -
See Also:
feature

addToFeature

public Delete addToFeature(Feature feature)
add a value to the feature property collection

Parameters:
feature - Objects of the following type are allowed in the list: <TourJAXBElement<ContainerJAXBElement<DocumentJAXBElement<NetworkLinkJAXBElement<GroundOverlayJAXBElement<FolderJAXBElement<PhotoOverlayJAXBElement<FeatureJAXBElement<PlacemarkJAXBElement<OverlayJAXBElement<ScreenOverlay
Returns:
true (as general contract of Collection.add).

withFeature

public Delete withFeature(java.util.List<Feature> feature)
fluent setter

Parameters:
feature - required parameter
See Also:
#setFeature(List)

clone

public Delete clone()
Overrides:
clone in class java.lang.Object