public class Attachment extends Type implements org.hl7.fhir.instance.model.api.ICompositeType
| Modifier and Type | Field and Description |
|---|---|
protected CodeType |
contentType
Identifies the type of the data in the attachment and allows a method to be chosen to interpret or render the data.
|
protected DateTimeType |
creation
The date that the attachment was first created.
|
protected Base64BinaryType |
data
The actual data of the attachment - a sequence of bytes, base64 encoded.
|
protected Base64BinaryType |
hash
The calculated hash of the data using SHA-1.
|
protected CodeType |
language
The human language of the content.
|
protected UnsignedIntType |
size
The number of bytes of data that make up this attachment (before base64 encoding, if that is done).
|
protected StringType |
title
A label or set of text to display in place of the data.
|
protected UrlType |
url
A location where the data can be accessed.
|
| Constructor and Description |
|---|
Attachment()
Constructor
|
addExtension, addExtension, addExtension, copyValues, getExtension, getExtensionByUrl, getExtensionFirstRep, getExtensionsByUrl, getExtensionString, getId, getIdBase, getIdElement, hasExtension, hasExtension, hasId, hasIdElement, isDisallowExtensions, noExtensions, removeExtension, setDisallowExtensions, setExtension, setId, setIdBase, setIdElementcastToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCanonical, castToCode, castToCodeableConcept, castToCoding, castToContactDetail, castToContactPoint, castToContributor, castToDataRequirement, castToDate, castToDateTime, castToDecimal, castToDosage, castToDuration, castToElementDefinition, castToExpression, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMarketingStatus, castToMeta, castToMoney, castToNarrative, castToOid, castToParameterDefinition, castToPeriod, castToPopulation, castToPositiveInt, castToProdCharacteristic, castToProductShelfLife, castToQuantity, castToRange, castToRatio, castToReference, castToRelatedArtifact, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToSubstanceAmount, castToTime, castToTiming, castToTriggerDefinition, castToType, castToUnsignedInt, castToUri, castToUrl, castToUsageContext, castToXhtml, castToXhtmlString, children, clearUserData, compareDeep, compareDeep, compareDeep, compareDeep, compareValues, compareValues, dateTimeValue, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getNamedProperty, getUserData, getUserInt, getUserString, hasFormatComment, hasPrimitiveValue, hasType, hasUserData, isBooleanPrimitive, isDateTime, isMetadataBased, isPrimitive, isResource, listChildrenByName, listChildrenByName, primitiveValue, setUserData, setUserDataINNclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprotected CodeType contentType
protected CodeType language
protected Base64BinaryType data
protected UnsignedIntType size
protected Base64BinaryType hash
protected StringType title
protected DateTimeType creation
public Attachment()
public CodeType getContentTypeElement()
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 valuepublic boolean hasContentTypeElement()
public boolean hasContentType()
public Attachment setContentTypeElement(CodeType value)
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 valuepublic String getContentType()
public Attachment setContentType(String value)
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.public CodeType getLanguageElement()
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 valuepublic boolean hasLanguageElement()
public boolean hasLanguage()
public Attachment setLanguageElement(CodeType value)
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 valuepublic String getLanguage()
public Attachment setLanguage(String value)
value - The human language of the content. The value can be any valid value according to BCP 47.public Base64BinaryType getDataElement()
data (The actual data of the attachment - a sequence of bytes, base64 encoded.). This is the underlying object with id, value and extensions. The accessor "getData" gives direct access to the valuepublic boolean hasDataElement()
public boolean hasData()
public Attachment setDataElement(Base64BinaryType value)
value - data (The actual data of the attachment - a sequence of bytes, base64 encoded.). This is the underlying object with id, value and extensions. The accessor "getData" gives direct access to the valuepublic byte[] getData()
public Attachment setData(byte[] value)
value - The actual data of the attachment - a sequence of bytes, base64 encoded.public UrlType getUrlElement()
url (A 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 valuepublic boolean hasUrlElement()
public boolean hasUrl()
public Attachment setUrlElement(UrlType value)
value - url (A 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 valuepublic Attachment setUrl(String value)
value - A location where the data can be accessed.public UnsignedIntType getSizeElement()
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 valuepublic boolean hasSizeElement()
public boolean hasSize()
public Attachment setSizeElement(UnsignedIntType value)
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 valuepublic int getSize()
public Attachment setSize(int value)
value - The number of bytes of data that make up this attachment (before base64 encoding, if that is done).public Base64BinaryType getHashElement()
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 valuepublic boolean hasHashElement()
public boolean hasHash()
public Attachment setHashElement(Base64BinaryType value)
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 valuepublic byte[] getHash()
public Attachment setHash(byte[] value)
value - The calculated hash of the data using SHA-1. Represented using base64.public StringType getTitleElement()
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 valuepublic boolean hasTitleElement()
public boolean hasTitle()
public Attachment setTitleElement(StringType value)
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 valuepublic Attachment setTitle(String value)
value - A label or set of text to display in place of the data.public DateTimeType getCreationElement()
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 valuepublic boolean hasCreationElement()
public boolean hasCreation()
public Attachment setCreationElement(DateTimeType value)
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 valuepublic Date getCreation()
public Attachment setCreation(Date value)
value - The date that the attachment was first created.protected void listChildren(List<Property> children)
listChildren in class Elementpublic Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws org.hl7.fhir.exceptions.FHIRException
getNamedProperty in class Elementorg.hl7.fhir.exceptions.FHIRExceptionpublic Base[] getProperty(int hash, String name, boolean checkValid) throws org.hl7.fhir.exceptions.FHIRException
getProperty in class Elementorg.hl7.fhir.exceptions.FHIRExceptionpublic Base setProperty(int hash, String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
setProperty in class Elementorg.hl7.fhir.exceptions.FHIRExceptionpublic Base setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
setProperty in class Elementorg.hl7.fhir.exceptions.FHIRExceptionpublic Base makeProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
makeProperty in class Elementorg.hl7.fhir.exceptions.FHIRExceptionpublic String[] getTypesForProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
getTypesForProperty in class Elementorg.hl7.fhir.exceptions.FHIRExceptionpublic Attachment copy()
public void copyValues(Attachment dst)
protected Attachment typedCopy()
public boolean equalsDeep(Base other_)
equalsDeep in class Elementpublic boolean equalsShallow(Base other_)
equalsShallow in class ElementCopyright © 2014–2021 Health Level 7. All rights reserved.