de.micromata.opengis.kml.v_2_2_0
Class Schema

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

public class Schema
extends java.lang.Object
implements java.lang.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. is always a child of .

Syntax:
<Schema name="string" id="ID">
   <SimpleField type="string" name="string">
     <displayName>...</displayName>            <!-- string -->
   </SimpleField>
 </Schema>
Extends:


Field Summary
protected  java.lang.String id
           
protected  java.lang.String name
          
protected  java.util.List<java.lang.Object> schemaExtension
           
protected  java.util.List<SimpleField> simpleField
           
 
Constructor Summary
Schema()
           
 
Method Summary
 Schema addToSchemaExtension(java.lang.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(java.lang.Object obj)
           
 java.lang.String getId()
           
 java.lang.String getName()
           
 java.util.List<java.lang.Object> getSchemaExtension()
           
 java.util.List<SimpleField> getSimpleField()
           
 int hashCode()
           
 void setId(java.lang.String value)
           
 void setName(java.lang.String value)
           
 void setSchemaExtension(java.util.List<java.lang.Object> schemaExtension)
           
 void setSimpleField(java.util.List<SimpleField> simpleField)
           
 Schema withId(java.lang.String id)
          fluent setter
 Schema withName(java.lang.String name)
          fluent setter
 Schema withSchemaExtension(java.util.List<java.lang.Object> schemaExtension)
          fluent setter
 Schema withSimpleField(java.util.List<SimpleField> simpleField)
          fluent setter
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

Schema

public Schema()
Method Detail

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 parameter
See Also:
#setSimpleField(List)

withSchemaExtension

public Schema withSchemaExtension(java.util.List<java.lang.Object> schemaExtension)
fluent setter

Parameters:
schemaExtension - required parameter
See Also:
#setSchemaExtension(List)

withName

public Schema withName(java.lang.String name)
fluent setter

Parameters:
name - required parameter
See Also:
setName(String)

withId

public Schema withId(java.lang.String id)
fluent setter

Parameters:
id - required parameter
See Also:
setId(String)

clone

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