public class TLcdKML22TimeSpan extends TLcdKML22AbstractTimePrimitive implements ILcdEditableTimeBounds
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.
ILcdTimeBounds.Boundedness
Modifier and Type | Field and Description |
---|---|
static TLcdDataProperty |
BEGIN_PROPERTY
Data property that maps to the
begin element. |
static TLcdDataProperty |
END_PROPERTY
Data property that maps to the
end element. |
static TLcdDataProperty |
TIME_SPAN_OBJECT_EXTENSION_GROUP_PROPERTY
Data property that maps to the
TimeSpanObjectExtensionGroup element. |
static TLcdDataProperty |
TIME_SPAN_SIMPLE_EXTENSION_GROUP_PROPERTY
Data property that maps to the
TimeSpanSimpleExtensionGroup 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 |
---|
TLcdKML22TimeSpan(TLcdDataType aType)
Creates a new
TLcdKML22TimeSpan with a custom TLcdDataType . |
Modifier and Type | Method and Description |
---|---|
XMLGregorianCalendar |
getBegin()
Returns the value of the property that maps to the
begin element. |
long |
getBeginTime()
Returns the begin time of this
ILcdTimeBounds . |
ILcdTimeBounds.Boundedness |
getBeginTimeBoundedness()
Returns the boundedness of the begin time.
|
XMLGregorianCalendar |
getEnd()
Returns the value of the property that maps to the
end element. |
long |
getEndTime()
Returns the end time of this
ILcdTimeBounds . |
ILcdTimeBounds.Boundedness |
getEndTimeBoundedness()
Returns the boundedness of the end time.
|
void |
setBegin(XMLGregorianCalendar aValue)
Sets the value of the property that maps to the
begin 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 |
setEnd(XMLGregorianCalendar aValue)
Sets the value of the property that maps to the
end element. |
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.
|
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 BEGIN_PROPERTY
begin
element.
The possible values for this property are instances of
XMLGregorianCalendar
public static final TLcdDataProperty END_PROPERTY
end
element.
The possible values for this property are instances of
XMLGregorianCalendar
public static final TLcdDataProperty TIME_SPAN_SIMPLE_EXTENSION_GROUP_PROPERTY
TimeSpanSimpleExtensionGroup
element.
The possible values for this property are instances of List<String>
.public static final TLcdDataProperty TIME_SPAN_OBJECT_EXTENSION_GROUP_PROPERTY
TimeSpanObjectExtensionGroup
element.
The possible values for this property are instances of List<TLcdKML22AbstractObject>
.public TLcdKML22TimeSpan(TLcdDataType aType)
TLcdKML22TimeSpan
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 getBegin()
begin
element.
The possible values for this property are instances of
XMLGregorianCalendar
BEGIN_PROPERTY
property.public void setBegin(XMLGregorianCalendar aValue)
begin
element.
The possible values for this property are instances of
XMLGregorianCalendar
aValue
- the value to set for the BEGIN_PROPERTY
property.public XMLGregorianCalendar getEnd()
end
element.
The possible values for this property are instances of
XMLGregorianCalendar
END_PROPERTY
property.public void setEnd(XMLGregorianCalendar aValue)
end
element.
The possible values for this property are instances of
XMLGregorianCalendar
aValue
- the value to set for the END_PROPERTY
property.