Class Binary
- All Implemented Interfaces:
ca.uhn.fhir.model.api.ICompositeElement
,ca.uhn.fhir.model.api.IElement
,ca.uhn.fhir.model.api.IResource
,ca.uhn.fhir.model.api.ISupportsUndeclaredExtensions
,Serializable
,org.hl7.fhir.instance.model.api.IBase
,org.hl7.fhir.instance.model.api.IBaseBinary
,org.hl7.fhir.instance.model.api.IBaseResource
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
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final ca.uhn.fhir.rest.gclient.TokenClientParam
Fluent Client search parameter constant for contenttypestatic final String
Search parameter constant for contenttypeFields inherited from class ca.uhn.fhir.model.dstu2.resource.BaseResource
RES_ID, SP_RES_ID
Fields inherited from interface org.hl7.fhir.instance.model.api.IBaseResource
INCLUDE_ALL, WILDCARD_ALL_SET
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T extends ca.uhn.fhir.model.api.IElement>
List<T> getAllPopulatedChildElementsOfType
(Class<T> theType) byte[]
Gets the value(s) for content ().ca.uhn.fhir.model.primitive.Base64BinaryDt
Gets the value(s) for content ().Gets the value(s) for contentType ().ca.uhn.fhir.model.primitive.CodeDt
Gets the value(s) for contentType ().ca.uhn.fhir.context.FhirVersionEnum
boolean
hasData()
boolean
isEmpty()
setContent
(byte[] theBytes) Sets the value for content ()setContent
(ca.uhn.fhir.model.primitive.Base64BinaryDt theValue) Sets the value(s) for content ()setContentAsBase64
(String theContent) setContentType
(ca.uhn.fhir.model.primitive.CodeDt theValue) Sets the value(s) for contentType ()setContentType
(String theCode) Sets the value for contentType ()Methods inherited from class ca.uhn.fhir.model.dstu2.resource.BaseResource
getContained, getId, getIdElement, getLanguage, getMeta, getResourceMetadata, getText, isBaseEmpty, setContained, setId, setId, setId, setLanguage, setResourceMetadata, setText, toString
Methods inherited from class ca.uhn.fhir.model.api.BaseElement
addUndeclaredExtension, addUndeclaredExtension, addUndeclaredExtension, getAllUndeclaredExtensions, getFormatCommentsPost, getFormatCommentsPre, getUndeclaredExtensions, getUndeclaredExtensionsByUrl, getUndeclaredModifierExtensions, getUserData, hasFormatComment, setUserData
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.hl7.fhir.instance.model.api.IBase
fhirType, getFormatCommentsPost, getFormatCommentsPre, getUserData, hasFormatComment, setUserData
Methods inherited from interface org.hl7.fhir.instance.model.api.IBaseResource
getIdElement, isDeleted, setId, setId
Methods inherited from interface ca.uhn.fhir.model.api.IResource
getContained, getId, getLanguage, getMeta, getResourceMetadata, getText, setId, setLanguage, setResourceMetadata
-
Field Details
-
SP_CONTENTTYPE
Search parameter constant for contenttypeDescription:
Type: token
Path: Binary.contentType
- See Also:
-
CONTENTTYPE
Fluent Client search parameter constant for contenttypeDescription:
Type: token
Path: Binary.contentType
-
-
Constructor Details
-
Binary
public Binary()
-
-
Method Details
-
isEmpty
- Specified by:
isEmpty
in interfaceorg.hl7.fhir.instance.model.api.IBase
-
getAllPopulatedChildElementsOfType
public <T extends ca.uhn.fhir.model.api.IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) - Specified by:
getAllPopulatedChildElementsOfType
in interfaceca.uhn.fhir.model.api.ICompositeElement
-
getContentTypeElement
Gets the value(s) for contentType (). creating it if it does not exist. Will not returnnull
.Definition: MimeType of the binary content represented as a standard MimeType (BCP 13)
-
getContentType
Gets the value(s) for contentType (). creating it if it does not exist. This method may returnnull
.Definition: MimeType of the binary content represented as a standard MimeType (BCP 13)
- Specified by:
getContentType
in interfaceorg.hl7.fhir.instance.model.api.IBaseBinary
-
setContentType
Sets the value(s) for contentType ()Definition: MimeType of the binary content represented as a standard MimeType (BCP 13)
-
setContentType
Sets the value for contentType ()Definition: MimeType of the binary content represented as a standard MimeType (BCP 13)
- Specified by:
setContentType
in interfaceorg.hl7.fhir.instance.model.api.IBaseBinary
-
getContentElement
Gets the value(s) for content (). creating it if it does not exist. Will not returnnull
.Definition: The actual content, base64 encoded
- Specified by:
getContentElement
in interfaceorg.hl7.fhir.instance.model.api.IBaseBinary
-
getContent
Gets the value(s) for content (). creating it if it does not exist. This method may returnnull
.Definition: The actual content, base64 encoded
- Specified by:
getContent
in interfaceorg.hl7.fhir.instance.model.api.IBaseBinary
-
setContent
Sets the value(s) for content ()Definition: The actual content, base64 encoded
-
setContent
Sets the value for content ()Definition: The actual content, base64 encoded
- Specified by:
setContent
in interfaceorg.hl7.fhir.instance.model.api.IBaseBinary
-
getResourceName
- Specified by:
getResourceName
in interfaceca.uhn.fhir.model.api.IResource
-
getStructureFhirVersionEnum
- Specified by:
getStructureFhirVersionEnum
in interfaceorg.hl7.fhir.instance.model.api.IBaseResource
- Specified by:
getStructureFhirVersionEnum
in interfaceca.uhn.fhir.model.api.IResource
-
getContentAsBase64
- Specified by:
getContentAsBase64
in interfaceorg.hl7.fhir.instance.model.api.IBaseBinary
-
setContentAsBase64
- Specified by:
setContentAsBase64
in interfaceorg.hl7.fhir.instance.model.api.IBaseBinary
-
hasData
- Specified by:
hasData
in interfaceorg.hl7.fhir.instance.model.api.IBaseBinary
-