public class PeriodDt extends BaseIdentifiableElement implements ICompositeDatatype
Definition: A time period defined by a start and end date and optionally time.
Requirements:
| Constructor and Description |
|---|
PeriodDt()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
<T extends IElement> |
getAllPopulatedChildElementsOfType(Class<T> theType)
Returns a list containing all child elements matching a given type
|
DateTimeDt |
getEnd()
Gets the value(s) for end (End time with inclusive boundary, if not ongoing).
|
DateTimeDt |
getStart()
Gets the value(s) for start (Starting time with inclusive boundary).
|
boolean |
isEmpty() |
PeriodDt |
setEnd(Date theDate,
TemporalPrecisionEnum thePrecision)
Sets the value for end (End time with inclusive boundary, if not ongoing)
|
PeriodDt |
setEnd(DateTimeDt theValue)
Sets the value(s) for end (End time with inclusive boundary, if not ongoing)
|
PeriodDt |
setEndWithSecondsPrecision(Date theDate)
Sets the value for end (End time with inclusive boundary, if not ongoing)
|
PeriodDt |
setStart(Date theDate,
TemporalPrecisionEnum thePrecision)
Sets the value for start (Starting time with inclusive boundary)
|
PeriodDt |
setStart(DateTimeDt theValue)
Sets the value(s) for start (Starting time with inclusive boundary)
|
PeriodDt |
setStartWithSecondsPrecision(Date theDate)
Sets the value for start (Starting time with inclusive boundary)
|
getElementSpecificId, getId, setElementSpecificId, setId, setIdaddUndeclaredExtension, addUndeclaredExtension, addUndeclaredExtension, getAllUndeclaredExtensions, getUndeclaredExtensions, getUndeclaredExtensionsByUrl, getUndeclaredModifierExtensions, isBaseEmptypublic <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType)
ICompositeElementgetAllPopulatedChildElementsOfType in interface ICompositeElementtheType - The type to match. If set to null, all child elements will be returnedpublic DateTimeDt getStart()
null.
Definition: The start of the period. The boundary is inclusive.
public PeriodDt setStart(DateTimeDt theValue)
Definition: The start of the period. The boundary is inclusive.
public PeriodDt setStartWithSecondsPrecision(Date theDate)
Definition: The start of the period. The boundary is inclusive.
public PeriodDt setStart(Date theDate, TemporalPrecisionEnum thePrecision)
Definition: The start of the period. The boundary is inclusive.
public DateTimeDt getEnd()
null.
Definition: The end of the period. If the end of the period is missing, it means that the period is ongoing
public PeriodDt setEnd(DateTimeDt theValue)
Definition: The end of the period. If the end of the period is missing, it means that the period is ongoing
public PeriodDt setEndWithSecondsPrecision(Date theDate)
Definition: The end of the period. If the end of the period is missing, it means that the period is ongoing
public PeriodDt setEnd(Date theDate, TemporalPrecisionEnum thePrecision)
Definition: The end of the period. If the end of the period is missing, it means that the period is ongoing
Copyright © 2014 University Health Network. All rights reserved.