Class TLcdKML22TimeSpan
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.TLcdKML22TimeSpan
- All Implemented Interfaces:
ILcdDataObject
,ILcdEditableTimeBounds
,ILcdTimeBounds
,ILcdCloneable
,ILcdDeepCloneable
,Cloneable
public class TLcdKML22TimeSpan
extends TLcdKML22AbstractTimePrimitive
implements ILcdEditableTimeBounds
Domain class modeling the KML TimeSpanType type.
OGC KML Specification description:
This element can be used wherever the following element is referenced: -kml:AbstractTimePrimitiveGroup Specifies an extent in time bounded by begin and end temporal values. At least one of the child elements kml:begin and kml:end shall be encoded.
- 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 thebegin
element.static final TLcdDataProperty
Data property that maps to theend
element.static final TLcdDataProperty
Data property that maps to theTimeSpanObjectExtensionGroup
element.static final TLcdDataProperty
Data property that maps to theTimeSpanSimpleExtensionGroup
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
ConstructorDescriptionTLcdKML22TimeSpan
(TLcdDataType aType) Creates a newTLcdKML22TimeSpan
with a customTLcdDataType
. -
Method Summary
Modifier and TypeMethodDescriptiongetBegin()
Returns the value of the property that maps to thebegin
element.long
Returns the begin time of thisILcdTimeBounds
.Returns the boundedness of the begin time.getEnd()
Returns the value of the property that maps to theend
element.long
Returns the end time of thisILcdTimeBounds
.Returns the boundedness of the end time.void
setBegin
(XMLGregorianCalendar aValue) Sets the value of the property that maps to thebegin
element.void
setBeginTime
(long l) Adjusts the begin time of thisILcdTimeBounds
.void
setBeginTimeBoundedness
(ILcdTimeBounds.Boundedness aBoundedness) Adjusts the boundedness of the begin time.void
setEnd
(XMLGregorianCalendar aValue) Sets the value of the property that maps to theend
element.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.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
-
BEGIN_PROPERTY
Data property that maps to thebegin
element. The possible values for this property are instances ofXMLGregorianCalendar
-
END_PROPERTY
Data property that maps to theend
element. The possible values for this property are instances ofXMLGregorianCalendar
-
TIME_SPAN_SIMPLE_EXTENSION_GROUP_PROPERTY
Data property that maps to theTimeSpanSimpleExtensionGroup
element. The possible values for this property are instances ofList<String>
. -
TIME_SPAN_OBJECT_EXTENSION_GROUP_PROPERTY
Data property that maps to theTimeSpanObjectExtensionGroup
element. The possible values for this property are instances ofList<TLcdKML22AbstractObject>
.
-
-
Constructor Details
-
TLcdKML22TimeSpan
Creates a newTLcdKML22TimeSpan
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
.
-
getBegin
Returns the value of the property that maps to thebegin
element.The possible values for this property are instances of
XMLGregorianCalendar
- Returns:
- the value of the
BEGIN_PROPERTY
property.
-
setBegin
Sets the value of the property that maps to thebegin
element.The possible values for this property are instances of
XMLGregorianCalendar
- Parameters:
aValue
- the value to set for theBEGIN_PROPERTY
property.
-
getEnd
Returns the value of the property that maps to theend
element.The possible values for this property are instances of
XMLGregorianCalendar
- Returns:
- the value of the
END_PROPERTY
property.
-
setEnd
Sets the value of the property that maps to theend
element.The possible values for this property are instances of
XMLGregorianCalendar
- Parameters:
aValue
- the value to set for theEND_PROPERTY
property.
-