public class TLcdKML22TimeStamp extends TLcdKML22AbstractTimePrimitive implements ILcdEditableTimeBounds
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.
ILcdTimeBounds.Boundedness
Modifier and Type | Field and Description |
---|---|
static TLcdDataProperty |
TIME_STAMP_OBJECT_EXTENSION_GROUP_PROPERTY
Data property that maps to the
TimeStampObjectExtensionGroup element. |
static TLcdDataProperty |
TIME_STAMP_SIMPLE_EXTENSION_GROUP_PROPERTY
Data property that maps to the
TimeStampSimpleExtensionGroup element. |
static TLcdDataProperty |
WHEN_PROPERTY
Data property that maps to the
when element. |
ABSTRACT_TIME_PRIMITIVE_OBJECT_EXTENSION_GROUP_PROPERTY, ABSTRACT_TIME_PRIMITIVE_SIMPLE_EXTENSION_GROUP_PROPERTY
ID_PROPERTY, OBJECT_SIMPLE_EXTENSION_GROUP_PROPERTY, TARGET_ID_PROPERTY
Constructor and Description |
---|
TLcdKML22TimeStamp(TLcdDataType aType)
Creates a new
TLcdKML22TimeStamp with a custom TLcdDataType . |
Modifier and Type | Method and Description |
---|---|
long |
getBeginTime()
Returns the begin time of this
ILcdTimeBounds . |
ILcdTimeBounds.Boundedness |
getBeginTimeBoundedness()
Returns the boundedness of the begin time.
|
long |
getEndTime()
Returns the end time of this
ILcdTimeBounds . |
ILcdTimeBounds.Boundedness |
getEndTimeBoundedness()
Returns the boundedness of the end time.
|
XMLGregorianCalendar |
getWhen()
Returns the value of the property that maps to the
when element. |
void |
setBeginTime(long l)
Adjusts the begin time of this
ILcdTimeBounds . |
void |
setBeginTimeBoundedness(ILcdTimeBounds.Boundedness aBoundedness)
Adjusts the boundedness of the begin time.
|
void |
setEndTime(long l)
Adjusts the end time of this
ILcdTimeBounds . |
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 the
when element. |
getId, getTargetId, setId, setTargetId
clone, clone, getDataType, getValue, getValue, hasValue, hasValue, setValue, toString
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
setToIncludeTime, setToUnion
public static final TLcdDataProperty WHEN_PROPERTY
when
element.
The possible values for this property are instances of
XMLGregorianCalendar
public static final TLcdDataProperty TIME_STAMP_SIMPLE_EXTENSION_GROUP_PROPERTY
TimeStampSimpleExtensionGroup
element.
The possible values for this property are instances of List<String>
.public static final TLcdDataProperty TIME_STAMP_OBJECT_EXTENSION_GROUP_PROPERTY
TimeStampObjectExtensionGroup
element.
The possible values for this property are instances of List<TLcdKML22AbstractObject>
.public TLcdKML22TimeStamp(TLcdDataType aType)
TLcdKML22TimeStamp
with a custom TLcdDataType
.aType
- a custom TLcdDataType
public void setValue(TLcdDataProperty aProperty, Object aValue)
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 an IllegalArgumentException
.setValue
in interface ILcdDataObject
setValue
in class TLcdDataObject
aProperty
- the property for which the value is to be setaValue
- the value to setTLcdDataType.getProperty(String)
public void setBeginTimeBoundedness(ILcdTimeBounds.Boundedness aBoundedness)
ILcdEditableTimeBounds
setBeginTimeBoundedness
in interface ILcdEditableTimeBounds
aBoundedness
- the new boundedness of the begin time.ILcdTimeBounds.getBeginTimeBoundedness()
public void setEndTimeBoundedness(ILcdTimeBounds.Boundedness aBoundedness)
ILcdEditableTimeBounds
setEndTimeBoundedness
in interface ILcdEditableTimeBounds
aBoundedness
- the new boundedness of the end time.ILcdTimeBounds.getEndTimeBoundedness()
public void setBeginTime(long l)
ILcdEditableTimeBounds
ILcdTimeBounds
. The long value
is defined as in Date.getTime()
.setBeginTime
in interface ILcdEditableTimeBounds
l
- the new begin time of this ILcdTimeBounds
.ILcdTimeBounds.getBeginTime()
public void setEndTime(long l)
ILcdEditableTimeBounds
ILcdTimeBounds
. The long value is
defined as in Date.getTime()
.setEndTime
in interface ILcdEditableTimeBounds
l
- the new end time of this ILcdTimeBounds
.ILcdTimeBounds.getEndTime()
public ILcdTimeBounds.Boundedness getBeginTimeBoundedness()
ILcdTimeBounds
getBeginTimeBoundedness
in interface ILcdTimeBounds
public ILcdTimeBounds.Boundedness getEndTimeBoundedness()
ILcdTimeBounds
getEndTimeBoundedness
in interface ILcdTimeBounds
public long getBeginTime()
ILcdTimeBounds
ILcdTimeBounds
. The long value
is defined as in Date.getTime()
.
This method should only be called if the corresponding boundedness is ILcdTimeBounds.Boundedness.BOUNDED
. Otherwise, the return value of this method is undefined.getBeginTime
in interface ILcdTimeBounds
ILcdTimeBounds
.public long getEndTime()
ILcdTimeBounds
ILcdTimeBounds
. The long value is
defined as in Date.getTime()
.
This method should only be called if the corresponding boundedness is ILcdTimeBounds.Boundedness.BOUNDED
. Otherwise, the return value of this method is undefined.getEndTime
in interface ILcdTimeBounds
ILcdTimeBounds
.public XMLGregorianCalendar getWhen()
when
element.
The possible values for this property are instances of
XMLGregorianCalendar
WHEN_PROPERTY
property.public void setWhen(XMLGregorianCalendar aValue)
when
element.
The possible values for this property are instances of
XMLGregorianCalendar
aValue
- the value to set for the WHEN_PROPERTY
property.