Class TLcdKML22TimeStamp
java.lang.Object
com.luciad.datamodel.TLcdDataObject
com.luciad.format.kml22.model.TLcdKML22AbstractObject
com.luciad.format.kml22.model.time.TLcdKML22AbstractTimePrimitive
com.luciad.format.kml22.model.time.TLcdKML22TimeStamp
- All Implemented Interfaces:
ILcdDataObject
,ILcdEditableTimeBounds
,ILcdTimeBounds
,ILcdCloneable
,ILcdDeepCloneable
,Cloneable
public class TLcdKML22TimeStamp
extends TLcdKML22AbstractTimePrimitive
implements ILcdEditableTimeBounds
Domain class modeling the KML TimeStampType type.
OGC KML Specification description:
This element can be used wherever the following element is referenced: -kml:AbstractTimePrimitiveGroup Specifies a single moment in time within the required kml:when child element.
- Since:
- 10.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.luciad.shape.ILcdTimeBounds
ILcdTimeBounds.Boundedness
-
Field Summary
Modifier and TypeFieldDescriptionstatic final TLcdDataProperty
Data property that maps to theTimeStampObjectExtensionGroup
element.static final TLcdDataProperty
Data property that maps to theTimeStampSimpleExtensionGroup
element.static final TLcdDataProperty
Data property that maps to thewhen
element.Fields inherited from class com.luciad.format.kml22.model.time.TLcdKML22AbstractTimePrimitive
ABSTRACT_TIME_PRIMITIVE_OBJECT_EXTENSION_GROUP_PROPERTY, ABSTRACT_TIME_PRIMITIVE_SIMPLE_EXTENSION_GROUP_PROPERTY
Fields inherited from class com.luciad.format.kml22.model.TLcdKML22AbstractObject
ID_PROPERTY, OBJECT_SIMPLE_EXTENSION_GROUP_PROPERTY, TARGET_ID_PROPERTY
-
Constructor Summary
ConstructorDescriptionTLcdKML22TimeStamp
(TLcdDataType aType) Creates a newTLcdKML22TimeStamp
with a customTLcdDataType
. -
Method Summary
Modifier and TypeMethodDescriptionlong
Returns the begin time of thisILcdTimeBounds
.Returns the boundedness of the begin time.long
Returns the end time of thisILcdTimeBounds
.Returns the boundedness of the end time.getWhen()
Returns the value of the property that maps to thewhen
element.void
setBeginTime
(long l) Adjusts the begin time of thisILcdTimeBounds
.void
setBeginTimeBoundedness
(ILcdTimeBounds.Boundedness aBoundedness) Adjusts the boundedness of the begin time.void
setEndTime
(long l) Adjusts the end time of thisILcdTimeBounds
.void
setEndTimeBoundedness
(ILcdTimeBounds.Boundedness aBoundedness) Adjusts the boundedness of the end time.void
setValue
(TLcdDataProperty aProperty, Object aValue) Sets the value of the given property for this data object.void
setWhen
(XMLGregorianCalendar aValue) Sets the value of the property that maps to thewhen
element.Methods inherited from class com.luciad.format.kml22.model.TLcdKML22AbstractObject
getId, getTargetId, setId, setTargetId
Methods inherited from class com.luciad.datamodel.TLcdDataObject
clone, clone, getDataType, getValue, getValue, hasValue, hasValue, setValue, toString
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.luciad.shape.ILcdEditableTimeBounds
setToIncludeTime, setToUnion
-
Field Details
-
WHEN_PROPERTY
Data property that maps to thewhen
element. The possible values for this property are instances ofXMLGregorianCalendar
-
TIME_STAMP_SIMPLE_EXTENSION_GROUP_PROPERTY
Data property that maps to theTimeStampSimpleExtensionGroup
element. The possible values for this property are instances ofList<String>
. -
TIME_STAMP_OBJECT_EXTENSION_GROUP_PROPERTY
Data property that maps to theTimeStampObjectExtensionGroup
element. The possible values for this property are instances ofList<TLcdKML22AbstractObject>
.
-
-
Constructor Details
-
TLcdKML22TimeStamp
Creates a newTLcdKML22TimeStamp
with a customTLcdDataType
.- Parameters:
aType
- a customTLcdDataType
-
-
Method Details
-
setValue
Description copied from interface:ILcdDataObject
Sets the value of the given property for this data object. The implementation is allowed to throw an exception if the given value can't be set.
The given property must be declared in thedata object's type
or in one of its super types. In other words, getDataType().getProperties().contains( aProperty ) should always be true. Otherwise, the implementation should throw anIllegalArgumentException
.- Specified by:
setValue
in interfaceILcdDataObject
- Overrides:
setValue
in classTLcdDataObject
- Parameters:
aProperty
- the property for which the value is to be setaValue
- the value to set- See Also:
-
setBeginTimeBoundedness
Description copied from interface:ILcdEditableTimeBounds
Adjusts the boundedness of the begin time.- Specified by:
setBeginTimeBoundedness
in interfaceILcdEditableTimeBounds
- Parameters:
aBoundedness
- the new boundedness of the begin time.- See Also:
-
setEndTimeBoundedness
Description copied from interface:ILcdEditableTimeBounds
Adjusts the boundedness of the end time.- Specified by:
setEndTimeBoundedness
in interfaceILcdEditableTimeBounds
- Parameters:
aBoundedness
- the new boundedness of the end time.- See Also:
-
setBeginTime
public void setBeginTime(long l) Description copied from interface:ILcdEditableTimeBounds
Adjusts the begin time of thisILcdTimeBounds
. The long value is defined as inDate.getTime()
.- Specified by:
setBeginTime
in interfaceILcdEditableTimeBounds
- Parameters:
l
- the new begin time of thisILcdTimeBounds
.- See Also:
-
setEndTime
public void setEndTime(long l) Description copied from interface:ILcdEditableTimeBounds
Adjusts the end time of thisILcdTimeBounds
. The long value is defined as inDate.getTime()
.- Specified by:
setEndTime
in interfaceILcdEditableTimeBounds
- Parameters:
l
- the new end time of thisILcdTimeBounds
.- See Also:
-
getBeginTimeBoundedness
Description copied from interface:ILcdTimeBounds
Returns the boundedness of the begin time. This method can be used to check whether the begin time is undefined, bounded or unbounded.- Specified by:
getBeginTimeBoundedness
in interfaceILcdTimeBounds
- Returns:
- the boundedness of the begin time.
-
getEndTimeBoundedness
Description copied from interface:ILcdTimeBounds
Returns the boundedness of the end time. This method can be used to check whether the end time is undefined, bounded or unbounded.- Specified by:
getEndTimeBoundedness
in interfaceILcdTimeBounds
- Returns:
- the boundedness of the end time.
-
getBeginTime
public long getBeginTime()Description copied from interface:ILcdTimeBounds
Returns the begin time of thisILcdTimeBounds
. The long value is defined as inDate.getTime()
. This method should only be called if the corresponding boundedness isILcdTimeBounds.Boundedness.BOUNDED
. Otherwise, the return value of this method is undefined.- Specified by:
getBeginTime
in interfaceILcdTimeBounds
- Returns:
- the begin time of this
ILcdTimeBounds
.
-
getEndTime
public long getEndTime()Description copied from interface:ILcdTimeBounds
Returns the end time of thisILcdTimeBounds
. The long value is defined as inDate.getTime()
. This method should only be called if the corresponding boundedness isILcdTimeBounds.Boundedness.BOUNDED
. Otherwise, the return value of this method is undefined.- Specified by:
getEndTime
in interfaceILcdTimeBounds
- Returns:
- the end time of this
ILcdTimeBounds
.
-
getWhen
Returns the value of the property that maps to thewhen
element.The possible values for this property are instances of
XMLGregorianCalendar
- Returns:
- the value of the
WHEN_PROPERTY
property.
-
setWhen
Sets the value of the property that maps to thewhen
element.The possible values for this property are instances of
XMLGregorianCalendar
- Parameters:
aValue
- the value to set for theWHEN_PROPERTY
property.
-