This element assigns a value to the custom data field
identified by the name attribute. The type and name of this custom data field are
declared in the element. Here is an example of defining two custom data
elements: Easy trail
Pi in the sky 3.14159
10
-122.000,37.002 Difficult
trail Mount Everest 347.45
10000
-122.000,37.002
Here is an example of defining two custom data elements:
This element assigns a value to the custom data field identified by the name attribute.
The type and name of this custom data field are declared in the element.
Field Summary |
protected java.lang.String |
name
|
protected java.lang.String |
value
|
Constructor Summary |
SimpleData(java.lang.String name)
Value constructor with only mandatory fields |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
value
protected java.lang.String value
-
Club house 1
234
4
An optional formatted version of name, to be used for display purposes.
Value of the data pair. Club house
1 234
4
Value of the data pair.
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).
SimpleData
public SimpleData(java.lang.String name)
- Value constructor with only mandatory fields
- Parameters:
name
- required parameter
getValue
public java.lang.String getValue()
- Returns:
- possible object is
String
- See Also:
value
setValue
public void setValue(java.lang.String value)
- Parameters:
value
- allowed object is
String
- See Also:
value
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
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
withValue
public SimpleData withValue(java.lang.String value)
- fluent setter
- Parameters:
value
- required parameter- See Also:
setValue(String)
clone
public SimpleData clone()
- Overrides:
clone
in class java.lang.Object