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. is always
a child of .
Syntax:
<Schema name="string" id="ID">
<SimpleField type="string" name="string">
<displayName>...</displayName> <!-- string -->
</SimpleField>
</Schema>
Extends:
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
simpleField
protected java.util.List<SimpleField > simpleField
schemaExtension
protected java.util.List<java.lang.Object> schemaExtension
name
protected java.lang.String name
User-defined text displayed in the 3D viewer as the label for the object (for example,
for a Placemark, Folder, or NetworkLink).
id
protected java.lang.String id
Schema
public Schema ()
getSimpleField
public java.util.List<SimpleField > getSimpleField ()
See Also: simpleField
getSchemaExtension
public java.util.List<java.lang.Object> getSchemaExtension ()
See Also: schemaExtension
getName
public java.lang.String getName ()
Returns: possible object is
String
See Also: name
setName
public void setName (java.lang.String value)
Parameters: value
- allowed object is
String
See Also: name
getId
public java.lang.String getId ()
Returns: possible object is
String
See Also: id
setId
public void setId (java.lang.String value)
Parameters: value
- allowed object is
String
See Also: id
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
createAndAddSimpleField
public SimpleField createAndAddSimpleField ()
Creates a new instance of SimpleField
and adds it to simpleField.
This method is a short version for:
SimpleField simpleField = new SimpleField();
this.getSimpleField().add(simpleField);
setSimpleField
public void setSimpleField (java.util.List<SimpleField > simpleField)
Parameters: simpleField
- See Also: simpleField
addToSimpleField
public Schema addToSimpleField (SimpleField simpleField)
add a value to the simpleField property collection
Parameters: simpleField
- Objects of the following type are allowed in the list: SimpleField
Returns: true (as general contract of Collection.add ).
setSchemaExtension
public void setSchemaExtension (java.util.List<java.lang.Object> schemaExtension)
Parameters: schemaExtension
- See Also: schemaExtension
addToSchemaExtension
public Schema addToSchemaExtension (java.lang.Object schemaExtension)
add a value to the schemaExtension property collection
Parameters: schemaExtension
- Objects of the following type are allowed in the list: Object
Returns: true (as general contract of Collection.add ).
withSimpleField
public Schema withSimpleField (java.util.List<SimpleField > simpleField)
fluent setter
Parameters: simpleField
- required parameterSee Also: #setSimpleField(List)
withSchemaExtension
public Schema withSchemaExtension (java.util.List<java.lang.Object> schemaExtension)
fluent setter
Parameters: schemaExtension
- required parameterSee Also: #setSchemaExtension(List)
withName
public Schema withName (java.lang.String name)
fluent setter
Parameters: name
- required parameterSee Also: setName(String)
withId
public Schema withId (java.lang.String id)
fluent setter
Parameters: id
- required parameterSee Also: setId(String)
clone
public Schema clone ()
Overrides: clone
in class java.lang.Object