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
FieldsModifier and TypeFieldDescriptionstatic final TLcdDataPropertyData property that maps to thebeginelement.static final TLcdDataPropertyData property that maps to theendelement.static final TLcdDataPropertyData property that maps to theTimeSpanObjectExtensionGroupelement.static final TLcdDataPropertyData property that maps to theTimeSpanSimpleExtensionGroupelement.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
ConstructorsConstructorDescriptionTLcdKML22TimeSpan(TLcdDataType aType) Creates a newTLcdKML22TimeSpanwith a customTLcdDataType. -
Method Summary
Modifier and TypeMethodDescriptiongetBegin()Returns the value of the property that maps to thebeginelement.longReturns the begin time of thisILcdTimeBounds.Returns the boundedness of the begin time.getEnd()Returns the value of the property that maps to theendelement.longReturns the end time of thisILcdTimeBounds.Returns the boundedness of the end time.voidsetBegin(XMLGregorianCalendar aValue) Sets the value of the property that maps to thebeginelement.voidsetBeginTime(long l) Adjusts the begin time of thisILcdTimeBounds.voidsetBeginTimeBoundedness(ILcdTimeBounds.Boundedness aBoundedness) Adjusts the boundedness of the begin time.voidsetEnd(XMLGregorianCalendar aValue) Sets the value of the property that maps to theendelement.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.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
-
BEGIN_PROPERTY
Data property that maps to thebeginelement. The possible values for this property are instances ofXMLGregorianCalendar
-
END_PROPERTY
Data property that maps to theendelement. The possible values for this property are instances ofXMLGregorianCalendar
-
TIME_SPAN_SIMPLE_EXTENSION_GROUP_PROPERTY
Data property that maps to theTimeSpanSimpleExtensionGroupelement. The possible values for this property are instances ofList<String>. -
TIME_SPAN_OBJECT_EXTENSION_GROUP_PROPERTY
Data property that maps to theTimeSpanObjectExtensionGroupelement. The possible values for this property are instances ofList<TLcdKML22AbstractObject>.
-
-
Constructor Details
-
TLcdKML22TimeSpan
Creates a newTLcdKML22TimeSpanwith 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.
-
getBegin
Returns the value of the property that maps to thebeginelement.The possible values for this property are instances of
XMLGregorianCalendar
- Returns:
- the value of the
BEGIN_PROPERTYproperty.
-
setBegin
Sets the value of the property that maps to thebeginelement.The possible values for this property are instances of
XMLGregorianCalendar
- Parameters:
aValue- the value to set for theBEGIN_PROPERTYproperty.
-
getEnd
Returns the value of the property that maps to theendelement.The possible values for this property are instances of
XMLGregorianCalendar
- Returns:
- the value of the
END_PROPERTYproperty.
-
setEnd
Sets the value of the property that maps to theendelement.The possible values for this property are instances of
XMLGregorianCalendar
- Parameters:
aValue- the value to set for theEND_PROPERTYproperty.
-