Adds new elements to a Folder or Document that has already been loaded via a .
The element in specifies the URL of the .kml or .kmz file
that contained the original Folder or Document. Within that file, the Folder or
Document that is to contain the new data must already have an explicit id defined
for it. This id is referenced as the targetId attribute of the Folder or Document
within that contains the element to be added.
Once an object has been created and loaded into Google Earth, it takes on the URL
of the original parent Document of Folder. To perform subsequent updates to objects
added with this Update/Create mechanism, set to the URL of the original
Document or Folder (not the URL of the file that loaded the intervening updates).
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
container
protected java.util.List<Container> container
-
This is an abstract element and cannot be used directly in a KML file. A Container
element holds one or more Features and allows the creation of nested hierarchies.
Syntax:
<!-- abstract element; do not create -->
<!-- Container id="ID" --> <!-- Document,Folder -->
<!-- inherited from Feature element -->
<name>...</name> <!-- string -->
<visibility>1</visibility> <!-- boolean -->
<open>0</open> <!-- boolean -->
<address>...</address> <!-- string -->
<AddressDetails xmlns="urn:oasis:names:tc:ciq:xsdschema:xAL:2.0">...
</AddressDetails> <!-- string -->
<phoneNumber>...</phoneNumber> <!-- string -->
<Snippet maxLines="2">...</Snippet> <!-- string -->
<description>...</description> <!-- string -->
<AbstractView>...</AbstractView> <!-- LookAt or Camera -->
<TimePrimitive>...</TimePrimitive>
<styleUrl>...</styleUrl> <!-- anyURI -->
<StyleSelector>...</StyleSelector>
<Region>...</Region>
<Metadata>...</Metadata>
<atom:author>...<atom:author> <!-- xmlns:atom="http://www.w3.org/2005/Atom" -->
<atom:link>...</atom:link>
<!-- specific to Container -->
<!-- 0 or more Features -->
<!-- /Container -->
Extends:
Create
public Create()
getContainer
public java.util.List<Container> getContainer()
- See Also:
container
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
createAndAddDocument
public Document createAndAddDocument()
- Creates a new instance of
Document
and adds it to container.
This method is a short version for:
Document document = new Document();
this.getContainer().add(document);
createAndAddFolder
public Folder createAndAddFolder()
- Creates a new instance of
Folder
and adds it to container.
This method is a short version for:
Folder folder = new Folder();
this.getContainer().add(folder);
setContainer
public void setContainer(java.util.List<Container> container)
- Parameters:
container
- - See Also:
container
addToContainer
public Create addToContainer(Container container)
- add a value to the container property collection
- Parameters:
container
- Objects of the following type are allowed in the list: <
Container
JAXBElement
<
Document
JAXBElement
<
Folder
- Returns:
- true (as general contract of Collection.add).
withContainer
public Create withContainer(java.util.List<Container> container)
- fluent setter
- Parameters:
container
- required parameter- See Also:
#setContainer(List)
clone
public Create clone()
- Overrides:
clone
in class java.lang.Object