de.micromata.opengis.kml.v_2_2_0
Class Data

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

public class Data
extends AbstractObject
implements java.lang.Cloneable

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
          
 
Fields inherited from class de.micromata.opengis.kml.v_2_2_0.AbstractObject
id, objectSimpleExtension, targetId
 
Constructor Summary
Data(java.lang.String value)
          Value constructor with only mandatory fields
 
Method Summary
 Data addToDataExtension(java.lang.Object dataExtension)
          add a value to the dataExtension property collection
 Data addToObjectSimpleExtension(java.lang.Object objectSimpleExtension)
          add a value to the objectSimpleExtension property collection
 Data clone()
           
 boolean equals(java.lang.Object obj)
           
 java.util.List<java.lang.Object> getDataExtension()
           
 java.lang.String getDisplayName()
           
 java.lang.String getName()
           
 java.lang.String getValue()
           
 int hashCode()
           
 void setDataExtension(java.util.List<java.lang.Object> dataExtension)
           
 void setDisplayName(java.lang.String value)
           
 void setName(java.lang.String value)
           
 void setObjectSimpleExtension(java.util.List<java.lang.Object> objectSimpleExtension)
           
 void setValue(java.lang.String value)
           
 Data withDataExtension(java.util.List<java.lang.Object> dataExtension)
          fluent setter
 Data withDisplayName(java.lang.String displayName)
          fluent setter
 Data withId(java.lang.String id)
          fluent setter
 Data withName(java.lang.String name)
          fluent setter
 Data withObjectSimpleExtension(java.util.List<java.lang.Object> objectSimpleExtension)
          fluent setter
 Data withTargetId(java.lang.String targetId)
          fluent setter
 
Methods inherited from class de.micromata.opengis.kml.v_2_2_0.AbstractObject
getId, getObjectSimpleExtension, getTargetId, setId, setTargetId
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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).

Constructor Detail

Data

public Data(java.lang.String value)
Value constructor with only mandatory fields

Parameters:
value - required parameter
Method Detail

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 parameter
See Also:
setDisplayName(String)

withDataExtension

public Data withDataExtension(java.util.List<java.lang.Object> dataExtension)
fluent setter

Parameters:
dataExtension - required parameter
See Also:
#setDataExtension(List)

withName

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

Parameters:
name - required parameter
See 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 parameter
See 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 parameter
See 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 parameter
See Also:
AbstractObject.setTargetId(String)

clone

public Data clone()
Overrides:
clone in class AbstractObject