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) |
Date |
getEnd()
Gets the value(s) for end ().
|
DateTimeDt |
getEndElement()
Gets the value(s) for end ().
|
Date |
getStart()
Gets the value(s) for start ().
|
DateTimeDt |
getStartElement()
Gets the value(s) for start ().
|
boolean |
isEmpty() |
PeriodDt |
setEnd(Date theDate,
TemporalPrecisionEnum thePrecision)
Sets the value for end ()
|
PeriodDt |
setEnd(DateTimeDt theValue)
Sets the value(s) for end ()
|
PeriodDt |
setEndWithSecondsPrecision(Date theDate)
Sets the value for end ()
|
PeriodDt |
setStart(Date theDate,
TemporalPrecisionEnum thePrecision)
Sets the value for start ()
|
PeriodDt |
setStart(DateTimeDt theValue)
Sets the value(s) for start ()
|
PeriodDt |
setStartWithSecondsPrecision(Date theDate)
Sets the value for start ()
|
getElementSpecificId, getId, setElementSpecificId, setId, setIdaddUndeclaredExtension, addUndeclaredExtension, addUndeclaredExtension, getAllUndeclaredExtensions, getUndeclaredExtensions, getUndeclaredExtensionsByUrl, getUndeclaredModifierExtensions, isBaseEmptypublic PeriodDt()
public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType)
getAllPopulatedChildElementsOfType in interface ICompositeElementpublic DateTimeDt getStartElement()
null.
Definition: The start of the period. The boundary is inclusive.
public Date 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 setStart(Date theDate, TemporalPrecisionEnum thePrecision)
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 DateTimeDt getEndElement()
null.
Definition: The end of the period. If the end of the period is missing, it means that the period is ongoing. The start may be in the past, and the end date in the future, which means that period is expected/planned to end at that time
public Date getEnd()
null.
Definition: The end of the period. If the end of the period is missing, it means that the period is ongoing. The start may be in the past, and the end date in the future, which means that period is expected/planned to end at that time
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. The start may be in the past, and the end date in the future, which means that period is expected/planned to end at that time
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. The start may be in the past, and the end date in the future, which means that period is expected/planned to end at that time
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. The start may be in the past, and the end date in the future, which means that period is expected/planned to end at that time
Copyright © 2014–2016 University Health Network. All rights reserved.