public class AttachmentDt extends BaseIdentifiableElement implements ICompositeDatatype
Definition: For referring to data content defined in other formats.
Requirements: Many models need to include data defined in other specifications that is complex and opaque to the healthcare model. This includes documents, media recordings, structured data, etc.
| Constructor and Description |
|---|
AttachmentDt()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
<T extends IElement> |
getAllPopulatedChildElementsOfType(Class<T> theType)
Returns a list containing all child elements matching a given type
|
CodeDt |
getContentType()
Gets the value(s) for contentType (Mime type of the content, with charset etc.).
|
Base64BinaryDt |
getData()
Gets the value(s) for data (Data inline, base64ed).
|
Base64BinaryDt |
getHash()
Gets the value(s) for hash (Hash of the data (sha-1, base64ed )).
|
CodeDt |
getLanguage()
Gets the value(s) for language (Human language of the content (BCP-47)).
|
IntegerDt |
getSize()
Gets the value(s) for size (Number of bytes of content (if url provided)).
|
StringDt |
getTitle()
Gets the value(s) for title (Label to display in place of the data).
|
UriDt |
getUrl()
Gets the value(s) for url (Uri where the data can be found).
|
boolean |
isEmpty() |
AttachmentDt |
setContentType(CodeDt theValue)
Sets the value(s) for contentType (Mime type of the content, with charset etc.)
|
AttachmentDt |
setContentType(String theCode)
Sets the value for contentType (Mime type of the content, with charset etc.)
|
AttachmentDt |
setData(Base64BinaryDt theValue)
Sets the value(s) for data (Data inline, base64ed)
|
AttachmentDt |
setData(byte[] theBytes)
Sets the value for data (Data inline, base64ed)
|
AttachmentDt |
setHash(Base64BinaryDt theValue)
Sets the value(s) for hash (Hash of the data (sha-1, base64ed ))
|
AttachmentDt |
setHash(byte[] theBytes)
Sets the value for hash (Hash of the data (sha-1, base64ed ))
|
AttachmentDt |
setLanguage(CodeDt theValue)
Sets the value(s) for language (Human language of the content (BCP-47))
|
AttachmentDt |
setLanguage(String theCode)
Sets the value for language (Human language of the content (BCP-47))
|
AttachmentDt |
setSize(int theInteger)
Sets the value for size (Number of bytes of content (if url provided))
|
AttachmentDt |
setSize(IntegerDt theValue)
Sets the value(s) for size (Number of bytes of content (if url provided))
|
AttachmentDt |
setTitle(String theString)
Sets the value for title (Label to display in place of the data)
|
AttachmentDt |
setTitle(StringDt theValue)
Sets the value(s) for title (Label to display in place of the data)
|
AttachmentDt |
setUrl(String theUri)
Sets the value for url (Uri where the data can be found)
|
AttachmentDt |
setUrl(UriDt theValue)
Sets the value(s) for url (Uri where the data can be found)
|
getElementSpecificId, getId, setElementSpecificId, setId, setIdaddUndeclaredExtension, addUndeclaredExtension, addUndeclaredExtension, getAllUndeclaredExtensions, getUndeclaredExtensions, getUndeclaredExtensionsByUrl, getUndeclaredModifierExtensions, isBaseEmptypublic <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType)
ICompositeElementgetAllPopulatedChildElementsOfType in interface ICompositeElementtheType - The type to match. If set to null, all child elements will be returnedpublic CodeDt getContentType()
null.
Definition: 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 AttachmentDt setContentType(CodeDt theValue)
Definition: 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 AttachmentDt setContentType(String theCode)
Definition: 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 CodeDt getLanguage()
null.
Definition: The human language of the content. The value can be any valid value according to BCP 47
public AttachmentDt setLanguage(CodeDt theValue)
Definition: The human language of the content. The value can be any valid value according to BCP 47
public AttachmentDt setLanguage(String theCode)
Definition: The human language of the content. The value can be any valid value according to BCP 47
public Base64BinaryDt getData()
null.
Definition: The actual data of the attachment - a sequence of bytes. In XML, represented using base64
public AttachmentDt setData(Base64BinaryDt theValue)
Definition: The actual data of the attachment - a sequence of bytes. In XML, represented using base64
public AttachmentDt setData(byte[] theBytes)
Definition: The actual data of the attachment - a sequence of bytes. In XML, represented using base64
public UriDt getUrl()
null.
Definition: An alternative location where the data can be accessed
public AttachmentDt setUrl(UriDt theValue)
Definition: An alternative location where the data can be accessed
public AttachmentDt setUrl(String theUri)
Definition: An alternative location where the data can be accessed
public IntegerDt getSize()
null.
Definition: The number of bytes of data that make up this attachment.
public AttachmentDt setSize(IntegerDt theValue)
Definition: The number of bytes of data that make up this attachment.
public AttachmentDt setSize(int theInteger)
Definition: The number of bytes of data that make up this attachment.
public Base64BinaryDt getHash()
null.
Definition: The calculated hash of the data using SHA-1. Represented using base64
public AttachmentDt setHash(Base64BinaryDt theValue)
Definition: The calculated hash of the data using SHA-1. Represented using base64
public AttachmentDt setHash(byte[] theBytes)
Definition: The calculated hash of the data using SHA-1. Represented using base64
public StringDt getTitle()
null.
Definition: A label or set of text to display in place of the data
public AttachmentDt setTitle(StringDt theValue)
Definition: A label or set of text to display in place of the data
public AttachmentDt setTitle(String theString)
Definition: A label or set of text to display in place of the data
Copyright © 2014 University Health Network. All rights reserved.