Creates an untyped name/value pair. The name can have two versions: name and displayName.
The name attribute is used to identify the data pair within the KML file. The displayName
element is used when a properly formatted name, with spaces and HTML formatting,
is displayed in Google Earth. In the element of , the notation
$[name:displayName] is replaced with . If you substitute the value
of the name attribute of the element in this format (for example, $[holeYardage],
the attribute value is replaced with . By default, the Placemark's balloon
displays the name/value pairs associated with it.
Field Summary
protected java.util.List<java.lang.Object>
dataExtension
protected java.lang.String
displayName
protected java.lang.String
name
protected java.lang.String
value
Constructor Summary
Data (java.lang.String value)
Value constructor with only mandatory fields
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
displayName
protected java.lang.String displayName
An optional formatted version of name, to be used for display purposes.
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.
dataExtension
protected java.util.List<java.lang.Object> dataExtension
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).
Data
public Data (java.lang.String value)
Value constructor with only mandatory fields
Parameters: value
- required parameter
getDisplayName
public java.lang.String getDisplayName ()
Returns: possible object is
String
See Also: displayName
setDisplayName
public void setDisplayName (java.lang.String value)
Parameters: value
- allowed object is
String
See Also: displayName
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
getDataExtension
public java.util.List<java.lang.Object> getDataExtension ()
See Also: dataExtension
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 AbstractObject
equals
public boolean equals (java.lang.Object obj)
Overrides: equals
in class AbstractObject
setDataExtension
public void setDataExtension (java.util.List<java.lang.Object> dataExtension)
Parameters: dataExtension
- See Also: dataExtension
addToDataExtension
public Data addToDataExtension (java.lang.Object dataExtension)
add a value to the dataExtension property collection
Parameters: dataExtension
- Objects of the following type are allowed in the list: Object
Returns: true (as general contract of Collection.add ).
setObjectSimpleExtension
public void setObjectSimpleExtension (java.util.List<java.lang.Object> objectSimpleExtension)
Overrides: setObjectSimpleExtension
in class AbstractObject
See Also: objectSimpleExtension
addToObjectSimpleExtension
public Data addToObjectSimpleExtension (java.lang.Object objectSimpleExtension)
Description copied from class: AbstractObject
add a value to the objectSimpleExtension property collection
Overrides: addToObjectSimpleExtension
in class AbstractObject
Parameters: objectSimpleExtension
- Objects of the following type are allowed in the list: Object
Returns: true (as general contract of Collection.add ).
withDisplayName
public Data withDisplayName (java.lang.String displayName)
fluent setter
Parameters: displayName
- required parameterSee Also: setDisplayName(String)
withDataExtension
public Data withDataExtension (java.util.List<java.lang.Object> dataExtension)
fluent setter
Parameters: dataExtension
- required parameterSee Also: #setDataExtension(List)
withName
public Data withName (java.lang.String name)
fluent setter
Parameters: name
- required parameterSee Also: setName(String)
withObjectSimpleExtension
public Data withObjectSimpleExtension (java.util.List<java.lang.Object> objectSimpleExtension)
Description copied from class: AbstractObject
fluent setter
Overrides: withObjectSimpleExtension
in class AbstractObject
Parameters: objectSimpleExtension
- required parameterSee Also: #setObjectSimpleExtension(List)
withId
public Data withId (java.lang.String id)
Description copied from class: AbstractObject
fluent setter
Overrides: withId
in class AbstractObject
Parameters: id
- required parameterSee Also: AbstractObject.setId(String)
withTargetId
public Data withTargetId (java.lang.String targetId)
Description copied from class: AbstractObject
fluent setter
Overrides: withTargetId
in class AbstractObject
Parameters: targetId
- required parameterSee Also: AbstractObject.setTargetId(String)
clone
public Data clone ()
Overrides: clone
in class AbstractObject