Package org.hl7.fhir.dstu3.model
Class Binary
- java.lang.Object
-
- org.hl7.fhir.dstu3.model.Base
-
- org.hl7.fhir.dstu3.model.BaseResource
-
- org.hl7.fhir.dstu3.model.Resource
-
- org.hl7.fhir.dstu3.model.BaseBinary
-
- org.hl7.fhir.dstu3.model.Binary
-
- All Implemented Interfaces:
ca.uhn.fhir.model.api.IElement,Serializable,org.hl7.fhir.instance.model.api.IAnyResource,org.hl7.fhir.instance.model.api.IBase,org.hl7.fhir.instance.model.api.IBaseBinary,org.hl7.fhir.instance.model.api.IBaseResource
public class Binary extends BaseBinary implements org.hl7.fhir.instance.model.api.IBaseBinary
A binary resource can contain any content, whether text, image, pdf, zip archive, etc.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Base64BinaryTypecontentThe actual content, base64 encoded.protected CodeTypecontentTypeMimeType of the binary content represented as a standard MimeType (BCP 13).static ca.uhn.fhir.rest.gclient.TokenClientParamCONTENTTYPEFluent Client search parameter constant for contenttypeprotected ReferencesecurityContextTreat this binary as if it was this other resource for access control purposes.protected ResourcesecurityContextTargetThe actual object that is the target of the reference (Treat this binary as if it was this other resource for access control purposes.)static StringSP_CONTENTTYPESearch parameter: contenttype-
Fields inherited from class org.hl7.fhir.dstu3.model.Resource
id, implicitRules, language, meta
-
-
Constructor Summary
Constructors Constructor Description Binary()ConstructorBinary(CodeType contentType, Base64BinaryType content)Constructor
-
Method Summary
-
Methods inherited from class org.hl7.fhir.dstu3.model.BaseBinary
getContentAsBase64, setContentAsBase64
-
Methods inherited from class org.hl7.fhir.dstu3.model.Resource
copyValues, getId, getIdBase, getIdElement, getIdPart, getImplicitRules, getImplicitRulesElement, getLanguage, getLanguageElement, getMeta, hasId, hasIdElement, hasImplicitRules, hasImplicitRulesElement, hasLanguage, hasLanguageElement, hasMeta, setId, setIdBase, setIdElement, setImplicitRules, setImplicitRulesElement, setLanguage, setLanguageElement, setMeta
-
Methods inherited from class org.hl7.fhir.dstu3.model.BaseResource
getStructureFhirVersionEnum, isResource, setId
-
Methods inherited from class org.hl7.fhir.dstu3.model.Base
castToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCode, castToCodeableConcept, castToCoding, castToContactDetail, castToContactPoint, castToContributor, castToDataRequirement, castToDate, castToDateTime, castToDecimal, castToDosage, castToDuration, castToElementDefinition, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMeta, castToMoney, castToNarrative, castToOid, castToParameterDefinition, castToPeriod, castToPositiveInt, castToQuantity, castToRange, castToRatio, castToReference, castToRelatedArtifact, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToTime, castToTiming, castToTriggerDefinition, castToType, castToUnsignedInt, castToUri, castToUsageContext, castToXhtml, castToXhtmlString, children, clearUserData, compareDeep, compareDeep, compareDeep, compareValues, compareValues, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getNamedProperty, getUserData, getUserInt, getUserString, hasFormatComment, hasPrimitiveValue, hasType, hasUserData, isBooleanPrimitive, isMetadataBased, isPrimitive, listChildrenByName, listChildrenByName, primitiveValue, setUserData, setUserDataINN
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hl7.fhir.instance.model.api.IAnyResource
getUserData, setUserData
-
Methods inherited from interface org.hl7.fhir.instance.model.api.IBase
getFormatCommentsPost, getFormatCommentsPre, hasFormatComment
-
-
-
-
Field Detail
-
contentType
protected CodeType contentType
MimeType of the binary content represented as a standard MimeType (BCP 13).
-
securityContext
protected Reference securityContext
Treat this binary as if it was this other resource for access control purposes.
-
securityContextTarget
protected Resource securityContextTarget
The actual object that is the target of the reference (Treat this binary as if it was this other resource for access control purposes.)
-
content
protected Base64BinaryType content
The actual content, base64 encoded.
-
SP_CONTENTTYPE
public static final String SP_CONTENTTYPE
Search parameter: contenttypeDescription: MimeType of the binary content
Type: token
Path: Binary.contentType
- See Also:
- Constant Field Values
-
CONTENTTYPE
public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTENTTYPE
Fluent Client search parameter constant for contenttypeDescription: MimeType of the binary content
Type: token
Path: Binary.contentType
-
-
Constructor Detail
-
Binary
public Binary()
Constructor
-
Binary
public Binary(CodeType contentType, Base64BinaryType content)
Constructor
-
-
Method Detail
-
getContentTypeElement
public CodeType getContentTypeElement()
- Returns:
contentType(MimeType of the binary content represented as a standard MimeType (BCP 13).). This is the underlying object with id, value and extensions. The accessor "getContentType" gives direct access to the value
-
hasContentTypeElement
public boolean hasContentTypeElement()
-
hasContentType
public boolean hasContentType()
-
setContentTypeElement
public Binary setContentTypeElement(CodeType value)
- Parameters:
value-contentType(MimeType of the binary content represented as a standard MimeType (BCP 13).). This is the underlying object with id, value and extensions. The accessor "getContentType" gives direct access to the value
-
getContentType
public String getContentType()
- Specified by:
getContentTypein interfaceorg.hl7.fhir.instance.model.api.IBaseBinary- Returns:
- MimeType of the binary content represented as a standard MimeType (BCP 13).
-
setContentType
public Binary setContentType(String value)
- Specified by:
setContentTypein interfaceorg.hl7.fhir.instance.model.api.IBaseBinary- Parameters:
value- MimeType of the binary content represented as a standard MimeType (BCP 13).
-
getSecurityContext
public Reference getSecurityContext()
- Returns:
securityContext(Treat this binary as if it was this other resource for access control purposes.)
-
hasSecurityContext
public boolean hasSecurityContext()
-
setSecurityContext
public Binary setSecurityContext(Reference value)
- Parameters:
value-securityContext(Treat this binary as if it was this other resource for access control purposes.)
-
getSecurityContextTarget
public Resource getSecurityContextTarget()
- Returns:
securityContextThe actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (Treat this binary as if it was this other resource for access control purposes.)
-
setSecurityContextTarget
public Binary setSecurityContextTarget(Resource value)
- Parameters:
value-securityContextThe actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (Treat this binary as if it was this other resource for access control purposes.)
-
getContentElement
public Base64BinaryType getContentElement()
- Specified by:
getContentElementin interfaceorg.hl7.fhir.instance.model.api.IBaseBinary- Specified by:
getContentElementin classBaseBinary- Returns:
content(The actual content, base64 encoded.). This is the underlying object with id, value and extensions. The accessor "getContent" gives direct access to the value
-
hasContentElement
public boolean hasContentElement()
-
hasContent
public boolean hasContent()
-
setContentElement
public Binary setContentElement(Base64BinaryType value)
- Parameters:
value-content(The actual content, base64 encoded.). This is the underlying object with id, value and extensions. The accessor "getContent" gives direct access to the value
-
getContent
public byte[] getContent()
- Specified by:
getContentin interfaceorg.hl7.fhir.instance.model.api.IBaseBinary- Returns:
- The actual content, base64 encoded.
-
setContent
public Binary setContent(byte[] value)
- Specified by:
setContentin interfaceorg.hl7.fhir.instance.model.api.IBaseBinary- Parameters:
value- The actual content, base64 encoded.
-
listChildren
protected void listChildren(List<Property> children)
- Overrides:
listChildrenin classResource
-
getNamedProperty
public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
getNamedPropertyin classResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getProperty
public Base[] getProperty(int hash, String name, boolean checkValid) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
getPropertyin classResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
public Base setProperty(int hash, String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
setPropertyin classResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
public Base setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
setPropertyin classResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
makeProperty
public Base makeProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
makePropertyin classResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getTypesForProperty
public String[] getTypesForProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
getTypesForPropertyin classResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
equalsDeep
public boolean equalsDeep(Base other_)
- Overrides:
equalsDeepin classResource
-
equalsShallow
public boolean equalsShallow(Base other_)
- Overrides:
equalsShallowin classResource
-
isEmpty
public boolean isEmpty()
-
getResourceType
public ResourceType getResourceType()
- Specified by:
getResourceTypein classResource
-
-