public abstract class BaseResourceReferenceDt extends BaseIdentifiableElement implements IBaseDatatype, IBaseReference
Constructor and Description |
---|
BaseResourceReferenceDt()
Constructor
|
BaseResourceReferenceDt(IResource theResource)
Constructor
|
Modifier and Type | Method and Description |
---|---|
abstract StringDt |
getDisplayElement() |
abstract IdDt |
getReference() |
IBaseResource |
getResource()
Gets the actual loaded and parsed resource instance, if it is already present.
|
protected boolean |
isBaseEmpty()
Intended to be called by extending classes
IBase.isEmpty() implementations, returns true if all
content in this superclass instance is empty per the semantics of IBase.isEmpty() . |
IBaseResource |
loadResource(IRestfulClient theClient)
Returns the referenced resource, fetching it if it has not already been loaded.
|
abstract BaseResourceReferenceDt |
setReference(IdDt theReference) |
BaseResourceReferenceDt |
setReference(IIdType theReference) |
void |
setResource(IBaseResource theResource) |
String |
toString() |
getElementSpecificId, getId, setElementSpecificId, setId, setId
addUndeclaredExtension, addUndeclaredExtension, addUndeclaredExtension, getAllUndeclaredExtensions, getFormatCommentsPost, getFormatCommentsPre, getUndeclaredExtensions, getUndeclaredExtensionsByUrl, getUndeclaredModifierExtensions, hasFormatComment
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getReferenceElement, setDisplay, setReference
getFormatCommentsPost, getFormatCommentsPre, hasFormatComment, isEmpty
public BaseResourceReferenceDt()
public BaseResourceReferenceDt(IResource theResource)
theResource
- The loaded resource itselfpublic abstract StringDt getDisplayElement()
getDisplayElement
in interface IBaseReference
public abstract IdDt getReference()
public IBaseResource getResource()
loadResource(IRestfulClient)
or it was
contained within the resource containing this resource.
See the FHIR specification section on contained resources for more
information.getResource
in interface IBaseReference
loadResource(IRestfulClient)
protected boolean isBaseEmpty()
BaseElement
IBase.isEmpty()
implementations, returns true
if all
content in this superclass instance is empty per the semantics of IBase.isEmpty()
.isBaseEmpty
in class BaseElement
public IBaseResource loadResource(IRestfulClient theClient)
public abstract BaseResourceReferenceDt setReference(IdDt theReference)
public BaseResourceReferenceDt setReference(IIdType theReference)
public void setResource(IBaseResource theResource)
setResource
in interface IBaseReference
Copyright © 2014–2019 University Health Network. All rights reserved.