de.micromata.opengis.kml.v_2_2_0
Class AbstractObject

java.lang.Object
  extended by de.micromata.opengis.kml.v_2_2_0.AbstractObject
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
AbstractLatLonBox, AbstractView, Alias, BasicLink, Data, Feature, Geometry, ImagePyramid, ItemIcon, LatLonQuad, Location, Lod, Orientation, Pair, Playlist, Region, ResourceMap, Scale, SchemaData, StyleSelector, SubStyle, TimePrimitive, TourPrimitive, ViewVolume

public abstract class AbstractObject
extends java.lang.Object
implements java.lang.Cloneable

This is an abstract base class and cannot be used directly in a KML file. It provides the id attribute, which allows unique identification of a KML element, and the targetId attribute, which is used to reference objects that have already been loaded into Google Earth. The id attribute must be assigned if the mechanism is to be used.

Syntax:
<!-- abstract element; do not create -->
 <!-- Object id="ID" targetId="NCName" -->
 <!-- /Object> -->


Field Summary
protected  java.lang.String id
           
protected  java.util.List<java.lang.Object> objectSimpleExtension
           
protected  java.lang.String targetId
           
 
Constructor Summary
AbstractObject()
           
 
Method Summary
 AbstractObject addToObjectSimpleExtension(java.lang.Object objectSimpleExtension)
          add a value to the objectSimpleExtension property collection
 AbstractObject clone()
           
 boolean equals(java.lang.Object obj)
           
 java.lang.String getId()
           
 java.util.List<java.lang.Object> getObjectSimpleExtension()
           
 java.lang.String getTargetId()
           
 int hashCode()
           
 void setId(java.lang.String value)
           
 void setObjectSimpleExtension(java.util.List<java.lang.Object> objectSimpleExtension)
           
 void setTargetId(java.lang.String value)
           
 AbstractObject withId(java.lang.String id)
          fluent setter
 AbstractObject withObjectSimpleExtension(java.util.List<java.lang.Object> objectSimpleExtension)
          fluent setter
 AbstractObject withTargetId(java.lang.String targetId)
          fluent setter
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

objectSimpleExtension

protected java.util.List<java.lang.Object> objectSimpleExtension

id

protected java.lang.String id

targetId

protected java.lang.String targetId
Constructor Detail

AbstractObject

public AbstractObject()
Method Detail

getObjectSimpleExtension

public java.util.List<java.lang.Object> getObjectSimpleExtension()
See Also:
objectSimpleExtension

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

getTargetId

public java.lang.String getTargetId()
Returns:
possible object is String
See Also:
targetId

setTargetId

public void setTargetId(java.lang.String value)
Parameters:
value - allowed object is String
See Also:
targetId

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

setObjectSimpleExtension

public void setObjectSimpleExtension(java.util.List<java.lang.Object> objectSimpleExtension)
Parameters:
objectSimpleExtension -
See Also:
objectSimpleExtension

addToObjectSimpleExtension

public AbstractObject addToObjectSimpleExtension(java.lang.Object objectSimpleExtension)
add a value to the objectSimpleExtension property collection

Parameters:
objectSimpleExtension - Objects of the following type are allowed in the list: Object
Returns:
true (as general contract of Collection.add).

withObjectSimpleExtension

public AbstractObject withObjectSimpleExtension(java.util.List<java.lang.Object> objectSimpleExtension)
fluent setter

Parameters:
objectSimpleExtension - required parameter
See Also:
#setObjectSimpleExtension(List)

withId

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

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

withTargetId

public AbstractObject withTargetId(java.lang.String targetId)
fluent setter

Parameters:
targetId - required parameter
See Also:
setTargetId(String)

clone

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