Class DateTimeRange
java.lang.Object
org.projecthusky.communication.xd.storedquery.DateTimeRange
This class represents a date and time range
-
Constructor Summary
ConstructorDescriptionDateTimeRange
(DateTimeRangeAttributes name, ZonedDateTime from, ZonedDateTime to) Constructs a new DateTimeRange -
Method Summary
Modifier and TypeMethodDescriptiongetFrom()
Gets the point in time where this range startsGets the point in time where this range startsorg.openehealth.ipf.commons.ihe.xds.core.metadata.TimeRange
Gets the wrapped OHT DateTimeRange ObjectgetTo()
Gets the point in time where this range endsGets the point in time where this range endsvoid
setFrom
(ZonedDateTime from, org.openehealth.ipf.commons.ihe.xds.core.metadata.Timestamp.Precision precision) Sets the point in time where this range startsvoid
setTo
(ZonedDateTime to, org.openehealth.ipf.commons.ihe.xds.core.metadata.Timestamp.Precision precision) Sets the point in time where this range ends
-
Constructor Details
-
DateTimeRange
Constructs a new DateTimeRange- Parameters:
name
- The XDS metadata attribute to which this DateTimeRange belongs to (CreationTime, ServiceStartTime, ServiceStopTime)from
- The point in time where this range startsto
- The point in time where this range ends
-
-
Method Details
-
getFrom
Gets the point in time where this range starts- Returns:
- the starting point
-
getFromAsUsFormattedString
Gets the point in time where this range starts- Returns:
- the start point
-
getOhtDateTimeRange
public org.openehealth.ipf.commons.ihe.xds.core.metadata.TimeRange getOhtDateTimeRange()Gets the wrapped OHT DateTimeRange Object- Returns:
- the DateTimeRange
-
getTo
Gets the point in time where this range ends- Returns:
- the end point
-
getToAsUsFormattedString
Gets the point in time where this range ends- Returns:
- the end point
-
setFrom
public void setFrom(ZonedDateTime from, org.openehealth.ipf.commons.ihe.xds.core.metadata.Timestamp.Precision precision) Sets the point in time where this range starts- Parameters:
from
- the starting point
-
setTo
public void setTo(ZonedDateTime to, org.openehealth.ipf.commons.ihe.xds.core.metadata.Timestamp.Precision precision) Sets the point in time where this range ends- Parameters:
to
- the end point
-
getDateTimeRangeAttribute
-