Class 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

public class Attachment extends Type implements org.hl7.fhir.instance.model.api.ICompositeType
For referring to data content defined in other formats.
See Also:
  • Field Details Link icon

    • contentType Link icon

      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. Includes mime type parameters such as charset where appropriate.
    • language Link icon

      protected CodeType language
      The human language of the content. The value can be any valid value according to BCP 47.
    • data Link icon

      The actual data of the attachment - a sequence of bytes, base64 encoded.
    • url Link icon

      protected UrlType url
      A location where the data can be accessed.
    • size Link icon

      protected UnsignedIntType size
      The number of bytes of data that make up this attachment (before base64 encoding, if that is done).
    • hash Link icon

      The calculated hash of the data using SHA-1. Represented using base64.
    • title Link icon

      protected StringType title
      A label or set of text to display in place of the data.
    • creation Link icon

      The date that the attachment was first created.
  • Constructor Details Link icon

  • Method Details Link icon

    • getContentTypeElement Link icon

      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 Link icon

      public boolean hasContentTypeElement()
    • hasContentType Link icon

      public boolean hasContentType()
    • setContentTypeElement Link icon

      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 Link icon

      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 Link icon

      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 Link icon

      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 Link icon

      public boolean hasLanguageElement()
    • hasLanguage Link icon

      public boolean hasLanguage()
    • setLanguageElement Link icon

      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 Link icon

      public String getLanguage()
      Returns:
      The human language of the content. The value can be any valid value according to BCP 47.
    • setLanguage Link icon

      public Attachment setLanguage(String value)
      Parameters:
      value - The human language of the content. The value can be any valid value according to BCP 47.
    • getDataElement Link icon

      Returns:
      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 value
    • hasDataElement Link icon

      public boolean hasDataElement()
    • hasData Link icon

      public boolean hasData()
    • setDataElement Link icon

      Parameters:
      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 value
    • getData Link icon

      public byte[] getData()
      Returns:
      The actual data of the attachment - a sequence of bytes, base64 encoded.
    • setData Link icon

      public Attachment setData(byte[] value)
      Parameters:
      value - The actual data of the attachment - a sequence of bytes, base64 encoded.
    • getUrlElement Link icon

      Returns:
      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 value
    • hasUrlElement Link icon

      public boolean hasUrlElement()
    • hasUrl Link icon

      public boolean hasUrl()
    • setUrlElement Link icon

      Parameters:
      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 value
    • getUrl Link icon

      public String getUrl()
      Returns:
      A location where the data can be accessed.
    • setUrl Link icon

      public Attachment setUrl(String value)
      Parameters:
      value - A location where the data can be accessed.
    • getSizeElement Link icon

      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 Link icon

      public boolean hasSizeElement()
    • hasSize Link icon

      public boolean hasSize()
    • setSizeElement Link icon

      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 Link icon

      public int getSize()
      Returns:
      The number of bytes of data that make up this attachment (before base64 encoding, if that is done).
    • setSize Link icon

      public Attachment setSize(int value)
      Parameters:
      value - The number of bytes of data that make up this attachment (before base64 encoding, if that is done).
    • getHashElement Link icon

      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 Link icon

      public boolean hasHashElement()
    • hasHash Link icon

      public boolean hasHash()
    • setHashElement Link icon

      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 Link icon

      public byte[] getHash()
      Returns:
      The calculated hash of the data using SHA-1. Represented using base64.
    • setHash Link icon

      public Attachment setHash(byte[] value)
      Parameters:
      value - The calculated hash of the data using SHA-1. Represented using base64.
    • getTitleElement Link icon

      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 Link icon

      public boolean hasTitleElement()
    • hasTitle Link icon

      public boolean hasTitle()
    • setTitleElement Link icon

      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 Link icon

      public String getTitle()
      Returns:
      A label or set of text to display in place of the data.
    • setTitle Link icon

      public Attachment setTitle(String value)
      Parameters:
      value - A label or set of text to display in place of the data.
    • getCreationElement Link icon

      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 Link icon

      public boolean hasCreationElement()
    • hasCreation Link icon

      public boolean hasCreation()
    • setCreationElement Link icon

      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 Link icon

      public Date getCreation()
      Returns:
      The date that the attachment was first created.
    • setCreation Link icon

      public Attachment setCreation(Date value)
      Parameters:
      value - The date that the attachment was first created.
    • listChildren Link icon

      protected void listChildren(List<Property> children)
      Overrides:
      listChildren in class Element
    • getNamedProperty Link icon

      public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      getNamedProperty in class Element
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • getProperty Link icon

      public Base[] getProperty(int hash, String name, boolean checkValid) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      getProperty in class Element
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • setProperty Link icon

      public Base setProperty(int hash, String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      setProperty in class Element
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • setProperty Link icon

      public Base setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      setProperty in class Element
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • removeChild Link icon

      public void removeChild(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      removeChild in class Element
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • makeProperty Link icon

      public Base makeProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      makeProperty in class Element
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • getTypesForProperty Link icon

      public String[] getTypesForProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      getTypesForProperty in class Element
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • addChild Link icon

      public Base addChild(String name) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      addChild in class Element
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • fhirType Link icon

      public String fhirType()
      Specified by:
      fhirType in interface org.hl7.fhir.instance.model.api.IBase
      Overrides:
      fhirType in class Element
    • copy Link icon

      public Attachment copy()
      Overrides:
      copy in class Type
    • copyValues Link icon

      public void copyValues(Attachment dst)
    • typedCopy Link icon

      protected Attachment typedCopy()
      Specified by:
      typedCopy in class Type
    • equalsDeep Link icon

      public boolean equalsDeep(Base other_)
      Overrides:
      equalsDeep in class Element
    • equalsShallow Link icon

      public boolean equalsShallow(Base other_)
      Overrides:
      equalsShallow in class Element
    • isEmpty Link icon

      public boolean isEmpty()
      Specified by:
      isEmpty in interface org.hl7.fhir.instance.model.api.IBase
      Overrides:
      isEmpty in class Element