Package com.luciad.ogc.csw.model
Class TLcdCSWTemporalExtent
java.lang.Object
com.luciad.datamodel.TLcdDataObject
com.luciad.ogc.csw.model.TLcdCSWTemporalExtent
- All Implemented Interfaces:
ILcdDataObject
,ILcdTimeBounds
,ILcdCloneable
,ILcdDeepCloneable
,Cloneable
Specifies the temporal extent of the data item that a metadata record describes.
Omitting begin/end implies infinity in that direction.
- Since:
- 2017.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.luciad.shape.ILcdTimeBounds
ILcdTimeBounds.Boundedness
-
Constructor Summary
ConstructorDescriptionTLcdCSWTemporalExtent
(Date aBegin, Date aEnd) Creates a new temporal extent using the given dates.TLcdCSWTemporalExtent
(XMLGregorianCalendar aBegin, XMLGregorianCalendar aEnd) Creates a new temporal extent using the given calendars. -
Method Summary
-
Constructor Details
-
TLcdCSWTemporalExtent
public TLcdCSWTemporalExtent() -
TLcdCSWTemporalExtent
Creates a new temporal extent using the given dates.- Parameters:
aBegin
- the begin time, or null to indicate the value is unboundedaEnd
- the end time, or null to indicate the value is unbounded
-
TLcdCSWTemporalExtent
Creates a new temporal extent using the given calendars.- Parameters:
aBegin
- the begin time, or null to indicate the value is unboundedaEnd
- the end time, or null to indicate the value is unbounded
-
-
Method Details
-
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 begin time, or null if the begin is not bounded.
-
getEnd
- Returns:
- the end time, or null if the end is not bounded.
-