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_LANGUAGEINCLUDE_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, getResourceMetadata, getText, isBaseEmpty, setContained, setId, setId, setId, setLanguage, setResourceMetadata, setText, toStringaddUndeclaredExtension, addUndeclaredExtension, addUndeclaredExtension, getAllUndeclaredExtensions, getUndeclaredExtensions, getUndeclaredExtensionsByUrl, getUndeclaredModifierExtensionsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetContained, getId, getLanguage, getResourceMetadata, getText, setId, setLanguage, setResourceMetadatagetIdElement, setId, setIdpublic static final String SP_CONTENTTYPE
Description:
Type: token
Path: Binary.contentType
public static final TokenClientParam CONTENTTYPE
Description:
Type: token
Path: Binary.contentType
public Binary()
public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType)
getAllPopulatedChildElementsOfType in interface ICompositeElementpublic 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 IBaseBinarypublic 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 IBaseBinarypublic Base64BinaryDt getContentElement()
null.
Definition: The actual content, base64 encoded
public byte[] getContent()
null.
Definition: The actual content, base64 encoded
getContent in interface IBaseBinarypublic Binary setContent(Base64BinaryDt theValue)
Definition: The actual content, base64 encoded
public Binary setContent(byte[] theBytes)
Definition: The actual content, base64 encoded
setContent in interface IBaseBinarypublic String getResourceName()
getResourceName in interface IResourcepublic FhirVersionEnum getStructureFhirVersionEnum()
getStructureFhirVersionEnum in interface IResourcegetStructureFhirVersionEnum in interface IBaseResourcepublic String getContentAsBase64()
getContentAsBase64 in interface IBaseBinarypublic Binary setContentAsBase64(String theContent)
setContentAsBase64 in interface IBaseBinaryCopyright © 2014–2016 University Health Network. All rights reserved.