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
FieldsModifier and TypeFieldDescriptionstatic final TLcdDataPropertyData property that maps to theTimeStampObjectExtensionGroupelement.static final TLcdDataPropertyData property that maps to theTimeStampSimpleExtensionGroupelement.static final TLcdDataPropertyData property that maps to thewhenelement.Fields inherited from class com.luciad.format.kml22.model.time.TLcdKML22AbstractTimePrimitive
ABSTRACT_TIME_PRIMITIVE_OBJECT_EXTENSION_GROUP_PROPERTY, ABSTRACT_TIME_PRIMITIVE_SIMPLE_EXTENSION_GROUP_PROPERTYFields inherited from class com.luciad.format.kml22.model.TLcdKML22AbstractObject
ID_PROPERTY, OBJECT_SIMPLE_EXTENSION_GROUP_PROPERTY, TARGET_ID_PROPERTY -
Constructor Summary
ConstructorsConstructorDescriptionTLcdKML22TimeStamp(TLcdDataType aType) Creates a newTLcdKML22TimeStampwith a customTLcdDataType. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the begin time of thisILcdTimeBounds.Returns the boundedness of the begin time.longReturns the end time of thisILcdTimeBounds.Returns the boundedness of the end time.getWhen()Returns the value of the property that maps to thewhenelement.voidsetBeginTime(long l) Adjusts the begin time of thisILcdTimeBounds.voidsetBeginTimeBoundedness(ILcdTimeBounds.Boundedness aBoundedness) Adjusts the boundedness of the begin time.voidsetEndTime(long l) Adjusts the end time of thisILcdTimeBounds.voidsetEndTimeBoundedness(ILcdTimeBounds.Boundedness aBoundedness) Adjusts the boundedness of the end time.voidsetValue(TLcdDataProperty aProperty, Object aValue) Sets the value of the given property for this data object.voidsetWhen(XMLGregorianCalendar aValue) Sets the value of the property that maps to thewhenelement.Methods inherited from class com.luciad.format.kml22.model.TLcdKML22AbstractObject
getId, getTargetId, setId, setTargetIdMethods inherited from class com.luciad.datamodel.TLcdDataObject
clone, clone, getDataType, getValue, getValue, hasValue, hasValue, setValue, toStringMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.luciad.shape.ILcdEditableTimeBounds
setToIncludeTime, setToUnion
-
Field Details
-
WHEN_PROPERTY
Data property that maps to thewhenelement. The possible values for this property are instances ofXMLGregorianCalendar
-
TIME_STAMP_SIMPLE_EXTENSION_GROUP_PROPERTY
Data property that maps to theTimeStampSimpleExtensionGroupelement. The possible values for this property are instances ofList<String>. -
TIME_STAMP_OBJECT_EXTENSION_GROUP_PROPERTY
Data property that maps to theTimeStampObjectExtensionGroupelement. The possible values for this property are instances ofList<TLcdKML22AbstractObject>.
-
-
Constructor Details
-
TLcdKML22TimeStamp
Creates a newTLcdKML22TimeStampwith a customTLcdDataType.- Parameters:
aType- a customTLcdDataType
-
-
Method Details
-
setValue
Description copied from interface:ILcdDataObjectSets 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 typeor 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:
setValuein interfaceILcdDataObject- Overrides:
setValuein classTLcdDataObject- Parameters:
aProperty- the property for which the value is to be setaValue- the value to set- See Also:
-
setBeginTimeBoundedness
Description copied from interface:ILcdEditableTimeBoundsAdjusts the boundedness of the begin time.- Specified by:
setBeginTimeBoundednessin interfaceILcdEditableTimeBounds- Parameters:
aBoundedness- the new boundedness of the begin time.- See Also:
-
setEndTimeBoundedness
Description copied from interface:ILcdEditableTimeBoundsAdjusts the boundedness of the end time.- Specified by:
setEndTimeBoundednessin interfaceILcdEditableTimeBounds- Parameters:
aBoundedness- the new boundedness of the end time.- See Also:
-
setBeginTime
public void setBeginTime(long l) Description copied from interface:ILcdEditableTimeBoundsAdjusts the begin time of thisILcdTimeBounds. The long value is defined as inDate.getTime().- Specified by:
setBeginTimein interfaceILcdEditableTimeBounds- Parameters:
l- the new begin time of thisILcdTimeBounds.- See Also:
-
setEndTime
public void setEndTime(long l) Description copied from interface:ILcdEditableTimeBoundsAdjusts the end time of thisILcdTimeBounds. The long value is defined as inDate.getTime().- Specified by:
setEndTimein interfaceILcdEditableTimeBounds- Parameters:
l- the new end time of thisILcdTimeBounds.- See Also:
-
getBeginTimeBoundedness
Description copied from interface:ILcdTimeBoundsReturns the boundedness of the begin time. This method can be used to check whether the begin time is undefined, bounded or unbounded.- Specified by:
getBeginTimeBoundednessin interfaceILcdTimeBounds- Returns:
- the boundedness of the begin time.
-
getEndTimeBoundedness
Description copied from interface:ILcdTimeBoundsReturns the boundedness of the end time. This method can be used to check whether the end time is undefined, bounded or unbounded.- Specified by:
getEndTimeBoundednessin interfaceILcdTimeBounds- Returns:
- the boundedness of the end time.
-
getBeginTime
public long getBeginTime()Description copied from interface:ILcdTimeBoundsReturns 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:
getBeginTimein interfaceILcdTimeBounds- Returns:
- the begin time of this
ILcdTimeBounds.
-
getEndTime
public long getEndTime()Description copied from interface:ILcdTimeBoundsReturns 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:
getEndTimein interfaceILcdTimeBounds- Returns:
- the end time of this
ILcdTimeBounds.
-
getWhen
Returns the value of the property that maps to thewhenelement.The possible values for this property are instances of
XMLGregorianCalendar
- Returns:
- the value of the
WHEN_PROPERTYproperty.
-
setWhen
Sets the value of the property that maps to thewhenelement.The possible values for this property are instances of
XMLGregorianCalendar
- Parameters:
aValue- the value to set for theWHEN_PROPERTYproperty.
-