Package org.hl7.fhir
Class Attachment
- java.lang.Object
-
- org.hl7.fhir.Element
-
- org.hl7.fhir.Attachment
-
- All Implemented Interfaces:
org.jvnet.jaxb2_commons.lang.Equals2,org.jvnet.jaxb2_commons.lang.HashCode2,org.jvnet.jaxb2_commons.lang.ToString2
public class Attachment extends Element implements org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2
If the element is present, it must have a value for at least one of the defined elements, an @id referenced from the Narrative, or extensionsJava class for Attachment complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="Attachment"> <complexContent> <extension base="{http://hl7.org/fhir}Element"> <sequence> <element name="contentType" type="{http://hl7.org/fhir}code" minOccurs="0"/> <element name="language" type="{http://hl7.org/fhir}code" minOccurs="0"/> <element name="data" type="{http://hl7.org/fhir}base64Binary" minOccurs="0"/> <element name="url" type="{http://hl7.org/fhir}uri" minOccurs="0"/> <element name="size" type="{http://hl7.org/fhir}unsignedInt" minOccurs="0"/> <element name="hash" type="{http://hl7.org/fhir}base64Binary" minOccurs="0"/> <element name="title" type="{http://hl7.org/fhir}string" minOccurs="0"/> <element name="creation" type="{http://hl7.org/fhir}dateTime" minOccurs="0"/> </sequence> </extension> </complexContent> </complexType>
-
-
Field Summary
Fields Modifier and Type Field Description protected CodecontentTypeprotected DateTimecreationprotected Base64Binarydataprotected Base64Binaryhashprotected Codelanguageprotected UnsignedIntsizeprotected Stringtitleprotected Uriurl
-
Constructor Summary
Constructors Constructor Description Attachment()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringBuilderappend(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)java.lang.StringBuilderappendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)booleanequals(java.lang.Object object)booleanequals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, java.lang.Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy)CodegetContentType()Gets the value of the contentType property.DateTimegetCreation()Gets the value of the creation property.Base64BinarygetData()Gets the value of the data property.Base64BinarygetHash()Gets the value of the hash property.CodegetLanguage()Gets the value of the language property.UnsignedIntgetSize()Gets the value of the size property.StringgetTitle()Gets the value of the title property.UrigetUrl()Gets the value of the url property.inthashCode()inthashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)voidsetContentType(Code value)Sets the value of the contentType property.voidsetCreation(DateTime value)Sets the value of the creation property.voidsetData(Base64Binary value)Sets the value of the data property.voidsetHash(Base64Binary value)Sets the value of the hash property.voidsetLanguage(Code value)Sets the value of the language property.voidsetSize(UnsignedInt value)Sets the value of the size property.voidsetTitle(String value)Sets the value of the title property.voidsetUrl(Uri value)Sets the value of the url property.java.lang.StringtoString()AttachmentwithContentType(Code value)AttachmentwithCreation(DateTime value)AttachmentwithData(Base64Binary value)AttachmentwithExtension(java.util.Collection<Extension> values)AttachmentwithExtension(Extension... values)AttachmentwithHash(Base64Binary value)AttachmentwithId(java.lang.String value)AttachmentwithLanguage(Code value)AttachmentwithSize(UnsignedInt value)AttachmentwithTitle(String value)AttachmentwithUrl(Uri value)-
Methods inherited from class org.hl7.fhir.Element
getExtension, getId, setId
-
-
-
-
Field Detail
-
contentType
protected Code contentType
-
language
protected Code language
-
data
protected Base64Binary data
-
url
protected Uri url
-
size
protected UnsignedInt size
-
hash
protected Base64Binary hash
-
title
protected String title
-
creation
protected DateTime creation
-
-
Method Detail
-
getContentType
public Code getContentType()
Gets the value of the contentType property.- Returns:
- possible object is
Code
-
setContentType
public void setContentType(Code value)
Sets the value of the contentType property.- Parameters:
value- allowed object isCode
-
getLanguage
public Code getLanguage()
Gets the value of the language property.- Returns:
- possible object is
Code
-
setLanguage
public void setLanguage(Code value)
Sets the value of the language property.- Parameters:
value- allowed object isCode
-
getData
public Base64Binary getData()
Gets the value of the data property.- Returns:
- possible object is
Base64Binary
-
setData
public void setData(Base64Binary value)
Sets the value of the data property.- Parameters:
value- allowed object isBase64Binary
-
setUrl
public void setUrl(Uri value)
Sets the value of the url property.- Parameters:
value- allowed object isUri
-
getSize
public UnsignedInt getSize()
Gets the value of the size property.- Returns:
- possible object is
UnsignedInt
-
setSize
public void setSize(UnsignedInt value)
Sets the value of the size property.- Parameters:
value- allowed object isUnsignedInt
-
getHash
public Base64Binary getHash()
Gets the value of the hash property.- Returns:
- possible object is
Base64Binary
-
setHash
public void setHash(Base64Binary value)
Sets the value of the hash property.- Parameters:
value- allowed object isBase64Binary
-
getTitle
public String getTitle()
Gets the value of the title property.- Returns:
- possible object is
String
-
setTitle
public void setTitle(String value)
Sets the value of the title property.- Parameters:
value- allowed object isString
-
getCreation
public DateTime getCreation()
Gets the value of the creation property.- Returns:
- possible object is
DateTime
-
setCreation
public void setCreation(DateTime value)
Sets the value of the creation property.- Parameters:
value- allowed object isDateTime
-
withContentType
public Attachment withContentType(Code value)
-
withLanguage
public Attachment withLanguage(Code value)
-
withData
public Attachment withData(Base64Binary value)
-
withUrl
public Attachment withUrl(Uri value)
-
withSize
public Attachment withSize(UnsignedInt value)
-
withHash
public Attachment withHash(Base64Binary value)
-
withTitle
public Attachment withTitle(String value)
-
withCreation
public Attachment withCreation(DateTime value)
-
withExtension
public Attachment withExtension(Extension... values)
- Overrides:
withExtensionin classElement
-
withExtension
public Attachment withExtension(java.util.Collection<Extension> values)
- Overrides:
withExtensionin classElement
-
withId
public Attachment withId(java.lang.String value)
-
equals
public boolean equals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, java.lang.Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy)
-
hashCode
public int hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)
-
append
public java.lang.StringBuilder append(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)
-
appendFields
public java.lang.StringBuilder appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)- Specified by:
appendFieldsin interfaceorg.jvnet.jaxb2_commons.lang.ToString2- Overrides:
appendFieldsin classElement
-
-