public class Binary extends BaseResource implements IResource, IBaseBinary
Definition: A binary resource can contain any content, whether text, image, pdf, zip archive, etc.
Requirements: There are situations where it is useful or required to handle pure binary content using the same framework as other resources
Profile Definition: http://hl7.org/fhir/profiles/Binary
Modifier and Type | Field and Description |
---|---|
static TokenClientParam |
CONTENTTYPE
Fluent Client search parameter constant for contenttype
|
static String |
SP_CONTENTTYPE
Search parameter constant for contenttype
|
RES_ID, SP_RES_ID, SP_RES_LANGUAGE
INCLUDE_ALL, WILDCARD_ALL_SET
Constructor and Description |
---|
Binary() |
Modifier and Type | Method and Description |
---|---|
<T extends IElement> |
getAllPopulatedChildElementsOfType(Class<T> theType) |
byte[] |
getContent()
Gets the value(s) for content ().
|
String |
getContentAsBase64() |
Base64BinaryDt |
getContentElement()
Gets the value(s) for content ().
|
String |
getContentType()
Gets the value(s) for contentType ().
|
CodeDt |
getContentTypeElement()
Gets the value(s) for contentType ().
|
String |
getResourceName() |
FhirVersionEnum |
getStructureFhirVersionEnum() |
boolean |
isEmpty() |
Binary |
setContent(Base64BinaryDt theValue)
Sets the value(s) for content ()
|
Binary |
setContent(byte[] theBytes)
Sets the value for content ()
|
Binary |
setContentAsBase64(String theContent) |
Binary |
setContentType(CodeDt theValue)
Sets the value(s) for contentType ()
|
Binary |
setContentType(String theCode)
Sets the value for contentType ()
|
getContained, getId, getIdElement, getLanguage, getMeta, getResourceMetadata, getText, isBaseEmpty, setContained, setId, setId, setId, setLanguage, setResourceMetadata, setText, toString
addUndeclaredExtension, addUndeclaredExtension, addUndeclaredExtension, getAllUndeclaredExtensions, getFormatCommentsPost, getFormatCommentsPre, getUndeclaredExtensions, getUndeclaredExtensionsByUrl, getUndeclaredModifierExtensions, hasFormatComment
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getContained, getId, getLanguage, getMeta, getResourceMetadata, getText, setId, setLanguage, setResourceMetadata
getIdElement, setId, setId
public static final String SP_CONTENTTYPE
Description:
Type: token
Path: Binary.contentType
public static final TokenClientParam CONTENTTYPE
Description:
Type: token
Path: Binary.contentType
public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType)
getAllPopulatedChildElementsOfType
in interface ICompositeElement
public CodeDt getContentTypeElement()
null
.
Definition: MimeType of the binary content represented as a standard MimeType (BCP 13)
public String getContentType()
null
.
Definition: MimeType of the binary content represented as a standard MimeType (BCP 13)
getContentType
in interface IBaseBinary
public Binary setContentType(CodeDt theValue)
Definition: MimeType of the binary content represented as a standard MimeType (BCP 13)
public Binary setContentType(String theCode)
Definition: MimeType of the binary content represented as a standard MimeType (BCP 13)
setContentType
in interface IBaseBinary
public Base64BinaryDt getContentElement()
null
.
Definition: The actual content, base64 encoded
public byte[] getContent()
null
.
Definition: The actual content, base64 encoded
getContent
in interface IBaseBinary
public Binary setContent(Base64BinaryDt theValue)
Definition: The actual content, base64 encoded
public Binary setContent(byte[] theBytes)
Definition: The actual content, base64 encoded
setContent
in interface IBaseBinary
public String getResourceName()
getResourceName
in interface IResource
public FhirVersionEnum getStructureFhirVersionEnum()
getStructureFhirVersionEnum
in interface IResource
getStructureFhirVersionEnum
in interface IBaseResource
public String getContentAsBase64()
getContentAsBase64
in interface IBaseBinary
public Binary setContentAsBase64(String theContent)
setContentAsBase64
in interface IBaseBinary
Copyright © 2014–2019 University Health Network. All rights reserved.