
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
FieldsModifier and TypeFieldDescriptionstatic final ca.uhn.fhir.rest.gclient.TokenClientParamFluent Client search parameter constant for contenttypestatic final StringSearch parameter constant for contenttypeFields inherited from class ca.uhn.fhir.model.dstu2.resource.BaseResource
RES_ID, SP_RES_IDFields inherited from interface org.hl7.fhir.instance.model.api.IBaseResource
INCLUDE_ALL, WILDCARD_ALL_SET -
Constructor Summary
Constructors -
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.Base64BinaryDtGets the value(s) for content ().Gets the value(s) for contentType ().ca.uhn.fhir.model.primitive.CodeDtGets the value(s) for contentType ().ca.uhn.fhir.context.FhirVersionEnumbooleanhasData()booleanisEmpty()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, toStringMethods inherited from class ca.uhn.fhir.model.api.BaseElement
addUndeclaredExtension, addUndeclaredExtension, addUndeclaredExtension, getAllUndeclaredExtensions, getFormatCommentsPost, getFormatCommentsPre, getUndeclaredExtensions, getUndeclaredExtensionsByUrl, getUndeclaredModifierExtensions, getUserData, hasFormatComment, setUserDataMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.hl7.fhir.instance.model.api.IBase
fhirType, getFormatCommentsPost, getFormatCommentsPre, getUserData, hasFormatComment, setUserDataMethods inherited from interface org.hl7.fhir.instance.model.api.IBaseResource
getIdElement, isDeleted, setId, setIdMethods 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:
isEmptyin 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:
getAllPopulatedChildElementsOfTypein 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:
getContentTypein 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:
setContentTypein 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:
getContentElementin 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:
getContentin 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:
setContentin interfaceorg.hl7.fhir.instance.model.api.IBaseBinary
-
getResourceName
- Specified by:
getResourceNamein interfaceca.uhn.fhir.model.api.IResource
-
getStructureFhirVersionEnum
- Specified by:
getStructureFhirVersionEnumin interfaceorg.hl7.fhir.instance.model.api.IBaseResource- Specified by:
getStructureFhirVersionEnumin interfaceca.uhn.fhir.model.api.IResource
-
getContentAsBase64
- Specified by:
getContentAsBase64in interfaceorg.hl7.fhir.instance.model.api.IBaseBinary
-
setContentAsBase64
- Specified by:
setContentAsBase64in interfaceorg.hl7.fhir.instance.model.api.IBaseBinary
-
hasData
- Specified by:
hasDatain interfaceorg.hl7.fhir.instance.model.api.IBaseBinary
-