public class Schema extends Object implements Cloneable
Specifies a custom KML schema that is used to add custom data to KML Features. The
"id" attribute is required and must be unique within the KML file.
<Schema name="string" id="ID">
<SimpleField type="string" name="string">
<displayName>...</displayName> <!-- string -->
</SimpleField>
</Schema>
Extends:| Modifier and Type | Field and Description |
|---|---|
protected String |
id |
protected String |
name
|
protected List<Object> |
schemaExtension
|
protected List<SimpleField> |
simpleField |
| Constructor and Description |
|---|
Schema() |
| Modifier and Type | Method and Description |
|---|---|
Schema |
addToSchemaExtension(Object schemaExtension)
add a value to the schemaExtension property collection
|
Schema |
addToSimpleField(SimpleField simpleField)
add a value to the simpleField property collection
|
Schema |
clone() |
SimpleField |
createAndAddSimpleField()
Creates a new instance of
SimpleField and adds it to simpleField. |
boolean |
equals(Object obj) |
String |
getId() |
String |
getName() |
List<Object> |
getSchemaExtension() |
List<SimpleField> |
getSimpleField() |
int |
hashCode() |
void |
setId(String value) |
void |
setName(String value) |
void |
setSchemaExtension(List<Object> schemaExtension) |
void |
setSimpleField(List<SimpleField> simpleField) |
Schema |
withId(String id)
fluent setter
|
Schema |
withName(String name)
fluent setter
|
Schema |
withSchemaExtension(List<Object> schemaExtension)
fluent setter
|
Schema |
withSimpleField(List<SimpleField> simpleField)
fluent setter
|
protected List<SimpleField> simpleField
protected String name
User-defined text displayed in the 3D viewer as the label for the object (for example, for a Placemark, Folder, or NetworkLink).
protected String id
public List<SimpleField> getSimpleField()
simpleFieldpublic SimpleField createAndAddSimpleField()
SimpleField and adds it to simpleField.
This method is a short version for:
SimpleField simpleField = new SimpleField();
this.getSimpleField().add(simpleField); public void setSimpleField(List<SimpleField> simpleField)
simpleField - simpleFieldpublic Schema addToSimpleField(SimpleField simpleField)
simpleField - Objects of the following type are allowed in the list: SimpleFieldpublic void setSchemaExtension(List<Object> schemaExtension)
schemaExtension - schemaExtensionpublic Schema addToSchemaExtension(Object schemaExtension)
schemaExtension - Objects of the following type are allowed in the list: <SimpleArrayFieldJAXBElement<Objectpublic Schema withSimpleField(List<SimpleField> simpleField)
simpleField - required parameter#setSimpleField(List) public Schema withSchemaExtension(List<Object> schemaExtension)
schemaExtension - required parameter#setSchemaExtension(Listpublic Schema withName(String name)
name - required parametersetName(String)public Schema withId(String id)
id - required parametersetId(String)Copyright © 2014 Micromata GmbH. All rights reserved.