Package org.hl7.fhir.dstu3.model
Class Attachment
java.lang.Object
org.hl7.fhir.dstu3.model.Base
org.hl7.fhir.dstu3.model.Element
org.hl7.fhir.dstu3.model.Type
org.hl7.fhir.dstu3.model.Attachment
- All Implemented Interfaces:
ca.uhn.fhir.model.api.IElement
,Serializable
,org.hl7.fhir.instance.model.api.IBase
,org.hl7.fhir.instance.model.api.IBaseDatatype
,org.hl7.fhir.instance.model.api.IBaseElement
,org.hl7.fhir.instance.model.api.IBaseHasExtensions
,org.hl7.fhir.instance.model.api.ICompositeType
For referring to data content defined in other formats.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected CodeType
Identifies the type of the data in the attachment and allows a method to be chosen to interpret or render the data.protected DateTimeType
The date that the attachment was first created.protected Base64BinaryType
The actual data of the attachment - a sequence of bytes.protected Base64BinaryType
The calculated hash of the data using SHA-1.protected CodeType
The human language of the content.protected UnsignedIntType
The number of bytes of data that make up this attachment (before base64 encoding, if that is done).protected StringType
A label or set of text to display in place of the data.protected UriType
An alternative location where the data can be accessed. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncopy()
boolean
equalsDeep
(Base other_) boolean
equalsShallow
(Base other_) fhirType()
byte[]
getData()
byte[]
getHash()
getNamedProperty
(int _hash, String _name, boolean _checkValid) Base[]
getProperty
(int hash, String name, boolean checkValid) int
getSize()
getTitle()
String[]
getTypesForProperty
(int hash, String name) getUrl()
boolean
boolean
boolean
boolean
boolean
hasData()
boolean
boolean
hasHash()
boolean
boolean
boolean
boolean
hasSize()
boolean
boolean
hasTitle()
boolean
boolean
hasUrl()
boolean
boolean
isEmpty()
protected void
listChildren
(List<Property> children) makeProperty
(int hash, String name) setContentType
(String value) setContentTypeElement
(CodeType value) setCreation
(Date value) setCreationElement
(DateTimeType value) setData
(byte[] value) setDataElement
(Base64BinaryType value) setHash
(byte[] value) setHashElement
(Base64BinaryType value) setLanguage
(String value) setLanguageElement
(CodeType value) setProperty
(int hash, String name, Base value) setProperty
(String name, Base value) setSize
(int value) setSizeElement
(UnsignedIntType value) setTitleElement
(StringType value) setUrlElement
(UriType value) protected Attachment
Methods inherited from class org.hl7.fhir.dstu3.model.Element
addExtension, addExtension, addExtension, copyValues, getExtension, getExtensionByUrl, getExtensionFirstRep, getExtensionsByUrl, getExtensionString, getId, getIdBase, getIdElement, hasExtension, hasExtension, hasId, hasIdElement, setExtension, setId, setIdBase, setIdElement
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, isResource, 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.IBase
getFormatCommentsPost, getFormatCommentsPre, getUserData, hasFormatComment, setUserData
Methods inherited from interface org.hl7.fhir.instance.model.api.IBaseElement
getUserData, setUserData
-
Field Details
-
contentType
Identifies the type of the data in the attachment and allows a method to be chosen to interpret or render the data. Includes mime type parameters such as charset where appropriate. -
language
The human language of the content. The value can be any valid value according to BCP 47. -
data
The actual data of the attachment - a sequence of bytes. In XML, represented using base64. -
url
An alternative location where the data can be accessed. -
size
The number of bytes of data that make up this attachment (before base64 encoding, if that is done). -
hash
The calculated hash of the data using SHA-1. Represented using base64. -
title
A label or set of text to display in place of the data. -
creation
The date that the attachment was first created.
-
-
Constructor Details
-
Attachment
public Attachment()Constructor
-
-
Method Details
-
getContentTypeElement
- Returns:
contentType
(Identifies the type of the data in the attachment and allows a method to be chosen to interpret or render the data. Includes mime type parameters such as charset where appropriate.). This is the underlying object with id, value and extensions. The accessor "getContentType" gives direct access to the value
-
hasContentTypeElement
-
hasContentType
-
setContentTypeElement
- Parameters:
value
-contentType
(Identifies the type of the data in the attachment and allows a method to be chosen to interpret or render the data. Includes mime type parameters such as charset where appropriate.). This is the underlying object with id, value and extensions. The accessor "getContentType" gives direct access to the value
-
getContentType
- Returns:
- Identifies the type of the data in the attachment and allows a method to be chosen to interpret or render the data. Includes mime type parameters such as charset where appropriate.
-
setContentType
- Parameters:
value
- Identifies the type of the data in the attachment and allows a method to be chosen to interpret or render the data. Includes mime type parameters such as charset where appropriate.
-
getLanguageElement
- Returns:
language
(The human language of the content. The value can be any valid value according to BCP 47.). This is the underlying object with id, value and extensions. The accessor "getLanguage" gives direct access to the value
-
hasLanguageElement
-
hasLanguage
-
setLanguageElement
- Parameters:
value
-language
(The human language of the content. The value can be any valid value according to BCP 47.). This is the underlying object with id, value and extensions. The accessor "getLanguage" gives direct access to the value
-
getLanguage
- Returns:
- The human language of the content. The value can be any valid value according to BCP 47.
-
setLanguage
- Parameters:
value
- The human language of the content. The value can be any valid value according to BCP 47.
-
getDataElement
- Returns:
data
(The actual data of the attachment - a sequence of bytes. In XML, represented using base64.). This is the underlying object with id, value and extensions. The accessor "getData" gives direct access to the value
-
hasDataElement
-
hasData
-
setDataElement
- Parameters:
value
-data
(The actual data of the attachment - a sequence of bytes. In XML, represented using base64.). This is the underlying object with id, value and extensions. The accessor "getData" gives direct access to the value
-
getData
- Returns:
- The actual data of the attachment - a sequence of bytes. In XML, represented using base64.
-
setData
- Parameters:
value
- The actual data of the attachment - a sequence of bytes. In XML, represented using base64.
-
getUrlElement
- Returns:
url
(An alternative location where the data can be accessed.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value
-
hasUrlElement
-
hasUrl
-
setUrlElement
- Parameters:
value
-url
(An alternative location where the data can be accessed.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value
-
getUrl
- Returns:
- An alternative location where the data can be accessed.
-
setUrl
- Parameters:
value
- An alternative location where the data can be accessed.
-
getSizeElement
- Returns:
size
(The number of bytes of data that make up this attachment (before base64 encoding, if that is done).). This is the underlying object with id, value and extensions. The accessor "getSize" gives direct access to the value
-
hasSizeElement
-
hasSize
-
setSizeElement
- Parameters:
value
-size
(The number of bytes of data that make up this attachment (before base64 encoding, if that is done).). This is the underlying object with id, value and extensions. The accessor "getSize" gives direct access to the value
-
getSize
- Returns:
- The number of bytes of data that make up this attachment (before base64 encoding, if that is done).
-
setSize
- Parameters:
value
- The number of bytes of data that make up this attachment (before base64 encoding, if that is done).
-
getHashElement
- Returns:
hash
(The calculated hash of the data using SHA-1. Represented using base64.). This is the underlying object with id, value and extensions. The accessor "getHash" gives direct access to the value
-
hasHashElement
-
hasHash
-
setHashElement
- Parameters:
value
-hash
(The calculated hash of the data using SHA-1. Represented using base64.). This is the underlying object with id, value and extensions. The accessor "getHash" gives direct access to the value
-
getHash
- Returns:
- The calculated hash of the data using SHA-1. Represented using base64.
-
setHash
- Parameters:
value
- The calculated hash of the data using SHA-1. Represented using base64.
-
getTitleElement
- Returns:
title
(A label or set of text to display in place of the data.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value
-
hasTitleElement
-
hasTitle
-
setTitleElement
- Parameters:
value
-title
(A label or set of text to display in place of the data.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value
-
getTitle
- Returns:
- A label or set of text to display in place of the data.
-
setTitle
- Parameters:
value
- A label or set of text to display in place of the data.
-
getCreationElement
- Returns:
creation
(The date that the attachment was first created.). This is the underlying object with id, value and extensions. The accessor "getCreation" gives direct access to the value
-
hasCreationElement
-
hasCreation
-
setCreationElement
- Parameters:
value
-creation
(The date that the attachment was first created.). This is the underlying object with id, value and extensions. The accessor "getCreation" gives direct access to the value
-
getCreation
- Returns:
- The date that the attachment was first created.
-
setCreation
- Parameters:
value
- The date that the attachment was first created.
-
listChildren
- Overrides:
listChildren
in classElement
-
getNamedProperty
public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
getNamedProperty
in classElement
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getProperty
public Base[] getProperty(int hash, String name, boolean checkValid) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
getProperty
in classElement
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
public Base setProperty(int hash, String name, Base value) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
setProperty
in classElement
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
- Overrides:
setProperty
in classElement
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
makeProperty
- Overrides:
makeProperty
in classElement
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getTypesForProperty
public String[] getTypesForProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
getTypesForProperty
in classElement
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
addChild
-
fhirType
-
copy
-
typedCopy
-
equalsDeep
- Overrides:
equalsDeep
in classElement
-
equalsShallow
- Overrides:
equalsShallow
in classElement
-
isEmpty
-