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
Fields Modifier and Type Field Description protected CodecontentTypeprotected DateTimecreationprotected Base64Binarydataprotected Base64Binaryhashprotected Codelanguageprotected UnsignedIntsizeprotected Stringtitleprotected Uriurl -
Constructor Summary
Constructors Constructor Description Attachment() -
Method Summary
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)
-
Field Details
-
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, java.lang.Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy) -
equals
public boolean equals(java.lang.Object object) -
hashCode
public int hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy) -
hashCode
public int hashCode() -
toString
public java.lang.String toString() -
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
-