public class TLcdCSWTemporalExtent extends TLcdDataObject implements ILcdTimeBounds
ILcdTimeBounds.Boundedness
Constructor and Description |
---|
TLcdCSWTemporalExtent() |
TLcdCSWTemporalExtent(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.
|
Modifier and Type | Method and Description |
---|---|
XMLGregorianCalendar |
getBegin() |
long |
getBeginTime()
Returns the begin time of this
ILcdTimeBounds . |
ILcdTimeBounds.Boundedness |
getBeginTimeBoundedness()
Returns the boundedness of the begin time.
|
XMLGregorianCalendar |
getEnd() |
long |
getEndTime()
Returns the end time of this
ILcdTimeBounds . |
ILcdTimeBounds.Boundedness |
getEndTimeBoundedness()
Returns the boundedness of the end time.
|
public TLcdCSWTemporalExtent()
public TLcdCSWTemporalExtent(Date aBegin, Date aEnd)
aBegin
- the begin time, or null to indicate the value is unboundedaEnd
- the end time, or null to indicate the value is unboundedpublic TLcdCSWTemporalExtent(XMLGregorianCalendar aBegin, XMLGregorianCalendar aEnd)
aBegin
- the begin time, or null to indicate the value is unboundedaEnd
- the end time, or null to indicate the value is unboundedpublic 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()
public XMLGregorianCalendar getEnd()