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 extensions
Java 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
FieldsModifier and TypeFieldDescriptionprotected Codeprotected DateTimeprotected Base64Binaryprotected Base64Binaryprotected Codeprotected UnsignedIntprotected Stringprotected Uri -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappend(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy) appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy) booleanbooleanequals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy) Gets the value of the contentType property.Gets the value of the creation property.getData()Gets the value of the data property.getHash()Gets the value of the hash property.Gets the value of the language property.getSize()Gets the value of the size property.getTitle()Gets the value of the title property.getUrl()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.voidSets the value of the title property.voidSets the value of the url property.toString()withContentType(Code value) withCreation(DateTime value) withData(Base64Binary value) withExtension(Collection<Extension> values) withExtension(Extension... values) withHash(Base64Binary value) withLanguage(Code value) withSize(UnsignedInt value) Methods inherited from class org.hl7.fhir.Element
getExtension, getId, setExtension, setId
-
Field Details
-
contentType
-
language
-
data
-
url
-
size
-
hash
-
title
-
creation
-
-
Constructor Details
-
Attachment
public Attachment()
-
-
Method Details
-
getContentType
Gets the value of the contentType property.- Returns:
- possible object is
Code
-
setContentType
Sets the value of the contentType property.- Parameters:
value- allowed object isCode
-
getLanguage
Gets the value of the language property.- Returns:
- possible object is
Code
-
setLanguage
Sets the value of the language property.- Parameters:
value- allowed object isCode
-
getData
Gets the value of the data property.- Returns:
- possible object is
Base64Binary
-
setData
Sets the value of the data property.- Parameters:
value- allowed object isBase64Binary
-
getUrl
Gets the value of the url property.- Returns:
- possible object is
Uri
-
setUrl
Sets the value of the url property.- Parameters:
value- allowed object isUri
-
getSize
Gets the value of the size property.- Returns:
- possible object is
UnsignedInt
-
setSize
Sets the value of the size property.- Parameters:
value- allowed object isUnsignedInt
-
getHash
Gets the value of the hash property.- Returns:
- possible object is
Base64Binary
-
setHash
Sets the value of the hash property.- Parameters:
value- allowed object isBase64Binary
-
getTitle
Gets the value of the title property.- Returns:
- possible object is
String
-
setTitle
Sets the value of the title property.- Parameters:
value- allowed object isString
-
getCreation
Gets the value of the creation property.- Returns:
- possible object is
DateTime
-
setCreation
Sets the value of the creation property.- Parameters:
value- allowed object isDateTime
-
withContentType
-
withLanguage
-
withData
-
withUrl
-
withSize
-
withHash
-
withTitle
-
withCreation
-
withExtension
- Overrides:
withExtensionin classElement
-
withExtension
- Overrides:
withExtensionin classElement
-
withId
-
equals
public boolean equals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy) -
equals
-
hashCode
public int hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy) -
hashCode
public int hashCode() -
toString
-
append
public StringBuilder append(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy) -
appendFields
public StringBuilder appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy) - Specified by:
appendFieldsin interfaceorg.jvnet.jaxb2_commons.lang.ToString2- Overrides:
appendFieldsin classElement
-