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
FieldsModifier and TypeFieldDescriptionstatic final TLcdDataPropertyData property that maps to theAbstractFeatureObjectExtensionGroupelement.static final TLcdDataPropertyData property that maps to theAbstractFeatureSimpleExtensionGroupelement.static final TLcdDataPropertyData property that maps to theAbstractStyleSelectorGroupelement.static final TLcdDataPropertyData property that maps to theAbstractTimePrimitiveGroupelement.static final TLcdDataPropertyData property that maps to theAbstractViewGroupelement.static final TLcdDataPropertyData property that maps to theAddressDetailselement.static final TLcdDataPropertyData property that maps to theaddresselement.static final TLcdDataPropertyData property that maps to thelinkelement.static final TLcdDataPropertyData property that maps to theauthorelement.static final TLcdDataPropertyData property that maps to thedescriptionelement.static final TLcdDataPropertyData property that maps to the choice between theMetadataandExtendedDataelements.static final TLcdDataPropertyData property that maps to thenameelement.static final TLcdDataPropertyData property that maps to theopenelement.static final TLcdDataPropertyData property that maps to thephoneNumberelement.static final TLcdDataPropertyData property that maps to theRegionelement.static final TLcdDataPropertyData property that maps to the choice between theSnippetandsnippetelements.static final TLcdDataPropertyData property that maps to thestyleUrlelement.static final TLcdDataPropertyData property that maps to thevisibilityelement.Fields inherited from class com.luciad.format.kml22.model.TLcdKML22AbstractObject
ID_PROPERTY, OBJECT_SIMPLE_EXTENSION_GROUP_PROPERTY, TARGET_ID_PROPERTY -
Constructor Summary
ConstructorsConstructorDescriptionCreates a newTLcdKML22AbstractFeaturewith a customTLcdDataType. -
Method Summary
Modifier and TypeMethodDescriptionvoidClears the cache.Returns a deep clone of this object.Returns the value of the property that maps to theAbstractStyleSelectorGroupelement.Returns the value of the property that maps to theAbstractTimePrimitiveGroupelement.Returns the value of the property that maps to theAbstractViewGroupelement.Returns the value of the property that maps to theaddresselement.Returns the value of the property that maps to theAddressDetailselement.Returns the value of the property that maps to thelinkelement.Returns the value of the property that maps to theauthorelement.getCachedObject(Object aKey) Looks up and returns the cached Object corresponding to the given key.Returns the value of the property that maps to thedescriptionelement.Returns the value of the property that maps to the choice between theMetadataandExtendedDataelements.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 thenameelement.getOpen()Returns the value of the property that maps to theopenelement.Returns the value of the property that maps to thephoneNumberelement.Returns the value of the property that maps to theRegionelement.Returns the value of the property that maps to the choice between theSnippetandsnippetelements.Returns the value of the property that maps to thestyleUrlelement.Returns theILcdTimeBoundsby which this object is bounded.Returns the value of the property that maps to thevisibilityelement.voidinsertIntoCache(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.voidSets the value of the property that maps to theAbstractTimePrimitiveGroupelement.voidSets the value of the property that maps to theAbstractViewGroupelement.voidsetAddress(String aValue) Sets the value of the property that maps to theaddresselement.voidsetAddressDetails(ILcdDataObject aValue) Sets the value of the property that maps to theAddressDetailselement.voidsetAtomLink(ILcdDataObject aValue) Sets the value of the property that maps to thelinkelement.voidsetAuthor(ILcdDataObject aValue) Sets the value of the property that maps to theauthorelement.voidsetDescription(String aValue) Sets the value of the property that maps to thedescriptionelement.voidsetExtendedData(ILcdDataObject aValue) Sets the value of the property that maps to the choice between theMetadataandExtendedDataelements.voidsetKMLSourceName(String aSourceName) Sets the source name of the originating KML document of this abstract feature.voidSets the value of the property that maps to thenameelement.voidSets the value of the property that maps to theopenelement.voidsetPhoneNumber(String aValue) Sets the value of the property that maps to thephoneNumberelement.voidsetRegion(TLcdKML22Region aValue) Sets the value of the property that maps to theRegionelement.voidsetSnippet(TLcdKML22Snippet aValue) Sets the value of the property that maps to the choice between theSnippetandsnippetelements.voidsetStyleUrl(String aValue) Sets the value of the property that maps to thestyleUrlelement.voidsetVisibility(Boolean aValue) Sets the value of the property that maps to thevisibilityelement.Methods inherited from class com.luciad.format.kml22.model.TLcdKML22AbstractObject
getId, getTargetId, setId, setTargetIdMethods 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 thenameelement. The possible values for this property are instances ofString. -
VISIBILITY_PROPERTY
Data property that maps to thevisibilityelement. The possible values for this property are instances ofBoolean. -
OPEN_PROPERTY
Data property that maps to theopenelement. The possible values for this property are instances ofBoolean. -
AUTHOR_PROPERTY
Data property that maps to theauthorelement. The possible values for this property are instances ofILcdDataObject. -
ATOM_LINK_PROPERTY
Data property that maps to thelinkelement. The possible values for this property are instances ofILcdDataObject. -
ADDRESS_PROPERTY
Data property that maps to theaddresselement. The possible values for this property are instances ofString. -
ADDRESS_DETAILS_PROPERTY
Data property that maps to theAddressDetailselement. The possible values for this property are instances ofILcdDataObject. -
PHONE_NUMBER_PROPERTY
Data property that maps to thephoneNumberelement. The possible values for this property are instances ofString. -
SNIPPET_PROPERTY
Data property that maps to the choice between theSnippetandsnippetelements. The possible values for this property are instances ofTLcdKML22SnippetString
-
DESCRIPTION_PROPERTY
Data property that maps to thedescriptionelement. The possible values for this property are instances ofString. -
ABSTRACT_VIEW_GROUP_PROPERTY
Data property that maps to theAbstractViewGroupelement. The possible values for this property are instances ofTLcdKML22AbstractView. -
ABSTRACT_TIME_PRIMITIVE_GROUP_PROPERTY
Data property that maps to theAbstractTimePrimitiveGroupelement. The possible values for this property are instances ofTLcdKML22AbstractTimePrimitive. -
STYLE_URL_PROPERTY
Data property that maps to thestyleUrlelement. The possible values for this property are instances ofString. -
ABSTRACT_STYLE_SELECTOR_GROUP_PROPERTY
Data property that maps to theAbstractStyleSelectorGroupelement. The possible values for this property are instances ofList<TLcdKML22AbstractStyleSelector>. -
REGION_PROPERTY
Data property that maps to theRegionelement. The possible values for this property are instances ofTLcdKML22Region. -
EXTENDED_DATA_PROPERTY
Data property that maps to the choice between theMetadataandExtendedDataelements. The possible values for this property are instances of -
ABSTRACT_FEATURE_SIMPLE_EXTENSION_GROUP_PROPERTY
Data property that maps to theAbstractFeatureSimpleExtensionGroupelement. The possible values for this property are instances ofList<String>. -
ABSTRACT_FEATURE_OBJECT_EXTENSION_GROUP_PROPERTY
Data property that maps to theAbstractFeatureObjectExtensionGroupelement. The possible values for this property are instances ofList<TLcdKML22AbstractObject>.
-
-
Constructor Details
-
TLcdKML22AbstractFeature
Creates a newTLcdKML22AbstractFeaturewith a customTLcdDataType.- Parameters:
aType- a customTLcdDataType
-
-
Method Details
-
getVisibility
Returns the value of the property that maps to thevisibilityelement.- Returns:
- the value of the
VISIBILITY_PROPERTYproperty.
-
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:ILcdTimeBoundedReturns theILcdTimeBoundsby which this object is bounded.- Specified by:
getTimeBoundsin interfaceILcdTimeBounded- Returns:
- the
ILcdTimeBoundsby which this object is bounded.
-
insertIntoCache
Description copied from interface:ILcdCacheInserts a cache Object corresponding to the given key Object.- Specified by:
insertIntoCachein 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:ILcdCacheLooks up and returns the cached Object corresponding to the given key.- Specified by:
getCachedObjectin 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:ILcdCacheLooks up and removes the cached Object corresponding to the given key.- Specified by:
removeCachedObjectin 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:ILcdCacheClears the cache.- Specified by:
clearCachein interfaceILcdCache
-
clone
Description copied from class:TLcdDataObjectReturns 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
ILcdDeepCloneableorILcdCloneablethen this interface is used to clone the value. - Otherwise, the property value is copied by reference.
- If the property value is an
- Specified by:
clonein interfaceILcdDeepCloneable- Overrides:
clonein 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 thenameelement.- Returns:
- the value of the
NAME_PROPERTYproperty.
-
setName
Sets the value of the property that maps to thenameelement.- Parameters:
aValue- the value to set for theNAME_PROPERTYproperty.
-
setVisibility
Sets the value of the property that maps to thevisibilityelement.- Parameters:
aValue- the value to set for theVISIBILITY_PROPERTYproperty.
-
getOpen
Returns the value of the property that maps to theopenelement.- Returns:
- the value of the
OPEN_PROPERTYproperty.
-
setOpen
Sets the value of the property that maps to theopenelement.- Parameters:
aValue- the value to set for theOPEN_PROPERTYproperty.
-
getAuthor
Returns the value of the property that maps to theauthorelement.- Returns:
- the value of the
AUTHOR_PROPERTYproperty.
-
setAuthor
Sets the value of the property that maps to theauthorelement.- Parameters:
aValue- the value to set for theAUTHOR_PROPERTYproperty.
-
getAtomLink
Returns the value of the property that maps to thelinkelement.- Returns:
- the value of the
ATOM_LINK_PROPERTYproperty.
-
setAtomLink
Sets the value of the property that maps to thelinkelement.- Parameters:
aValue- the value to set for theATOM_LINK_PROPERTYproperty.
-
getAddress
Returns the value of the property that maps to theaddresselement.- Returns:
- the value of the
ADDRESS_PROPERTYproperty.
-
setAddress
Sets the value of the property that maps to theaddresselement.- Parameters:
aValue- the value to set for theADDRESS_PROPERTYproperty.
-
getAddressDetails
Returns the value of the property that maps to theAddressDetailselement.This container defines the details of the address. Can define multiple addresses including tracking address history
- Returns:
- the value of the
ADDRESS_DETAILS_PROPERTYproperty.
-
setAddressDetails
Sets the value of the property that maps to theAddressDetailselement.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_PROPERTYproperty.
-
getPhoneNumber
Returns the value of the property that maps to thephoneNumberelement.- Returns:
- the value of the
PHONE_NUMBER_PROPERTYproperty.
-
setPhoneNumber
Sets the value of the property that maps to thephoneNumberelement.- Parameters:
aValue- the value to set for thePHONE_NUMBER_PROPERTYproperty.
-
getSnippet
Returns the value of the property that maps to the choice between theSnippetandsnippetelements.The possible values for this property are instances of
TLcdKML22SnippetString
- Returns:
- the value of the
SNIPPET_PROPERTYproperty.
-
setSnippet
Sets the value of the property that maps to the choice between theSnippetandsnippetelements.The possible values for this property are instances of
TLcdKML22SnippetString
- Parameters:
aValue- the value to set for theSNIPPET_PROPERTYproperty.
-
getDescription
Returns the value of the property that maps to thedescriptionelement.- Returns:
- the value of the
DESCRIPTION_PROPERTYproperty.
-
setDescription
Sets the value of the property that maps to thedescriptionelement.- Parameters:
aValue- the value to set for theDESCRIPTION_PROPERTYproperty.
-
getAbstractViewGroup
Returns the value of the property that maps to theAbstractViewGroupelement.- Returns:
- the value of the
ABSTRACT_VIEW_GROUP_PROPERTYproperty.
-
setAbstractViewGroup
Sets the value of the property that maps to theAbstractViewGroupelement.- Parameters:
aValue- the value to set for theABSTRACT_VIEW_GROUP_PROPERTYproperty.
-
getAbstractTimePrimitiveGroup
Returns the value of the property that maps to theAbstractTimePrimitiveGroupelement.- Returns:
- the value of the
ABSTRACT_TIME_PRIMITIVE_GROUP_PROPERTYproperty.
-
setAbstractTimePrimitiveGroup
Sets the value of the property that maps to theAbstractTimePrimitiveGroupelement.- Parameters:
aValue- the value to set for theABSTRACT_TIME_PRIMITIVE_GROUP_PROPERTYproperty.
-
getStyleUrl
Returns the value of the property that maps to thestyleUrlelement.- Returns:
- the value of the
STYLE_URL_PROPERTYproperty.
-
setStyleUrl
Sets the value of the property that maps to thestyleUrlelement.- Parameters:
aValue- the value to set for theSTYLE_URL_PROPERTYproperty.
-
getAbstractStyleSelectorGroup
Returns the value of the property that maps to theAbstractStyleSelectorGroupelement.- Returns:
- the value of the
ABSTRACT_STYLE_SELECTOR_GROUP_PROPERTYproperty.
-
getRegion
Returns the value of the property that maps to theRegionelement.- Returns:
- the value of the
REGION_PROPERTYproperty.
-
setRegion
Sets the value of the property that maps to theRegionelement.- Parameters:
aValue- the value to set for theREGION_PROPERTYproperty.
-
getExtendedData
Returns the value of the property that maps to the choice between theMetadataandExtendedDataelements.The possible values for this property are instances of
- Returns:
- the value of the
EXTENDED_DATA_PROPERTYproperty.
-
setExtendedData
Sets the value of the property that maps to the choice between theMetadataandExtendedDataelements.The possible values for this property are instances of
- Parameters:
aValue- the value to set for theEXTENDED_DATA_PROPERTYproperty.
-