public class Create extends Object implements Cloneable
Adds new elements to a Folder or Document that has already been loaded via a
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
| Modifier and Type | Field and Description |
|---|---|
protected List<Container> |
container
|
| Constructor and Description |
|---|
Create() |
| Modifier and Type | Method and Description |
|---|---|
Create |
addToContainer(Container container)
add a value to the container property collection
|
Create |
clone() |
Document |
createAndAddDocument()
Creates a new instance of
Document and adds it to container. |
Folder |
createAndAddFolder()
Creates a new instance of
Folder and adds it to container. |
boolean |
equals(Object obj) |
List<Container> |
getContainer() |
int |
hashCode() |
void |
setContainer(List<Container> container) |
Create |
withContainer(List<Container> container)
fluent setter
|
protected 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">...Extends:
</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 -->
public Folder createAndAddFolder()
Folder and adds it to container.
This method is a short version for:
Folder folder = new Folder();
this.getContainer().add(folder); public Document createAndAddDocument()
Document and adds it to container.
This method is a short version for:
Document document = new Document();
this.getContainer().add(document); public void setContainer(List<Container> container)
container - containerpublic Create addToContainer(Container container)
public Create withContainer(List<Container> container)
container - required parameter#setContainer(List) Copyright © 2014 Micromata GmbH. All rights reserved.