public class ExtensionDt extends BaseIdentifiableElement implements ICompositeDatatype, IBaseExtension<ExtensionDt,IDatatype>
| Constructor and Description |
|---|
ExtensionDt() |
ExtensionDt(boolean theIsModifier) |
ExtensionDt(boolean theIsModifier,
String theUrl) |
ExtensionDt(boolean theIsModifier,
String theUrl,
IBaseDatatype theValue) |
| Modifier and Type | Method and Description |
|---|---|
<T extends IElement> |
getAllPopulatedChildElementsOfType(Class<T> theType)
Deprecated.
|
List<ExtensionDt> |
getExtension() |
String |
getUrl()
Returns the URL for this extension.
|
String |
getUrlAsString()
Retained for backward compatibility
|
IBaseDatatype |
getValue()
Returns the value of this extension, if one exists.
|
IPrimitiveDatatype<?> |
getValueAsPrimitive()
Returns the value of this extension, casted to a primitive datatype.
|
boolean |
isEmpty() |
boolean |
isModifier() |
void |
setModifier(boolean theModifier) |
ExtensionDt |
setUrl(String theUrl) |
ExtensionDt |
setUrl(StringDt theUrl) |
ExtensionDt |
setValue(IBaseDatatype theValue) |
String |
toString() |
getElementSpecificId, getId, setElementSpecificId, setId, setIdaddUndeclaredExtension, addUndeclaredExtension, addUndeclaredExtension, getAllUndeclaredExtensions, getFormatCommentsPost, getFormatCommentsPre, getUndeclaredExtensions, getUndeclaredExtensionsByUrl, getUndeclaredModifierExtensions, hasFormatComment, isBaseEmptyclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfhirType, getFormatCommentsPost, getFormatCommentsPre, hasFormatCommentpublic ExtensionDt()
public ExtensionDt(boolean theIsModifier)
public ExtensionDt(boolean theIsModifier, String theUrl)
public ExtensionDt(boolean theIsModifier, String theUrl, IBaseDatatype theValue)
public String getUrl()
Note that before HAPI 0.9 this method returned a StringDt but as of
HAPI 0.9 this method returns a plain string. This was changed because it does not make sense to use a StringDt here
since the URL itself can not contain extensions and it was therefore misleading.
getUrl in interface IBaseExtension<ExtensionDt,IDatatype>public String getUrlAsString()
getUrl()public IBaseDatatype getValue()
Note that if this extension contains extensions (instead of a datatype) then this method will return null. In that case, you must use BaseElement.getUndeclaredExtensions() and
BaseElement.getUndeclaredModifierExtensions() to retrieve the child extensions.
getValue in interface IBaseExtension<ExtensionDt,IDatatype>public IPrimitiveDatatype<?> getValueAsPrimitive()
Note that if this extension contains extensions (instead of a datatype) then this method will return null. In that case, you must use BaseElement.getUndeclaredExtensions() and
BaseElement.getUndeclaredModifierExtensions() to retrieve the child extensions.
ClassCastException - If the value of this extension is not a primitive datatypepublic boolean isModifier()
public void setModifier(boolean theModifier)
public ExtensionDt setUrl(String theUrl)
setUrl in interface IBaseExtension<ExtensionDt,IDatatype>public ExtensionDt setUrl(StringDt theUrl)
public ExtensionDt setValue(IBaseDatatype theValue)
setValue in interface IBaseExtension<ExtensionDt,IDatatype>@Deprecated public <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 List<ExtensionDt> getExtension()
getExtension in interface IBaseExtension<ExtensionDt,IDatatype>Copyright © 2014–2019 University Health Network. All rights reserved.