Class TLcdKML22AbstractFeature
java.lang.Object
com.luciad.datamodel.TLcdDataObject
com.luciad.format.kml22.model.TLcdKML22AbstractObject
com.luciad.format.kml22.model.feature.TLcdKML22AbstractFeature
- All Implemented Interfaces:
ILcdDataObject
,ILcdTimeBounded
,ILcdCache
,ILcdCloneable
,ILcdDeepCloneable
,Cloneable
- Direct Known Subclasses:
TLcdKML22AbstractContainer
,TLcdKML22AbstractOverlay
,TLcdKML22NetworkLink
,TLcdKML22Placemark
public class TLcdKML22AbstractFeature
extends TLcdKML22AbstractObject
implements ILcdTimeBounded, ILcdCache
Domain class modeling the KML AbstractFeatureType type.
OGC KML Specification description:
Abstract: yes This element can be used wherever the following element is referenced: -kml:AbstractObjectGroup The following elements can be used wherever this element is referenced: -kml:AbstractContainerGroup -kml:Document -kml:Folder -kml:AbstractOverlayGroup -kml:GroundOverlay -kml:ScreenOverlay -kml:PhotoOverlay -kml:Placemark -kml:NetworkLink
- Since:
- 10.0
-
Field Summary
Modifier and TypeFieldDescriptionstatic final TLcdDataProperty
Data property that maps to theAbstractFeatureObjectExtensionGroup
element.static final TLcdDataProperty
Data property that maps to theAbstractFeatureSimpleExtensionGroup
element.static final TLcdDataProperty
Data property that maps to theAbstractStyleSelectorGroup
element.static final TLcdDataProperty
Data property that maps to theAbstractTimePrimitiveGroup
element.static final TLcdDataProperty
Data property that maps to theAbstractViewGroup
element.static final TLcdDataProperty
Data property that maps to theAddressDetails
element.static final TLcdDataProperty
Data property that maps to theaddress
element.static final TLcdDataProperty
Data property that maps to thelink
element.static final TLcdDataProperty
Data property that maps to theauthor
element.static final TLcdDataProperty
Data property that maps to thedescription
element.static final TLcdDataProperty
Data property that maps to the choice between theMetadata
andExtendedData
elements.static final TLcdDataProperty
Data property that maps to thename
element.static final TLcdDataProperty
Data property that maps to theopen
element.static final TLcdDataProperty
Data property that maps to thephoneNumber
element.static final TLcdDataProperty
Data property that maps to theRegion
element.static final TLcdDataProperty
Data property that maps to the choice between theSnippet
andsnippet
elements.static final TLcdDataProperty
Data property that maps to thestyleUrl
element.static final TLcdDataProperty
Data property that maps to thevisibility
element.Fields inherited from class com.luciad.format.kml22.model.TLcdKML22AbstractObject
ID_PROPERTY, OBJECT_SIMPLE_EXTENSION_GROUP_PROPERTY, TARGET_ID_PROPERTY
-
Constructor Summary
ConstructorDescriptionCreates a newTLcdKML22AbstractFeature
with a customTLcdDataType
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Clears the cache.Returns a deep clone of this object.Returns the value of the property that maps to theAbstractStyleSelectorGroup
element.Returns the value of the property that maps to theAbstractTimePrimitiveGroup
element.Returns the value of the property that maps to theAbstractViewGroup
element.Returns the value of the property that maps to theaddress
element.Returns the value of the property that maps to theAddressDetails
element.Returns the value of the property that maps to thelink
element.Returns the value of the property that maps to theauthor
element.getCachedObject
(Object aKey) Looks up and returns the cached Object corresponding to the given key.Returns the value of the property that maps to thedescription
element.Returns the value of the property that maps to the choice between theMetadata
andExtendedData
elements.Returns the inner styleselector of this abstract feature, or null if the abstract feature doesn't have an inner styleselector.Gets the source name of the originating KML document of this abstract feature.getName()
Returns the value of the property that maps to thename
element.getOpen()
Returns the value of the property that maps to theopen
element.Returns the value of the property that maps to thephoneNumber
element.Returns the value of the property that maps to theRegion
element.Returns the value of the property that maps to the choice between theSnippet
andsnippet
elements.Returns the value of the property that maps to thestyleUrl
element.Returns theILcdTimeBounds
by which this object is bounded.Returns the value of the property that maps to thevisibility
element.void
insertIntoCache
(Object aKey, Object aObject) Inserts a cache Object corresponding to the given key Object.removeCachedObject
(Object aKey) Looks up and removes the cached Object corresponding to the given key.void
Sets the value of the property that maps to theAbstractTimePrimitiveGroup
element.void
Sets the value of the property that maps to theAbstractViewGroup
element.void
setAddress
(String aValue) Sets the value of the property that maps to theaddress
element.void
setAddressDetails
(ILcdDataObject aValue) Sets the value of the property that maps to theAddressDetails
element.void
setAtomLink
(ILcdDataObject aValue) Sets the value of the property that maps to thelink
element.void
setAuthor
(ILcdDataObject aValue) Sets the value of the property that maps to theauthor
element.void
setDescription
(String aValue) Sets the value of the property that maps to thedescription
element.void
setExtendedData
(ILcdDataObject aValue) Sets the value of the property that maps to the choice between theMetadata
andExtendedData
elements.void
setKMLSourceName
(String aSourceName) Sets the source name of the originating KML document of this abstract feature.void
Sets the value of the property that maps to thename
element.void
Sets the value of the property that maps to theopen
element.void
setPhoneNumber
(String aValue) Sets the value of the property that maps to thephoneNumber
element.void
setRegion
(TLcdKML22Region aValue) Sets the value of the property that maps to theRegion
element.void
setSnippet
(TLcdKML22Snippet aValue) Sets the value of the property that maps to the choice between theSnippet
andsnippet
elements.void
setStyleUrl
(String aValue) Sets the value of the property that maps to thestyleUrl
element.void
setVisibility
(Boolean aValue) Sets the value of the property that maps to thevisibility
element.Methods inherited from class com.luciad.format.kml22.model.TLcdKML22AbstractObject
getId, getTargetId, setId, setTargetId
Methods inherited from class com.luciad.datamodel.TLcdDataObject
clone, getDataType, getValue, getValue, hasValue, hasValue, setValue, setValue, toString
-
Field Details
-
NAME_PROPERTY
Data property that maps to thename
element. The possible values for this property are instances ofString
. -
VISIBILITY_PROPERTY
Data property that maps to thevisibility
element. The possible values for this property are instances ofBoolean
. -
OPEN_PROPERTY
Data property that maps to theopen
element. The possible values for this property are instances ofBoolean
. -
AUTHOR_PROPERTY
Data property that maps to theauthor
element. The possible values for this property are instances ofILcdDataObject
. -
ATOM_LINK_PROPERTY
Data property that maps to thelink
element. The possible values for this property are instances ofILcdDataObject
. -
ADDRESS_PROPERTY
Data property that maps to theaddress
element. The possible values for this property are instances ofString
. -
ADDRESS_DETAILS_PROPERTY
Data property that maps to theAddressDetails
element. The possible values for this property are instances ofILcdDataObject
. -
PHONE_NUMBER_PROPERTY
Data property that maps to thephoneNumber
element. The possible values for this property are instances ofString
. -
SNIPPET_PROPERTY
Data property that maps to the choice between theSnippet
andsnippet
elements. The possible values for this property are instances ofTLcdKML22Snippet
String
-
DESCRIPTION_PROPERTY
Data property that maps to thedescription
element. The possible values for this property are instances ofString
. -
ABSTRACT_VIEW_GROUP_PROPERTY
Data property that maps to theAbstractViewGroup
element. The possible values for this property are instances ofTLcdKML22AbstractView
. -
ABSTRACT_TIME_PRIMITIVE_GROUP_PROPERTY
Data property that maps to theAbstractTimePrimitiveGroup
element. The possible values for this property are instances ofTLcdKML22AbstractTimePrimitive
. -
STYLE_URL_PROPERTY
Data property that maps to thestyleUrl
element. The possible values for this property are instances ofString
. -
ABSTRACT_STYLE_SELECTOR_GROUP_PROPERTY
Data property that maps to theAbstractStyleSelectorGroup
element. The possible values for this property are instances ofList<TLcdKML22AbstractStyleSelector>
. -
REGION_PROPERTY
Data property that maps to theRegion
element. The possible values for this property are instances ofTLcdKML22Region
. -
EXTENDED_DATA_PROPERTY
Data property that maps to the choice between theMetadata
andExtendedData
elements. The possible values for this property are instances of -
ABSTRACT_FEATURE_SIMPLE_EXTENSION_GROUP_PROPERTY
Data property that maps to theAbstractFeatureSimpleExtensionGroup
element. The possible values for this property are instances ofList<String>
. -
ABSTRACT_FEATURE_OBJECT_EXTENSION_GROUP_PROPERTY
Data property that maps to theAbstractFeatureObjectExtensionGroup
element. The possible values for this property are instances ofList<TLcdKML22AbstractObject>
.
-
-
Constructor Details
-
TLcdKML22AbstractFeature
Creates a newTLcdKML22AbstractFeature
with a customTLcdDataType
.- Parameters:
aType
- a customTLcdDataType
-
-
Method Details
-
getVisibility
Returns the value of the property that maps to thevisibility
element.- Returns:
- the value of the
VISIBILITY_PROPERTY
property.
-
getKMLSourceName
Gets the source name of the originating KML document of this abstract feature.- Returns:
- The source name of the document of which this abstract feature originates from.
-
setKMLSourceName
Sets the source name of the originating KML document of this abstract feature.- Parameters:
aSourceName
- the new source name of the document in which this abstract feature resides
-
getInnerStyleSelector
Returns the inner styleselector of this abstract feature, or null if the abstract feature doesn't have an inner styleselector.- Returns:
- Either a style in the form of ILcdFeatured, or null if the abstract feature has no styleselector.
-
getTimeBounds
Description copied from interface:ILcdTimeBounded
Returns theILcdTimeBounds
by which this object is bounded.- Specified by:
getTimeBounds
in interfaceILcdTimeBounded
- Returns:
- the
ILcdTimeBounds
by which this object is bounded.
-
insertIntoCache
Description copied from interface:ILcdCache
Inserts a cache Object corresponding to the given key Object.- Specified by:
insertIntoCache
in interfaceILcdCache
- Parameters:
aKey
- the key Object that will be used to identify the Object. The key must therefore be a unique identifier, typically the caller itself:insertIntoCache(this, ...)
.aObject
- the Object to be cached.
-
getCachedObject
Description copied from interface:ILcdCache
Looks up and returns the cached Object corresponding to the given key.- Specified by:
getCachedObject
in interfaceILcdCache
- Parameters:
aKey
- the key Object that was used for storing the cache Object.- Returns:
- the cached Object, or null if there is no Object corresponding to the given key.
-
removeCachedObject
Description copied from interface:ILcdCache
Looks up and removes the cached Object corresponding to the given key.- Specified by:
removeCachedObject
in interfaceILcdCache
- Parameters:
aKey
- the key Object that was used for storing the cache Object.- Returns:
- the cached Object, or null if there was no Object corresponding to the given key.
-
clearCache
public void clearCache()Description copied from interface:ILcdCache
Clears the cache.- Specified by:
clearCache
in interfaceILcdCache
-
clone
Description copied from class:TLcdDataObject
Returns a deep clone of this object. If the clone is not already present in the dictionary, a new instance if created as follows:- First, a new instance is created using Java's clone() mechanism.
- Then, all properties of this object are cloned and set on the newly created
instance. A property is cloned as follows:
- If the property value is an
ILcdDataObject
, the value is cloned by first creating a new instance via thevalue.getDataType().newInstance()
method, and then cloning its properties one by one. - If the value implements
ILcdDeepCloneable
orILcdCloneable
then this interface is used to clone the value. - Otherwise, the property value is copied by reference.
- If the property value is an
- Specified by:
clone
in interfaceILcdDeepCloneable
- Overrides:
clone
in classTLcdDataObject
- Parameters:
aObjectDictionary
- the Object dictionary that keeps track of the objects for which a clone has already been made, and their corresponding clone Object.- Returns:
- a deep clone of this object
-
getName
Returns the value of the property that maps to thename
element.- Returns:
- the value of the
NAME_PROPERTY
property.
-
setName
Sets the value of the property that maps to thename
element.- Parameters:
aValue
- the value to set for theNAME_PROPERTY
property.
-
setVisibility
Sets the value of the property that maps to thevisibility
element.- Parameters:
aValue
- the value to set for theVISIBILITY_PROPERTY
property.
-
getOpen
Returns the value of the property that maps to theopen
element.- Returns:
- the value of the
OPEN_PROPERTY
property.
-
setOpen
Sets the value of the property that maps to theopen
element.- Parameters:
aValue
- the value to set for theOPEN_PROPERTY
property.
-
getAuthor
Returns the value of the property that maps to theauthor
element.- Returns:
- the value of the
AUTHOR_PROPERTY
property.
-
setAuthor
Sets the value of the property that maps to theauthor
element.- Parameters:
aValue
- the value to set for theAUTHOR_PROPERTY
property.
-
getAtomLink
Returns the value of the property that maps to thelink
element.- Returns:
- the value of the
ATOM_LINK_PROPERTY
property.
-
setAtomLink
Sets the value of the property that maps to thelink
element.- Parameters:
aValue
- the value to set for theATOM_LINK_PROPERTY
property.
-
getAddress
Returns the value of the property that maps to theaddress
element.- Returns:
- the value of the
ADDRESS_PROPERTY
property.
-
setAddress
Sets the value of the property that maps to theaddress
element.- Parameters:
aValue
- the value to set for theADDRESS_PROPERTY
property.
-
getAddressDetails
Returns the value of the property that maps to theAddressDetails
element.This container defines the details of the address. Can define multiple addresses including tracking address history
- Returns:
- the value of the
ADDRESS_DETAILS_PROPERTY
property.
-
setAddressDetails
Sets the value of the property that maps to theAddressDetails
element.This container defines the details of the address. Can define multiple addresses including tracking address history
- Parameters:
aValue
- the value to set for theADDRESS_DETAILS_PROPERTY
property.
-
getPhoneNumber
Returns the value of the property that maps to thephoneNumber
element.- Returns:
- the value of the
PHONE_NUMBER_PROPERTY
property.
-
setPhoneNumber
Sets the value of the property that maps to thephoneNumber
element.- Parameters:
aValue
- the value to set for thePHONE_NUMBER_PROPERTY
property.
-
getSnippet
Returns the value of the property that maps to the choice between theSnippet
andsnippet
elements.The possible values for this property are instances of
TLcdKML22Snippet
String
- Returns:
- the value of the
SNIPPET_PROPERTY
property.
-
setSnippet
Sets the value of the property that maps to the choice between theSnippet
andsnippet
elements.The possible values for this property are instances of
TLcdKML22Snippet
String
- Parameters:
aValue
- the value to set for theSNIPPET_PROPERTY
property.
-
getDescription
Returns the value of the property that maps to thedescription
element.- Returns:
- the value of the
DESCRIPTION_PROPERTY
property.
-
setDescription
Sets the value of the property that maps to thedescription
element.- Parameters:
aValue
- the value to set for theDESCRIPTION_PROPERTY
property.
-
getAbstractViewGroup
Returns the value of the property that maps to theAbstractViewGroup
element.- Returns:
- the value of the
ABSTRACT_VIEW_GROUP_PROPERTY
property.
-
setAbstractViewGroup
Sets the value of the property that maps to theAbstractViewGroup
element.- Parameters:
aValue
- the value to set for theABSTRACT_VIEW_GROUP_PROPERTY
property.
-
getAbstractTimePrimitiveGroup
Returns the value of the property that maps to theAbstractTimePrimitiveGroup
element.- Returns:
- the value of the
ABSTRACT_TIME_PRIMITIVE_GROUP_PROPERTY
property.
-
setAbstractTimePrimitiveGroup
Sets the value of the property that maps to theAbstractTimePrimitiveGroup
element.- Parameters:
aValue
- the value to set for theABSTRACT_TIME_PRIMITIVE_GROUP_PROPERTY
property.
-
getStyleUrl
Returns the value of the property that maps to thestyleUrl
element.- Returns:
- the value of the
STYLE_URL_PROPERTY
property.
-
setStyleUrl
Sets the value of the property that maps to thestyleUrl
element.- Parameters:
aValue
- the value to set for theSTYLE_URL_PROPERTY
property.
-
getAbstractStyleSelectorGroup
Returns the value of the property that maps to theAbstractStyleSelectorGroup
element.- Returns:
- the value of the
ABSTRACT_STYLE_SELECTOR_GROUP_PROPERTY
property.
-
getRegion
Returns the value of the property that maps to theRegion
element.- Returns:
- the value of the
REGION_PROPERTY
property.
-
setRegion
Sets the value of the property that maps to theRegion
element.- Parameters:
aValue
- the value to set for theREGION_PROPERTY
property.
-
getExtendedData
Returns the value of the property that maps to the choice between theMetadata
andExtendedData
elements.The possible values for this property are instances of
- Returns:
- the value of the
EXTENDED_DATA_PROPERTY
property.
-
setExtendedData
Sets the value of the property that maps to the choice between theMetadata
andExtendedData
elements.The possible values for this property are instances of
- Parameters:
aValue
- the value to set for theEXTENDED_DATA_PROPERTY
property.
-